Select Git revision
service_account_test.yaml
service_account_test.yaml 959 B
suite: service account test
release:
name: xta-test-server
namespace: helm-test
templates:
- templates/service_account.yaml
tests:
- it: should create service account with default name
set:
serviceAccount:
create: true
asserts:
- isKind:
of: ServiceAccount
- isAPIVersion:
of: v1
- equal:
path: metadata.name
value: xta-test-server-service-account
- equal:
path: metadata.namespace
value: helm-test
- it: should create service account with name
set:
serviceAccount:
create: true
name: helm-service-account
asserts:
- isKind:
of: ServiceAccount
- equal:
path: metadata.name
value: helm-service-account
- equal:
path: metadata.namespace
value: helm-test
- it: should not create service account
asserts:
- hasDocuments:
count: 0