You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently refactored the ocp4e2e testing to support more test cases,
in particular for running all node and platform rules. This means just
running all go tests can have adverse side-effects if we only want to
test a specific profile.
This commit removes unused variables or variables that are redundant
with the defaults, and adjusts the test filtering so that profile tests
only run TestProfileRemediation, maintaining the older behavior of just
running a single profile on a cluster to assess it's compliance posture.
It also ensure jq is installed and available for the test suite to use,
since some of the tests require manual remediations, and use jq to parse
information from the openshift client.
Remove 4.13 and 4.15 CI since those versions are no longer supported.
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
49
+
pushd ocp4e2e; make install-jq
50
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
74
+
pushd ocp4e2e; make install-jq
75
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
100
+
pushd ocp4e2e; make install-jq
101
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
126
+
pushd ocp4e2e; make install-jq
127
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
151
+
pushd ocp4e2e; make install-jq
152
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
176
+
pushd ocp4e2e; make install-jq
177
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
205
+
pushd ocp4e2e; make install-jq
206
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
231
+
pushd ocp4e2e; make install-jq
232
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
257
+
pushd ocp4e2e; make install-jq
258
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
282
+
pushd ocp4e2e; make install-jq
283
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
307
+
pushd ocp4e2e; make install-jq
308
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
332
+
pushd ocp4e2e; make install-jq
333
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
357
+
pushd ocp4e2e; make install-jq
358
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
386
+
pushd ocp4e2e; make install-jq
387
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
415
+
pushd ocp4e2e; make install-jq
416
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
441
+
pushd ocp4e2e; make install-jq
442
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
go test -v -timeout 120m github.com/ComplianceAsCode/ocp4e2e -profile="$PROFILE" -product="$PRODUCT" -content-image="$CONTENT_IMAGE"
467
+
pushd ocp4e2e; make install-jq
468
+
PATH=$PATH:/tmp/bin go test -v . -run=^TestProfileRemediations$ -profile=$PROFILE -product=$PRODUCT -content-image=ocp4-content-ds -content-directory=$CONTENT_DIRECTORY
PATH=$PATH:/tmp/bin go test -v . -run=^TestPlatformCompliance$ -install-operator=$(INSTALL_OPERATOR) -test-type="platform" -content-directory="$(CONTENT_DIRECTORY)"
PATH=$PATH:/tmp/bin go test -v . -run=^TestNodeCompliance$ -install-operator=$(INSTALL_OPERATOR) -test-type="node" -content-directory="$(CONTENT_DIRECTORY)"
PATH=$PATH:/tmp/bin go test -v . -run=^TestPlatformCompliance$ -install-operator=$(INSTALL_OPERATOR) -test-type="platform" -content-directory="$(CONTENT_DIRECTORY)"
PATH=$PATH:/tmp/bin go test -v . -run=^TestNodeCompliance$ -install-operator=$(INSTALL_OPERATOR) -test-type="node" -content-directory="$(CONTENT_DIRECTORY)"
0 commit comments