Add teleport
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
suite: Role
|
||||
templates:
|
||||
- role.yaml
|
||||
tests:
|
||||
- it: Create a Role when upgrading
|
||||
release:
|
||||
isupgrade: true
|
||||
set:
|
||||
unitTestUpgrade: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: Role
|
||||
|
||||
- it: creates a Role
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: Role
|
||||
- matchSnapshot: {}
|
||||
|
||||
- it: sets Role labels when specified
|
||||
values:
|
||||
- ../.lint/extra-labels.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.app\.kubernetes\.io/name
|
||||
value: teleport-kube-agent
|
||||
- equal:
|
||||
path: metadata.labels.resource
|
||||
value: role
|
||||
- matchSnapshot: {}
|
||||
Reference in New Issue
Block a user