-
Notifications
You must be signed in to change notification settings - Fork 37
/
test_linux_amd64.yaml
32 lines (31 loc) · 1.23 KB
/
test_linux_amd64.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
schemaVersion: "2.0.0"
commandTests:
- name: "echo hello"
command: "/bin/bash"
args: ["-c", "echo hello world!"]
expectedOutput: ["hello world!"]
- name: "apt list --installed"
command: "apt"
args: ["list", "--installed"]
expectedOutput:
- Listing\.\.\.
- apt/now 2\.2\.4 amd64 \[installed,local\]
- bash/now 5\.1-2\+deb11u1 amd64 \[installed,local\]
- coreutils/now 8\.32-4\+b1 amd64 \[installed,local\]
- dpkg/now 1\.20\.13 amd64 \[installed,local\]
- libncurses6/now 6\.2\+20201114-2\+deb11u2 amd64 \[installed,local\]
- ncurses-base/now 6\.2\+20201114-2\+deb11u2 all \[installed,local\]
- perl/now 5\.32\.1-4\+deb11u3 amd64 \[installed,local\]
- tzdata/now 2024a-0\+deb11u1 all \[installed,local\]
- nvidia-kernel-common/now 20151021\+13 amd64 \[installed,local\]
- name: "whoami"
command: "whoami"
expectedOutput: [r00t]
- name: "naive ca-certs check"
command: "head"
args: ["-1", "/etc/ssl/certs/ca-certificates.crt"]
expectedOutput: [-----BEGIN CERTIFICATE-----]
- name: "in depth ca-certs check"
command: "/usr/bin/openssl"
args: ["s_client", "-connect", "www.google.com:443"]
expectedOutput: ["Verify return code: 0 .ok."]