diff --git a/templates/140_apt-keys.yaml.tt2 b/templates/140_apt-keys.yaml.tt2 new file mode 100644 index 0000000..ad95056 --- /dev/null +++ b/templates/140_apt-keys.yaml.tt2 @@ -0,0 +1,13 @@ +command: + apt-key list 2>&1 | grep -q expired: + exit-status: 1 + stdout: [] + stderr: [] + timeout: 10000 + + apt-key list --with-colons | grep '^pub' | cut -d':' -f 5 | egrep -o '.{8}$': + exit-status: 0 + stdout: + - "!A42C4F2A" + stderr: [] + timeout: 10000 diff --git a/templates/goss.yaml.tt2 b/templates/goss.yaml.tt2 index 6ef0ce4..1a14eff 100644 --- a/templates/goss.yaml.tt2 +++ b/templates/goss.yaml.tt2 @@ -9,6 +9,7 @@ gossfile: 132_filesys-ngcp-templates.yaml: {} 133_filesys-deprecated.yaml: {} 134_filesys-voisniff.yaml: {} + 140_apt-keys.yaml: {} 200_user-debian.yaml: {} 210_user-ngcp.yaml: {} 310_package-ngcp.yaml: {}