try fix codeserver addon test

This commit is contained in:
Kjeld Schouten-Lebbing
2023-02-23 11:28:08 +01:00
parent 0eb09e0b24
commit eeccc2c51a

View File

@@ -28,11 +28,8 @@ tests:
enabled: true
asserts:
- hasDocuments:
count: 4
- documentIndex: &CodeServerDeploymentDocument 0
isKind:
of: Deployment
- documentIndex: &DeploymentDocument 1
count: 3
- documentIndex: &DeploymentDocument 0
isKind:
of: Deployment
- documentIndex: &AddonServiceDocument 2
@@ -47,8 +44,12 @@ tests:
value: release-name-common-test
- documentIndex: *CodeServerDeploymentDocument
equal:
path: metadata.name
path: spec.template.spec.containers[0].name
value: release-name-common-test-codeserver
- documentIndex: *CodeServerDeploymentDocument
equal:
path: spec.template.spec.containers[1].name
value: release-name-common-test
- documentIndex: *ServiceDocument
equal:
path: metadata.name