Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • adjust-certificate
  • OZG-8085-ci-components-poc
  • release
  • KOP-2850-Dev-Deployment-und-Docker-compose-Tests
  • OZG-7121
  • OZG-6831-adjust-service-path
  • 1.10.0
  • 1.9.0
  • 1.8.1
  • 1.8.0
  • 1.7.0
  • 1.6.2
  • 1.6.1
  • 1.6.0
  • 1.4.1
16 results

service_account_test.yaml

Blame
  • 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