Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmb committed Mar 7, 2022
1 parent 1361c8d commit f04884d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions test/fixtures/hello-cloud/unmanaged-pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: Pod
metadata:
name: unmanaged-pod-0
annotations:
krane.shopify.io/timeout-override: 60s
labels:
type: unmanaged-pod
name: unmanaged-pod-0
app: hello-cloud
spec:
activeDeadlineSeconds: 60
restartPolicy: Never
containers:
- name: hello-cloud
image: busybox
imagePullPolicy: IfNotPresent
command: ["sh", "-c", "echo 'Hello from the command runner!' && test 1 -eq 1"]
env:
- name: CONFIG
valueFrom:
configMapKeyRef:
name: hello-cloud-configmap-data
key: datapoint2
2 changes: 1 addition & 1 deletion test/integration/restart_task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_restart_by_annotation
end

def test_restart_statefulset_on_delete_restarts_child_pods
result = deploy_fixtures("hello-cloud", subset: ["configmap-data.yml", "unmanaged-pod-1.yml.erb", "stateful_set.yml"]) do |fixtures|
result = deploy_fixtures("hello-cloud", subset: ["configmap-data.yml", "unmanaged-pod.yml", "stateful_set.yml"]) do |fixtures|
statefulset = fixtures["stateful_set.yml"]["StatefulSet"].first
statefulset["spec"]["updateStrategy"] = { "type" => "OnDelete" }
end
Expand Down

0 comments on commit f04884d

Please sign in to comment.