Skip to content

Commit

Permalink
Updates E2E tests
Browse files Browse the repository at this point in the history
Updates Pod templates to pass the admission controller
Disables Knative tests

Signed-off-by: Bipul Adhikari <[email protected]>
  • Loading branch information
bipuladh committed Aug 17, 2022
1 parent 64e232b commit 693653b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
12 changes: 12 additions & 0 deletions frontend/integration-tests/tests/event.scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,22 @@ describe('Events', () => {
namespace: testName,
},
spec: {
securityContext: {
runAsNonRoot: true,
seccompProfile: {
type: 'RuntimeDefault',
},
},
containers: [
{
name: 'httpd',
image: 'image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest',
securityContext: {
allowPrivilegeEscalation: false,
capabilities: {
drop: ['ALL'],
},
},
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ kind: Pod
metadata:
name: ${POD_NAME}
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: ${CONTAINER_NAME}
image: quay.io/fedora/fedora
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
restartPolicy: Always`;

describe('Debug pod', () => {
Expand Down
2 changes: 1 addition & 1 deletion test-cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if [ -n "${headless-}" ] && [ -z "${pkg-}" ]; then
yarn run test-cypress-dev-console-headless
yarn run test-cypress-olm-headless
yarn run test-cypress-helm-headless
yarn run test-cypress-knative-headless
# yarn run test-cypress-knative-headless
yarn run test-cypress-topology-headless
yarn run test-cypress-pipelines-headless
exit;
Expand Down

0 comments on commit 693653b

Please sign in to comment.