fix tests

This commit is contained in:
Stavros kois
2023-02-13 14:52:45 +02:00
parent a9828c250d
commit 923d87f009
3 changed files with 15 additions and 24 deletions

View File

@@ -42,15 +42,12 @@ tests:
asserts:
- documentIndex: *daemonSetDoc
isSubset:
path: spec
path: spec.updateStrategy
content:
replicas: 2
revisionHistoryLimit: 4
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
- it: should apply spec correctly
set:

View File

@@ -40,15 +40,12 @@ tests:
asserts:
- documentIndex: *deploymentDoc
isSubset:
path: spec
path: spec.strategy
content:
replicas: 2
revisionHistoryLimit: 4
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
- it: should apply spec correctly
set:

View File

@@ -42,15 +42,12 @@ tests:
asserts:
- documentIndex: *statefulSetDoc
isSubset:
path: spec
path: spec.updateStrategy
content:
replicas: 2
revisionHistoryLimit: 4
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
partition: 1
type: RollingUpdate
rollingUpdate:
maxSurge: 1
partition: 1
- it: should apply spec correctly
set: