-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathcontainer-structure-test.yaml
43 lines (39 loc) · 1.07 KB
/
container-structure-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
schemaVersion: "2.0.0"
fileExistenceTests:
- name: 'terraform'
path: '/bin/terraform'
shouldExist: true
permissions: '-rwxr-xr-x'
- name: 'azure-cli'
path: '/usr/bin/az'
shouldExist: true
permissions: '-rwxr-xr-x'
- name: 'kubectl'
path: '/usr/local/bin/kubectl'
shouldExist: true
permissions: '-rwxr-xr-x'
commandTests:
- name: "terraform version"
command: "terraform"
args: ["--version"]
expectedOutput: ["Terraform v1.9.6"]
- name: "python version"
command: "python3"
args: ["--version"]
expectedOutput: ["Python 3.*"]
- name: "az-cli version"
command: "bash"
args:
- -c
- |
az version -o tsv
expectedOutput: ["2.64.0\t2.64.0\t1.1.0"]
- name: "kubectl version"
command: "kubectl"
args: ["version", "--client"]
expectedOutput: ["Client Version: v1.30.6"]
metadataTest:
workdir: "/viya4-iac-azure"
entrypoint: ["/viya4-iac-azure/docker-entrypoint.sh"]