Skip to content

Commit

Permalink
test-fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Jul 1, 2024
1 parent ee85268 commit 3a435fb
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/e2e/coco-workload/create/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,24 @@ spec:
check:
(contains($stdout, 'deployment.apps/nginx created')): true

- name: "Verify deployment creation"
try:
- assert:
file: ../deploy-assert.yaml

- name: "Create a sample runtimeclass"
try:
- script:
content: kubectl apply -f ../runtime.yaml-n $NAMESPACE
content: kubectl apply -f ../runtime.yaml -n $NAMESPACE
check:
(contains($stdout, 'runtimeclass.node.k8s.io/kata-clh created')): true

- name: "Verify runtime creation"
try:
- assert:
file: ../runtime.yaml


- name: "Create a SecurityIntent"
try:
- apply:
Expand Down
35 changes: 35 additions & 0 deletions tests/e2e/coco-workload/deploy-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: nginx
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
imagePullPolicy: Always
name: nginx
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30

0 comments on commit 3a435fb

Please sign in to comment.