Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Core automation merge #1735

Draft
wants to merge 259 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
0cebad3
add Polarion ID for all test cases
Jan 20, 2022
b7edc3f
Merge pull request #5 from stolostron/polarion_id
quchangl-github Jan 20, 2022
96ebc2a
update jenkins file to make manged parameters are optional
Jan 23, 2022
5dd4359
Merge pull request #6 from stolostron/polarion_id
quchangl-github Jan 23, 2022
cee445e
update operator in Jenkins file
Jan 23, 2022
adfa74c
Merge pull request #7 from stolostron/update_jenkins
quchangl-github Jan 23, 2022
9bccdf5
update polarion ID
Jan 24, 2022
ef66e9c
Merge pull request #8 from stolostron/update_polarion_ID
quchangl-github Jan 24, 2022
392bb00
add condition for there's no managedcluster in options.xml
Jan 27, 2022
7952c38
Merge pull request #9 from stolostron/addon_managedcluster
quchangl-github Jan 27, 2022
97963c9
rmove sensitive info according to gitleak, which not impact automation
Jan 28, 2022
d64255c
Merge pull request #10 from stolostron/gitleak
quchangl-github Jan 28, 2022
b99dc94
Merge pull request #11 from stolostron/release-2.4
quchangl-github Jan 28, 2022
361aa2c
update main for release25
Mar 27, 2022
d568bfe
Merge pull request #26 from stolostron/update_main25
quchangl-github Mar 27, 2022
829bc7f
fix disabled cr to checkaddon issue in 2.5
Mar 31, 2022
7b9d40f
Merge pull request #28 from openshift-cherrypick-robot/cherry-pick-27…
quchangl-github Mar 31, 2022
473ccf3
update for test case 1418
Apr 2, 2022
04b1fef
Merge pull request #29 from stolostron/update_case1418
quchangl-github Apr 2, 2022
f4825e6
improve the OCP watchdog alert forward
Apr 24, 2022
ccff7ff
Merge pull request #31 from stolostron/ocp_alertforward
quchangl-github Apr 24, 2022
5db970b
add case for recording and metrics
Apr 27, 2022
a7e2ccb
Merge pull request #35 from openshift-cherrypick-robot/cherry-pick-34…
quchangl-github Apr 27, 2022
98a7ddb
custome cert
May 16, 2022
7f60d41
Merge pull request #36 from stolostron/custom_cert
quchangl-github May 16, 2022
f4644f4
metrics addon
May 16, 2022
439744f
Merge pull request #39 from stolostron/metrics_addon
quchangl-github May 16, 2022
a59ef5f
deployment check and local-cluster
May 16, 2022
316a02d
Merge pull request #42 from stolostron/deployment
quchangl-github May 16, 2022
834a58c
exclude not working managedcluster into the obs.addon check list
May 17, 2022
c75e0e3
Merge pull request #45 from stolostron/jenkins_failure
quchangl-github May 17, 2022
bc4ea17
fix involved issue with no managed cluster error
May 23, 2022
675b018
Merge pull request #48 from stolostron/no_managedcluster
quchangl-github May 23, 2022
b6b3c0e
fix log error
May 23, 2022
5b3615d
Merge pull request #50 from stolostron/fix-log
quchangl-github May 23, 2022
8a381ed
add quchangl-github into approve list
quchangl-github May 23, 2022
4ad7ba6
work managed addon is available
May 28, 2022
d6442aa
Merge pull request #52 from stolostron/no_workmanageraddon
quchangl-github May 28, 2022
5c318f6
update case name for STS
Jul 5, 2022
0b7025a
Merge pull request #57 from openshift-cherrypick-robot/cherry-pick-56…
quchangl-github Jul 5, 2022
0290a0c
export metrics out of ACM
Jul 6, 2022
274cb21
Merge pull request #58 from stolostron/export
quchangl-github Jul 6, 2022
d8595ce
update automation according to Grafana changes in 2.6
Jul 22, 2022
c7aefcd
Merge pull request #60 from stolostron/grafana_changing26
quchangl-github Jul 22, 2022
456d98c
remaining update
Aug 4, 2022
bb119bd
Merge pull request #61 from stolostron/grafana_changing26
quchangl-github Aug 4, 2022
44f1049
update code for export metrics out of ACM
Aug 11, 2022
e1290ba
Merge pull request #63 from openshift-cherrypick-robot/cherry-pick-62…
quchangl-github Aug 11, 2022
d0957ee
update docker image as Vincent request
quchangl-github Aug 26, 2022
6742ead
only check local-cluster addon
Aug 27, 2022
089440d
Merge pull request #64 from stolostron/check_only_localcluster
quchangl-github Aug 27, 2022
aadfe55
raise pv size and add sleep for metrics export
Sep 26, 2022
27ccd95
Merge pull request #68 from stolostron/raise-pv-size
quchangl-github Sep 26, 2022
645b4fa
raise pvc size and fix resize issue
Oct 31, 2022
a21c758
Merge pull request #72 from stolostron/resize-pvc-size
quchangl-github Oct 31, 2022
1b209ff
update jenkins file to delete job after 30 days
Nov 2, 2022
506d731
Merge pull request #77 from openshift-cherrypick-robot/cherry-pick-76…
quchangl-github Nov 2, 2022
d462eab
consider uwl collector
Dec 26, 2022
a405a94
Merge pull request #78 from stolostron/uwl-collector
quchangl-github Dec 26, 2022
f96e4f9
fix alert forward failure
Jan 5, 2023
fe37bb2
Merge pull request #79 from stolostron/alertforward
quchangl-github Jan 5, 2023
bb59e4e
for case 1259
Jan 17, 2023
b9b0431
Merge pull request #80 from stolostron/case1259
quchangl-github Jan 17, 2023
628b1c7
echo CLOUD_PROVIDER
quchangl-github Feb 3, 2023
2f2aa0d
update for cloud provider
quchangl-github Feb 3, 2023
f28aef0
skip cases are not supported on the VMware
Feb 3, 2023
33b8826
remove cloud provider
quchangl-github Feb 3, 2023
e996471
Merge pull request #83 from stolostron/skip-unsupport-vmware
quchangl-github Feb 3, 2023
7bb6e68
sync two yaml files same to avoid storage size is not allowed to upda…
Feb 3, 2023
629d653
Merge pull request #84 from stolostron/exportmetrics-storagesize-vmware
quchangl-github Feb 3, 2023
dff6355
update jenkins file to add CLOUD_PROVIDER
Feb 6, 2023
223c878
Merge pull request #85 from stolostron/jenkins-cloud-provider
quchangl-github Feb 6, 2023
595e82e
remove the skip condition in the upgrading env
Feb 8, 2023
bfc8f66
Merge pull request #86 from stolostron/remove-skip
quchangl-github Feb 8, 2023
eef4c30
fix customized api error with add BearerToken
Feb 8, 2023
e9acf8e
Merge pull request #87 from stolostron/customized-api
quchangl-github Feb 8, 2023
4b806cc
automated test case for updating label into the cm
quchangl-github Feb 15, 2023
af31f4f
Merge pull request #91 from stolostron/label-cm
quchangl-github Feb 15, 2023
645d589
automated test case for updating label into the cm
quchangl-github Feb 15, 2023
ad29217
Merge pull request #92 from openshift-cherrypick-robot/cherry-pick-91…
quchangl-github Feb 15, 2023
2e6213e
add auto case for disable alert forward
quchangl-github Feb 20, 2023
fc8d49b
Merge pull request #95 from stolostron/alert-disabled
quchangl-github Feb 20, 2023
a379906
add auto case for disable alert forward
quchangl-github Feb 20, 2023
1a9a0d3
Merge pull request #96 from openshift-cherrypick-robot/cherry-pick-95…
quchangl-github Feb 20, 2023
9da95e9
improve disable alert case
quchangl-github Feb 22, 2023
66334f7
Merge pull request #97 from stolostron/improve-disable-alert
quchangl-github Feb 22, 2023
46ef095
improve disable alert case
quchangl-github Feb 22, 2023
8fa4495
Merge pull request #98 from openshift-cherrypick-robot/cherry-pick-97…
quchangl-github Feb 22, 2023
b268dcd
remove existing or previous pullsecret to avoid make new installation…
quchangl-github Mar 2, 2023
5e6f95d
Merge pull request #103 from stolostron/remove-existing-pullsec
quchangl-github Mar 2, 2023
74f07a5
remove existing or previous pullsecret to avoid make new installation…
quchangl-github Mar 2, 2023
77c6735
Merge pull request #104 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Mar 2, 2023
7ffcf2c
skip another unsupported case on the VMware
quchangl-github Mar 3, 2023
b13d29f
Merge pull request #105 from stolostron/another-skip-vmware
quchangl-github Mar 3, 2023
7f0df4b
skip another unsupported case on the VMware
quchangl-github Mar 3, 2023
a1df08f
Merge pull request #106 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Mar 3, 2023
86deef3
create Dockerfile and execute command file required by Openshft CI to…
vboulos Mar 16, 2023
4b9eb57
Merge pull request #107 from stolostron/vboulos-containerize-obs-rele…
quchangl-github Mar 20, 2023
ad9089c
new automation case for 30645
quchangl-github Apr 7, 2023
fdc4126
Merge pull request #110 from stolostron/ocpcm-notrepalced
quchangl-github Apr 7, 2023
950a04d
auto test case 31474 and 31475
quchangl-github Apr 11, 2023
1ef4662
Merge pull request #112 from stolostron/auto-31474
quchangl-github Apr 11, 2023
0409003
remove result files which are not useable
quchangl-github Apr 21, 2023
6ef3ad9
Merge pull request #132 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Apr 21, 2023
8fe169f
udpate receive replica to 3 and remove limitation
quchangl-github May 5, 2023
85e4f75
update receive replica to 3 and remove limitation2
quchangl-github May 5, 2023
d6ea844
Merge pull request #149 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github May 5, 2023
9177d73
reduce some deployment component replica to 2
quchangl-github May 11, 2023
4aa4486
Merge pull request #152 from stolostron/reduce-deloy-replica
quchangl-github May 11, 2023
e7eac3e
extend resource quota to avoid touch limitation
quchangl-github May 16, 2023
7f1ca14
Merge pull request #158 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github May 19, 2023
89bf6f7
Revert "[main] Receive replica limit"
quchangl-github May 19, 2023
bfd2b5f
Merge pull request #161 from stolostron/revert-149-cherry-pick-147-to…
quchangl-github May 19, 2023
63542a7
Revert "reduce some deployment component replica to 2"
quchangl-github May 19, 2023
968db81
Merge pull request #164 from stolostron/revert-152-reduce-deloy-replica
quchangl-github May 19, 2023
7cb669b
update files for main CI
quchangl-github May 30, 2023
10b5fb5
Merge pull request #166 from stolostron/main-ci
quchangl-github May 30, 2023
2045f2a
rename to junit_results.xml for CI
quchangl-github Jun 6, 2023
629a7b8
Merge pull request #168 from stolostron/rename-junit-results
quchangl-github Jun 6, 2023
a5b1fe2
Update OWNERS
quchangl-github Jun 8, 2023
eb5fbda
remove sensistive info
quchangl-github Jun 25, 2023
2b5bd08
Merge pull request #169 from stolostron/remove-sensitive
quchangl-github Jun 25, 2023
6009c89
remove further password information
quchangl-github Jun 25, 2023
e0e33ef
Merge pull request #170 from stolostron/remove-sensitive
quchangl-github Jun 25, 2023
9af7e12
increase grafana-dev retry time period
quchangl-github Jun 29, 2023
a9c0490
Merge pull request #181 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Jun 29, 2023
6fca384
import case to ignore case sensitive of vmware (#185)
openshift-cherrypick-robot Jul 21, 2023
2424959
skip the extanding pvc case on IBM cloud
quchangl-github Jul 21, 2023
97c56c5
Merge pull request #189 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Jul 21, 2023
17e1c38
add tag for ocpInterop
quchangl-github Aug 3, 2023
13a4514
update focus value
quchangl-github Aug 3, 2023
6403d1c
update tag with @ocpInterop
quchangl-github Aug 23, 2023
68544b3
Merge pull request #194 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Aug 30, 2023
9badb99
add tag for @e2e
quchangl-github Aug 30, 2023
585a84b
add tag for tag @post-release
quchangl-github Aug 30, 2023
0bc9ee9
add tag for @pre-upgrade
quchangl-github Aug 30, 2023
da46100
add tag for @post-upgrade
quchangl-github Aug 30, 2023
be1f036
add tag for @post-restore
quchangl-github Aug 30, 2023
80e5bf7
Merge pull request #195 from stolostron/e2e-tag
quchangl-github Aug 30, 2023
0baf78f
remove result file before running automation
quchangl-github Aug 31, 2023
e0cfaad
Merge pull request #200 from openshift-cherrypick-robot/cherry-pick-1…
quchangl-github Aug 31, 2023
ad3e3d2
update ci script for tagging
quchangl-github Aug 31, 2023
e71c598
Merge pull request #204 from openshift-cherrypick-robot/cherry-pick-2…
quchangl-github Aug 31, 2023
557abab
skip case 1443 for ocpInterop
quchangl-github Sep 4, 2023
0246ceb
Merge pull request #206 from openshift-cherrypick-robot/cherry-pick-2…
quchangl-github Sep 4, 2023
26299d9
update ManagedClusterAddonsStatusMessage to distinguish ManagedCluste…
quchangl-github Sep 14, 2023
7fb9077
Merge pull request #209 from stolostron/update-managedclusteraddon-me…
quchangl-github Sep 14, 2023
878f09f
update collection interval to 300
quchangl-github Sep 22, 2023
49937ff
Merge pull request #210 from stolostron/update-interval-to300
quchangl-github Sep 22, 2023
1499704
update case interval to 300 to cordinate deployment interval update
quchangl-github Sep 26, 2023
08784a4
Merge pull request #214 from stolostron/update-caseinterval
quchangl-github Sep 26, 2023
9c420c6
correct minio true setting
quchangl-github Oct 26, 2023
2409409
correct minio option setting
quchangl-github Oct 26, 2023
f506464
Merge pull request #218 from stolostron/minio-true
quchangl-github Oct 26, 2023
777919c
ignore csv_abormal
quchangl-github Nov 1, 2023
d648479
Merge pull request #219 from stolostron/ignore-csv-abormal
quchangl-github Nov 1, 2023
de9259c
increase receive, rule, and alertmanager replica
quchangl-github Nov 3, 2023
7129e8f
Merge pull request #222 from stolostron/raise-receive-rule-altma-replica
quchangl-github Nov 3, 2023
1393e78
replace by new bucket on jenkins
quchangl-github Nov 3, 2023
dc906a7
Merge pull request #223 from stolostron/jenkins-new-bucket
quchangl-github Nov 3, 2023
cc1e7c3
remove unsupported cleanupInterval
quchangl-github Nov 3, 2023
cdbbc7f
Merge pull request #228 from stolostron/remove-cleanupInterval
quchangl-github Nov 3, 2023
056e019
case-39481
quchangl-github Jan 17, 2024
a5fc2ee
Merge pull request #230 from stolostron/prorule
quchangl-github Jan 17, 2024
f19a3d0
update jenkins to get cluster name
quchangl-github Jan 22, 2024
3fcf992
remove previous export commands
quchangl-github Jan 22, 2024
ac6fe57
add echo for debug
quchangl-github Jan 22, 2024
a0cd203
remove previous hub name and base domain variables
quchangl-github Jan 22, 2024
d82a3b6
not hardcode port 6443
quchangl-github Jan 25, 2024
7af82f5
remove warning
quchangl-github Jan 25, 2024
2079e7e
fix format issue
quchangl-github Jan 25, 2024
85086f3
original PR file
quchangl-github Jan 25, 2024
7969497
not hardcode 6443 with new code change
quchangl-github Jan 25, 2024
0218f91
correct warning for \\
quchangl-github Jan 25, 2024
12f2727
warning is gone, but not get the value, try to fix it
quchangl-github Jan 25, 2024
71b1c84
trying new value
quchangl-github Jan 25, 2024
86715e6
fixing by another way
quchangl-github Jan 25, 2024
9a433ad
continue fix
quchangl-github Jan 25, 2024
6911a08
continue fix 2
quchangl-github Jan 25, 2024
7671904
Merge pull request #232 from stolostron/jenkins-update-apiurl
quchangl-github Jan 25, 2024
fa23674
update port for rosa 443
quchangl-github Jan 31, 2024
4631e47
update api port to 443
quchangl-github Jan 31, 2024
e728c62
add condition judgment for rosa hcp
quchangl-github Feb 5, 2024
233c577
Merge pull request #233 from stolostron/rosa-port
quchangl-github Feb 5, 2024
0be8e82
update case for 8509 to validate install and namespace changes
quchangl-github Mar 6, 2024
1ba8ad4
Merge pull request #234 from stolostron/8509-install-ns-update
quchangl-github Mar 6, 2024
4fa697c
fix auto 1260 cases failures
quchangl-github Mar 7, 2024
0e7cda4
Merge pull request #235 from stolostron/8509-1260fix
quchangl-github Mar 7, 2024
ab09598
fix 1418 auto failures
quchangl-github Mar 7, 2024
8670067
Merge pull request #236 from stolostron/8509-1418-fix
quchangl-github Mar 7, 2024
cf395e4
fix auto 1288 failures
quchangl-github Mar 7, 2024
9401ad2
Merge pull request #237 from stolostron/8509-1288-fix
quchangl-github Mar 7, 2024
d855e6a
fix auto 1657 failures
quchangl-github Mar 7, 2024
7575849
Merge pull request #238 from stolostron/8509-1657-fix
quchangl-github Mar 7, 2024
69d384b
remove hcp metrics due to they always not existing
quchangl-github Mar 11, 2024
5ccb0d4
Merge pull request #239 from stolostron/remove-hcp-metrics
quchangl-github Mar 11, 2024
0e21161
sync lastest scripts into the automation
quchangl-github Mar 20, 2024
7d9035f
remove the unavailable metrics data
quchangl-github Mar 20, 2024
0ee68db
Merge pull request #240 from stolostron/grafana-dev-update
quchangl-github Mar 20, 2024
aa75c39
Merge pull request #241 from stolostron/ignore-unavailable-metrics
quchangl-github Mar 20, 2024
d730931
add ignore metrics for rosa hcp
quchangl-github Apr 19, 2024
d548335
Merge pull request #242 from stolostron/ignore-metrics-rosahcp
quchangl-github Apr 19, 2024
19d64c1
add auto case for case 6923
quchangl-github Apr 26, 2024
60a1c09
Merge pull request #244 from openshift-cherrypick-robot/cherry-pick-2…
quchangl-github Apr 26, 2024
866d23f
ignore kubevirt_hyperconverged_operator_health_status
quchangl-github May 13, 2024
85e4c05
Merge pull request #245 from stolostron/ignore-kubevirt_hyperconverge…
quchangl-github May 13, 2024
963cf80
add local-cluster ID into the managedclusterID
quchangl-github May 23, 2024
1d241d4
Merge pull request #247 from stolostron/fix-alert-forward
quchangl-github May 23, 2024
bc06f8b
ignore kubevirt_hco_system_health_status
quchangl-github Jul 4, 2024
57c2a86
Merge pull request #251 from stolostron/ignore-kubevirthco
quchangl-github Jul 4, 2024
7bd711b
increase case 11170 duration to avoid failure
quchangl-github Jul 5, 2024
b2502ce
Merge pull request #252 from stolostron/increase-11170-duration
quchangl-github Jul 5, 2024
d0c9344
update alertmanager host for rosa hcp
quchangl-github Aug 26, 2024
d4797a1
Merge pull request #254 from stolostron/alertmanager-host-rosa
quchangl-github Aug 26, 2024
211da9e
fix for rbac url rosa hcp
quchangl-github Aug 26, 2024
f81412e
Merge pull request #255 from stolostron/rbac-host-rosahcp
quchangl-github Aug 26, 2024
4557c12
skip rosa hcp on cert testing
quchangl-github Aug 26, 2024
e6c98fb
Merge pull request #256 from stolostron/skip-cert-rosahcp
quchangl-github Aug 26, 2024
8ee6a31
ignore new addon multicluster-observability-addon-manager affinity ch…
quchangl-github Sep 11, 2024
5a1583d
Merge pull request #257 from stolostron/ignore-newaddon-affinity
quchangl-github Sep 11, 2024
6cdc05c
add tag for non-ui testing
quchangl-github Sep 12, 2024
1641787
Merge pull request #258 from stolostron/nonui-tag
quchangl-github Sep 12, 2024
4b2fa21
update yaml to add scrapeSizeLimitBytes
quchangl-github Sep 23, 2024
0cd6e78
Merge pull request #259 from stolostron/add-scrapeSizeLimitBytes
quchangl-github Sep 23, 2024
c041fe5
ignore metrics kubevirt_vmi_info to improve cases pass rate
quchangl-github Oct 10, 2024
96fe566
Merge pull request #260 from stolostron/ignore-kubevirt_vmi_info
quchangl-github Oct 10, 2024
eaf27bb
add auto case for 52080
quchangl-github Oct 21, 2024
5a5aafe
Merge pull request #261 from stolostron/auto-52080
quchangl-github Oct 21, 2024
e0b1159
ignore kubevirt_vm_running_status_last_transition_timestamp_seconds
quchangl-github Oct 22, 2024
d503dce
Merge pull request #262 from stolostron/remove-kubevirt_vm_running_st…
quchangl-github Oct 22, 2024
b6e22c2
ignore metrics kubevirt_vm_non_running_status_last_transition_timesta…
quchangl-github Oct 25, 2024
be10e5e
Merge pull request #263 from stolostron/remove-kubevirt_vm_non_runnin…
quchangl-github Oct 25, 2024
50cb662
ignore kubevirt_vm_error_status_last_transition_timestamp_seconds
quchangl-github Nov 1, 2024
4360b8a
Merge pull request #264 from stolostron/remove-kubevirt_vm_error_stat…
quchangl-github Nov 1, 2024
57b2670
ignore vm related metrics
quchangl-github Nov 4, 2024
335956c
Merge pull request #265 from stolostron/ignore-vm-metrics
quchangl-github Nov 4, 2024
1b2f891
update grafanadev script and readme
quchangl-github Nov 10, 2024
fdfb6bf
Merge pull request #266 from stolostron/update-grafanadev-readme-script
quchangl-github Nov 10, 2024
a28b348
Increase timeout of custom dashboard test (#267)
jacobbaungard Nov 19, 2024
cc5c968
Add ACM obs team to OWNERS (#268)
jacobbaungard Nov 19, 2024
01e98ad
Don't use custom dashboard in grafana-dev test (#271)
jacobbaungard Dec 5, 2024
bd94335
Merge remote-tracking branch 'core-automation/main' into core-automat…
jacobbaungard Dec 18, 2024
728cf45
Various post-merge fixes
jacobbaungard Dec 19, 2024
f06a7d1
Formatting
jacobbaungard Dec 19, 2024
2081baf
Don't use ioutils
jacobbaungard Dec 19, 2024
4010d13
Cleanup of used vars
jacobbaungard Dec 19, 2024
f0710ae
Format, clean unused code
jacobbaungard Dec 19, 2024
0b5dc4c
Actually format...
jacobbaungard Dec 19, 2024
d7c98bc
More unused code
jacobbaungard Dec 19, 2024
39d4643
fix copyright
jacobbaungard Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile.interop
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Command to build this Dockerfile
# docker build -f Dockerfile -t quay.io/vboulos/acmqe-automation/obs:obs-ginkgo_1_14_2-linux-go .

FROM quay.io/vboulos/acmqe-automation/ginkgo_1_14_2-linux-go


# Copy the Obs repo repo into /tmp/obs folder
RUN mkdir /tmp/obs
WORKDIR /tmp/obs
COPY . .

# good colors for most applications
ENV TERM=xterm

# Set required permissions for OpenShift usage
RUN chgrp -R 0 /tmp && \
chmod -R g=u /tmp

RUN mkdir -p /go
RUN chgrp -R 0 /go && \
chmod -R g=u /go

RUN mkdir -p ~/.kube
RUN chgrp -R 0 ~/.kube && \
chmod -R g=u ~/.kube

RUN mkdir -p /alabama/.kube
RUN chgrp -R 0 /alabama/.kube && \
chmod -R g=u /alabama/.kube

CMD ["/bin/bash"]
122 changes: 122 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
pipeline {
options {
buildDiscarder(logRotator(daysToKeepStr: '30'))
}
agent {
docker {
image 'quay.io/vboulos/acmqe-automation/ginkgo_1_14_2-linux-go'
args '--network host -u 0:0'
}
}
parameters {
string(name:'CLOUD_PROVIDER', defaultValue: '', description: 'Cloud provider, OCP and ACM version information, like VMWARE-412-264, AWS-411')
string(name:'HUB_CLUSTER_NAME', defaultValue: '', description: 'Name of Hub cluster')
string(name:'BASE_DOMAIN', defaultValue: '', description: 'Base domain of Hub cluster')
string(name:'OC_CLUSTER_USER', defaultValue: 'kubeadmin', description: 'OCP Hub User Name')
string(name:'OC_HUB_CLUSTER_PASS', defaultValue: '', description: 'OCP Hub Password')
string(name:'OC_HUB_CLUSTER_API_URL', defaultValue: '', description: 'OCP Hub API URL')
string(name:'MANAGED_CLUSTER_NAME', defaultValue: '', description: 'Managed cluster name')
string(name:'MANAGED_CLUSTER_BASE_DOMAIN', defaultValue: '', description: 'Managed cluster base domain')
string(name:'MANAGED_CLUSTER_USER', defaultValue: 'kubeadmin', description: 'Managed Cluster User Name')
string(name:'MANAGED_CLUSTER_PASS', defaultValue: '', description: 'Managed cluster Password')
string(name:'MANAGED_CLUSTER_API_URL', defaultValue: '', description: 'Managed cluster API URL')
string(name:'BUCKET', defaultValue: 'obs-auto-bucket', description: 'Bucket name')
string(name:'REGION', defaultValue: 'us-east-1', description: 'Bucket region')
password(name:'AWS_ACCESS_KEY_ID', defaultValue: '', description: 'AWS access key ID')
password(name:'AWS_SECRET_ACCESS_KEY', defaultValue: '', description: 'AWS secret access key')
string(name:'SKIP_INSTALL_STEP', defaultValue: 'false', description: 'Skip Observability installation')
string(name:'SKIP_UNINSTALL_STEP', defaultValue: 'true', description: 'Skip Observability uninstallation')
string(name:'TAGGING', defaultValue: '', description: 'with tagging value to run the specific test cases')
string(name:'USE_MINIO', defaultValue: 'false', description: 'If no AWS S3 bucket, you could use minio as object storage to instead')
}
environment {
CI = 'true'
AWS_SECRET_ACCESS_KEY = credentials('cqu_aws_secret_access_key')
AWS_ACCESS_KEY_ID = credentials('cqu_aws_access_key')
}
stages {
stage('Test Run') {
steps {
sh """
export CLOUD_PROVIDER="${params.CLOUD_PROVIDER}"
export OC_CLUSTER_USER="${params.OC_CLUSTER_USER}"
set +x
export OC_HUB_CLUSTER_PASS="${params.OC_HUB_CLUSTER_PASS}"
set -x
export OC_HUB_CLUSTER_API_URL="${params.OC_HUB_CLUSTER_API_URL}"
BASE_DOMAIN=\$(echo \${OC_HUB_CLUSTER_API_URL} | awk -F'https://api\\.|:' '{print \$2}')
HUB_CLUSTER_NAME=\$(echo \$BASE_DOMAIN | cut -d'.' -f1)
echo "BASE_DOMAIN: \$BASE_DOMAIN"
echo "HUB_CLUSTER_NAME: \$HUB_CLUSTER_NAME"
export HUB_CLUSTER_NAME="\$HUB_CLUSTER_NAME"
export BASE_DOMAIN="\$BASE_DOMAIN"
export MANAGED_CLUSTER_NAME="${params.MANAGED_CLUSTER_NAME}"
export MANAGED_CLUSTER_BASE_DOMAIN="${params.MANAGED_CLUSTER_BASE_DOMAIN}"
export MANAGED_CLUSTER_USER="${params.MANAGED_CLUSTER_USER}"
set +x
export MANAGED_CLUSTER_PASS="${params.MANAGED_CLUSTER_PASS}"
set -x
export MANAGED_CLUSTER_API_URL="${params.MANAGED_CLUSTER_API_URL}"
export BUCKET="${params.BUCKET}"
export REGION="${params.REGION}"
export SKIP_INSTALL_STEP="${params.SKIP_INSTALL_STEP}"
export SKIP_UNINSTALL_STEP="${params.SKIP_UNINSTALL_STEP}"
export TAGGING="${params.TAGGING}"
export USE_MINIO="${params.USE_MINIO}"
export IS_CANARY_ENV=true

if [[ -n "${params.AWS_ACCESS_KEY_ID}" ]]; then
export AWS_ACCESS_KEY_ID="${params.AWS_ACCESS_KEY_ID}"
fi

if [[ -n "${params.AWS_SECRET_ACCESS_KEY}" ]]; then
export AWS_SECRET_ACCESS_KEY="${params.AWS_SECRET_ACCESS_KEY}"
fi

if [[ "${params.USE_MINIO}" == true ]]; then
export IS_CANARY_ENV=false
fi
if [[ -z "${OC_CLUSTER_USER}" || -z "${OC_HUB_CLUSTER_PASS}" || -z "${OC_HUB_CLUSTER_API_URL}" ]]; then
echo "Aborting test.. OCP HUB details are required for the test execution"
exit 1
else
if [[ -n "${params.MANAGED_CLUSTER_USER}" && -n "${params.MANAGED_CLUSTER_PASS}" && -n "${params.MANAGED_CLUSTER_API_URL}" ]]; then
set +x
oc login --insecure-skip-tls-verify -u \$MANAGED_CLUSTER_USER -p \$MANAGED_CLUSTER_PASS \$MANAGED_CLUSTER_API_URL
set -x
oc config view --minify --raw=true > ~/.kube/managed_kubeconfig
export MAKUBECONFIG=~/.kube/managed_kubeconfig
fi
set +x
oc login --insecure-skip-tls-verify -u \$OC_CLUSTER_USER -p \$OC_HUB_CLUSTER_PASS \$OC_HUB_CLUSTER_API_URL
set -x
export KUBECONFIG=~/.kube/config
go mod vendor && ginkgo build ./tests/pkg/tests/
rm -rf tests/pkg/tests/*.xml
cd tests
cp resources/options.yaml.template resources/options.yaml
/usr/local/bin/yq e -i '.options.hub.name="'"\$HUB_CLUSTER_NAME"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.hub.baseDomain="'"\$BASE_DOMAIN"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.name="'"\$MANAGED_CLUSTER_NAME"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.baseDomain="'"\$MANAGED_CLUSTER_BASE_DOMAIN"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.kubeconfig="'"\$MAKUBECONFIG"'"' resources/options.yaml
cat resources/options.yaml
if [[ -n "${params.TAGGING}" ]]; then
ginkgo --focus="\$TAGGING" -v pkg/tests/ -- -options=../../resources/options.yaml -v=5
else
ginkgo -v pkg/tests/ -- -options=../../resources/options.yaml -v=5
fi
fi
"""
}
}


}
post {
always {
archiveArtifacts artifacts: 'tests/pkg/tests/*.xml', followSymlinks: false
junit 'tests/pkg/tests/*.xml'
}
}
}
68 changes: 68 additions & 0 deletions execute_obs_interop_commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/bin/bash

export PARAM_AWS_SECRET_ACCESS_KEY=${PARAM_AWS_SECRET_ACCESS_KEY:-}
export PARAM_AWS_ACCESS_KEY_ID=${PARAM_AWS_ACCESS_KEY_ID:-}
export CLOUD_PROVIDER=${CLOUD_PROVIDER:-}
export OC_CLUSTER_USER=${OC_CLUSTER_USER:-}
export OC_HUB_CLUSTER_PASS=${OC_HUB_CLUSTER_PASS:-}
export OC_HUB_CLUSTER_API_URL=${OC_HUB_CLUSTER_API_URL:-}
export HUB_CLUSTER_NAME=${HUB_CLUSTER_NAME:-}
export BASE_DOMAIN=${BASE_DOMAIN:-}
export MANAGED_CLUSTER_NAME=${MANAGED_CLUSTER_NAME:-}
export MANAGED_CLUSTER_BASE_DOMAIN=${MANAGED_CLUSTER_BASE_DOMAIN:-}
export MANAGED_CLUSTER_USER=${MANAGED_CLUSTER_USER:-}
export MANAGED_CLUSTER_PASS=${MANAGED_CLUSTER_PASS:-}
export MANAGED_CLUSTER_API_URL=${MANAGED_CLUSTER_API_URL}
export BUCKET=${BUCKET:-'obs-v1'}
export REGION=${REGION:-'us-east-1'}
export USE_MINIO=${USE_MINIO:-'false'}
export SKIP_INSTALL_STEP=${SKIP_INSTALL_STEP:-'false'}
export SKIP_UNINSTALL_STEP=${SKIP_UNINSTALL_STEP:-'true'}
export TAGGING=${TAGGING:-}

if [[ -n ${PARAM_AWS_ACCESS_KEY_ID} ]]; then
export AWS_ACCESS_KEY_ID=${PARAM_AWS_ACCESS_KEY_ID}
fi

if [[ -n ${PARAM_AWS_SECRET_ACCESS_KEY} ]]; then
export AWS_SECRET_ACCESS_KEY=${PARAM_AWS_SECRET_ACCESS_KEY}
fi

# if [[ ${!USE_MINIO} == "false" ]]; then
# export IS_CANARY_ENV=true
# fi

export IS_CANARY_ENV=true

if [[ -z ${HUB_CLUSTER_NAME} || -z ${BASE_DOMAIN} || -z ${OC_CLUSTER_USER} || -z ${OC_HUB_CLUSTER_PASS} || -z ${OC_HUB_CLUSTER_API_URL} ]]; then
echo "Aborting test.. OCP HUB details are required for the test execution"
exit 1
else
if [[ -n ${MANAGED_CLUSTER_USER} && -n ${MANAGED_CLUSTER_PASS} && -n ${MANAGED_CLUSTER_API_URL} ]]; then
oc login --insecure-skip-tls-verify -u $MANAGED_CLUSTER_USER -p $MANAGED_CLUSTER_PASS $MANAGED_CLUSTER_API_URL
oc config view --minify --raw=true >~/.kube/managed_kubeconfig
export MAKUBECONFIG=~/.kube/managed_kubeconfig
fi
set +x
oc login --insecure-skip-tls-verify -u $OC_CLUSTER_USER -p $OC_HUB_CLUSTER_PASS $OC_HUB_CLUSTER_API_URL
set -x

oc config view --minify --raw=true >userfile
//cat userfile
whoami
rm -rf ~/.kube/config
cp userfile ~/.kube/config
//cat ~/.kube/config
export KUBECONFIG=~/.kube/config

go mod vendor && ginkgo build ./tests/pkg/tests/
cd tests
cp resources/options.yaml.template resources/options.yaml
/usr/local/bin/yq e -i '.options.hub.name="'"$HUB_CLUSTER_NAME"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.hub.baseDomain="'"$BASE_DOMAIN"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.name="'"$MANAGED_CLUSTER_NAME"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.baseDomain="'"$MANAGED_CLUSTER_BASE_DOMAIN"'"' resources/options.yaml
/usr/local/bin/yq e -i '.options.clusters.kubeconfig="'"$MAKUBECONFIG"'"' resources/options.yaml
cat resources/options.yaml
ginkgo --focus=$TAGGING -v pkg/tests/ -- -options=../../resources/options.yaml -v=5
fi
29 changes: 24 additions & 5 deletions tests/pkg/tests/observability-e2e-test_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"fmt"
"math/rand"
"os"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -217,19 +218,37 @@ func initVars() {
testOptions.KubeConfig = kubeconfig
}

cloudProvider := strings.ToLower(os.Getenv("CLOUD_PROVIDER"))
substring1 := "rosa"
substring2 := "hcp"
if testOptions.HubCluster.BaseDomain != "" {
baseDomain = testOptions.HubCluster.BaseDomain

if testOptions.HubCluster.ClusterServerURL == "" {
testOptions.HubCluster.ClusterServerURL = fmt.Sprintf(
"https://api.%s:6443",
testOptions.HubCluster.BaseDomain,
)
// TODO: Simplify
if strings.Contains(cloudProvider, substring1) && strings.Contains(cloudProvider, substring2) {

testOptions.HubCluster.ClusterServerURL = fmt.Sprintf(
"https://api.%s:443",
testOptions.HubCluster.BaseDomain,
)
} else {
testOptions.HubCluster.ClusterServerURL = fmt.Sprintf(
"https://api.%s:6443",
testOptions.HubCluster.BaseDomain,
)
}
}
} else {
Expect(baseDomain).NotTo(BeEmpty(), "The `baseDomain` is required.")
testOptions.HubCluster.BaseDomain = baseDomain
testOptions.HubCluster.ClusterServerURL = fmt.Sprintf("https://api.%s:6443", baseDomain)
// TODO: Simplify
if strings.Contains(cloudProvider, substring1) && strings.Contains(cloudProvider, substring2) {

testOptions.HubCluster.ClusterServerURL = fmt.Sprintf("https://api.%s:443", baseDomain)
} else {
testOptions.HubCluster.ClusterServerURL = fmt.Sprintf("https://api.%s:6443", baseDomain)
}
}

if testOptions.HubCluster.User != "" {
Expand Down
Loading
Loading