Skip to content

Commit 3a435fb

Browse files
committed
test-fix
Signed-off-by: Ved Ratan <[email protected]>
1 parent ee85268 commit 3a435fb

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

tests/e2e/coco-workload/create/chainsaw-test.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,24 @@ spec:
1616
check:
1717
(contains($stdout, 'deployment.apps/nginx created')): true
1818

19+
- name: "Verify deployment creation"
20+
try:
21+
- assert:
22+
file: ../deploy-assert.yaml
23+
1924
- name: "Create a sample runtimeclass"
2025
try:
2126
- script:
22-
content: kubectl apply -f ../runtime.yaml-n $NAMESPACE
27+
content: kubectl apply -f ../runtime.yaml -n $NAMESPACE
2328
check:
2429
(contains($stdout, 'runtimeclass.node.k8s.io/kata-clh created')): true
2530

31+
- name: "Verify runtime creation"
32+
try:
33+
- assert:
34+
file: ../runtime.yaml
35+
36+
2637
- name: "Create a SecurityIntent"
2738
try:
2839
- apply:
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
app: nginx
6+
name: nginx
7+
spec:
8+
progressDeadlineSeconds: 600
9+
replicas: 1
10+
revisionHistoryLimit: 10
11+
selector:
12+
matchLabels:
13+
app: nginx
14+
strategy:
15+
rollingUpdate:
16+
maxSurge: 25%
17+
maxUnavailable: 25%
18+
type: RollingUpdate
19+
template:
20+
metadata:
21+
labels:
22+
app: nginx
23+
spec:
24+
containers:
25+
- image: nginx
26+
imagePullPolicy: Always
27+
name: nginx
28+
resources: {}
29+
terminationMessagePath: /dev/termination-log
30+
terminationMessagePolicy: File
31+
dnsPolicy: ClusterFirst
32+
restartPolicy: Always
33+
schedulerName: default-scheduler
34+
securityContext: {}
35+
terminationGracePeriodSeconds: 30

0 commit comments

Comments
 (0)