summaryrefslogtreecommitdiff
path: root/units/self
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-08-20 17:11:46 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2019-08-21 11:04:44 +0100
commit20ea581fa697673cdca016ca356082ff03b08e5c (patch)
tree6490a6b815bf01299268206f8fd48cd53535a334 /units/self
parenta2da344887cc15dd09998547ada634b22a2b474c (diff)
self: import from p-p-snappy
Diffstat (limited to 'units/self')
-rw-r--r--units/self/jobs.pxu12
-rw-r--r--units/self/test-plan.pxu26
2 files changed, 38 insertions, 0 deletions
diff --git a/units/self/jobs.pxu b/units/self/jobs.pxu
new file mode 100644
index 0000000..f085a59
--- /dev/null
+++ b/units/self/jobs.pxu
@@ -0,0 +1,12 @@
+
+unit: template
+template-engine: jinja2
+template-resource: interface
+template-filter: interface.interface == 'content' and interface.type == 'plug' and interface.snap == '{{ __system_env__["SNAP_NAME"] }}'
+id: self/content-plug-connected-{{ name }}
+_summary: Ensure the content interface plug {{ name }} is connected
+plugin: shell
+command:
+ plug_connected_test.py {{ snap }} {{ name }}
+estimated_duration: 1.0
+
diff --git a/units/self/test-plan.pxu b/units/self/test-plan.pxu
new file mode 100644
index 0000000..bfb3220
--- /dev/null
+++ b/units/self/test-plan.pxu
@@ -0,0 +1,26 @@
+
+id: self-full
+unit: test plan
+_name: Self tests
+_description: Tests to make sure the checkbox snap is setup correctly
+include:
+nested_part:
+ self-manual
+ self-automated
+
+
+id: self-manual
+unit: test plan
+_name: Manual self tests
+_description: Manual tests to make sure the checkbox snap is setup correctly
+include:
+
+
+id: self-automated
+unit: test plan
+_name: Automated self tests
+_description: Automated tests to make sure the checkbox snap is setup correctly
+include:
+ self/content-plug-connected-.*
+bootstrap_include:
+ interface