-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.yaml
133 lines (110 loc) · 3.05 KB
/
config.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
schemaVersion: "2.0.0"
metadataTest:
workdir: "/home/devops"
entrypoint: ["uid_entrypoint"]
commandTests:
- name: "current user"
command: "whoami"
expectedOutput: ["devops"]
- name: "IBM Cloud CLI installation"
command: "ibmcloud"
args: ["--help"]
expectedOutput: ["NAME:\n.*ibmcloud.*"]
- name: "IBM Cloud container-service plugin"
command: "ibmcloud"
args: ["plugin", "list"]
expectedOutput: [".*container-service/kubernetes-service.*"]
- name: "IBM Cloud container-registry plugin"
command: "ibmcloud"
args: ["plugin", "list"]
expectedOutput: [".*container-registry.*"]
- name: "Kubectl CLI installation"
command: "kubectl"
args: ["--help"]
expectedOutput: ["kubectl.*"]
- name: "Helm CLI installation"
command: "helm"
args: ["--help"]
expectedOutput: ["The Kubernetes package manager.*"]
- name: "Kustomize CLI installation"
command: "kustomize"
args: ["--help"]
expectedOutput: [".*Usage:\n kustomize.*"]
- name: "Git installation"
command: "git"
args: ["--help"]
expectedOutput: ["usage: git.*"]
- name: "OpenShift client installation"
command: "oc"
args: ["--help"]
expectedOutput: [".*OpenShift.*"]
- name: "Blue Horizon"
command: "hzn"
args: ["--help"]
expectedOutput: [".*hzn.*"]
- name: "Podman installation"
command: "podman"
args: ["--help"]
expectedOutput: [".*podman.*"]
- name: "Buildah installation"
command: "buildah"
args: ["--help"]
expectedOutput: [".*buildah.*"]
- name: "jq installation"
command: "jq"
args: ["--help"]
expectedOutput: [".*jq.*"]
- name: "yq installation"
command: "yq"
args: ["--help"]
expectedOutput: [".*yq.*"]
# - name: "nvm installation"
# setup: [["/bin/bash", "--init-file", "/home/devops/.bashrc-ni"]]
# command: "nvm"
# args: ["--help"]
# expectedOutput: [".*Node Version Manager.*"]
# - name: "node installation"
# command: "node"
# args: ["--help"]
# expectedOutput: ["v\\d\\d[.]\\d\\d[.]\\d\n"]
# - name: "yo installation"
# command: "yo"
# args: ["--help"]
# expectedOutput: ["\\d[.]\\d[.]\\d\n"]
fileExistenceTests:
- name: '.bluemix'
path: '/home/devops/.bluemix'
shouldExist: true
permissions: 'drwxrwx---'
uid: 1000
gid: 0
- name: "uid_entrypoint"
path: "/usr/local/bin/uid_entrypoint"
shouldExist: true
isExecutableBy: 'any'
- name: "passwd"
path: "/etc/passwd"
shouldExist: true
permissions: '-rw-rw-r--'
- name: "devops"
path: "/home/devops"
uid: 1000
# - name: "terraform-provider-kubernetes.*"
# path: "/home/devops/.terraform.d/plugins"
# shouldExist: true
#
# - name: "terraform-provider-ibm.*"
# path: "/home/devops/.terraform.d/plugins"
# shouldExist: true
#
# - name: 'cluster-pull-secret-apply.sh'
# path: '/usr/local/bin'
# shouldExist: true
#
# - name: 'setup-namespace-pull-secrets.sh'
# path: '/usr/local/bin'
# shouldExist: true
#
# - name: 'checkPodRunning.sh'
# path: '/usr/local/bin'
# shouldExist: true