Add teleport agent update
This commit is contained in:
@@ -66,6 +66,18 @@ tests:
|
||||
value: some-other-secret-name
|
||||
- matchSnapshot: {}
|
||||
|
||||
- it: generates a secret when jamfCredentialsSecret.create is true
|
||||
values:
|
||||
- ../.lint/jamf-service.yaml
|
||||
asserts:
|
||||
- containsDocument:
|
||||
kind: Secret
|
||||
apiVersion: v1
|
||||
name: teleport-jamf-api-credentials
|
||||
- matchSnapshot: {}
|
||||
# documentIndex: 0=Secret(joinToken) 1=Secret(jamfSecret)
|
||||
documentIndex: 1
|
||||
|
||||
- it: does not create a secret when joinTokenSecret.create is false
|
||||
set:
|
||||
authToken: sample-auth-token-dont-use-this
|
||||
@@ -76,6 +88,13 @@ tests:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: does not create a secret when jamfCredentialsSecret.create is false
|
||||
values:
|
||||
- ../.lint/jamf-service-existing-secret.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1 # only joinToken secret is created
|
||||
|
||||
- it: sets Secret labels when specified
|
||||
values:
|
||||
- ../.lint/extra-labels.yaml
|
||||
|
||||
Reference in New Issue
Block a user