From 4eacf37efde6e0878454806021b8d92554519ae2 Mon Sep 17 00:00:00 2001 From: Denis Pynkin <denis.pynkin@collabora.com> Date: Wed, 27 Mar 2019 02:35:52 +0300 Subject: [PATCH] Add test for OSTree Collection ID availability Ensure the system is booted with properly configured Collection ID. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> --- test-cases/ostree-collection-id.yaml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 test-cases/ostree-collection-id.yaml diff --git a/test-cases/ostree-collection-id.yaml b/test-cases/ostree-collection-id.yaml new file mode 100644 index 0000000..ca0bb58 --- /dev/null +++ b/test-cases/ostree-collection-id.yaml @@ -0,0 +1,35 @@ +metadata: + name: ostree-collection-id + format: "Apertis Test Definition 1.0" + image-types: + minimal: [ armhf-internal, armhf, arm64, amd64 ] + target: [ armhf-internal, amd64 ] + image-deployment: + - OSTree + type: functional + exec-type: automated + priority: critical + maintainer: "Apertis Project" + description: "OSTree: Collection ID test + This test ensures that the system is booted with proper Collection ID." + + expected: + - "The automated test should succeed." + + notes: + - "The automated test uses internet" + +install: + git-repos: + - url: https://gitlab.apertis.org/tests/ostree-images.git + branch: apertis/v2019dev0 + +run: + steps: + - "# Enter test directory:" + - cd ostree-images + - "# Execute the following command:" + - common/run-test-in-systemd --timeout=900 --name=run-test env DEBUG=2 ./run-ostree-collection_id.sh + +parse: + pattern: ^(?P<test_case_id>[a-zA-Z0-9_\-\./]+):\s*(?P<result>pass|fail|skip|unknown)$ -- GitLab