Add teleport agent update
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
suite: AdminClusterRoleBinding
|
||||
templates:
|
||||
- admin_clusterrolebinding.yaml
|
||||
tests:
|
||||
- it: don't generate a admin cluster role binding when adminClusterRoleBinding.create is false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
- it: generate a admin cluster role binding when adminClusterRoleBinding.create is true
|
||||
set:
|
||||
adminClusterRoleBinding:
|
||||
create: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
path: subjects[0].name
|
||||
value: cluster-admin
|
||||
- matchSnapshot: {}
|
||||
- it: generate a admin cluster role binding when adminClusterRoleBinding.create is true and adminClusterRoleBinding.name is set
|
||||
set:
|
||||
adminClusterRoleBinding:
|
||||
create: true
|
||||
name: my-cluster-admin
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: ClusterRoleBinding
|
||||
- equal:
|
||||
path: subjects[0].name
|
||||
value: my-cluster-admin
|
||||
- matchSnapshot: {}
|
||||
Reference in New Issue
Block a user