summaryrefslogtreecommitdiff
path: root/units/location
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-08-20 16:38:55 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2019-08-21 11:04:44 +0100
commitc7a90b51f33888f3cb43e83597cb79ada9f96a34 (patch)
treed9c6bfe2f72f925dfb27581bfc5d60937e95ae21 /units/location
parent83a6a879f5fd80a053803f7d407603565f569350 (diff)
location: import from p-p-snappy
Diffstat (limited to 'units/location')
-rw-r--r--units/location/category.pxu3
-rw-r--r--units/location/jobs.pxu46
-rw-r--r--units/location/test-plan.pxu47
3 files changed, 96 insertions, 0 deletions
diff --git a/units/location/category.pxu b/units/location/category.pxu
new file mode 100644
index 0000000..7fe4424
--- /dev/null
+++ b/units/location/category.pxu
@@ -0,0 +1,3 @@
+unit: category
+id: location
+_name: Location Service
diff --git a/units/location/jobs.pxu b/units/location/jobs.pxu
new file mode 100644
index 0000000..2e854ab
--- /dev/null
+++ b/units/location/jobs.pxu
@@ -0,0 +1,46 @@
+id: location/status
+_summary: Queries the status of a service instance
+command: locationd.status
+category_id: location
+requires: snap.name == 'locationd'
+estimated_duration: 1
+flags: simple preserve-cwd also-after-suspend
+
+id: location/monitor
+_summary: Connects to a location service instance, monitoring its activity.
+command: timeout 15m bash -c 'grep -m 1 Update <( exec locationd.monitor ); kill $! 2> /dev/null'
+category_id: location
+requires: snap.name == 'locationd'
+estimated_duration: 900
+flags: simple preserve-cwd also-after-suspend
+
+id: location/status-manual
+_summary: Queries the status of a service instance
+_purpose:
+ Queries the status of a service instance
+_steps:
+ 1. Type the following command in a second terminal to run the location service status:
+ $ locationd.status
+_verification:
+ Did the command succeed?
+category_id: location
+flags: also-after-suspend
+requires: snap.name == 'locationd'
+estimated_duration: 1
+plugin: manual
+
+id: location/monitor-manual
+_summary: Connects to a location service instance, monitoring its activity.
+_purpose:
+ Connects to a location service instance, monitoring its activity.
+_steps:
+ 1. Type the following command in a second terminal to run the location service monitor:
+ $ timeout 15m bash -c 'grep -m 1 Update <( exec locationd.monitor ); kill $! 2> /dev/null'
+_verification:
+ Did the command succeed (it can take up to 15m from a cold start)?
+category_id: location
+flags: also-after-suspend
+requires: snap.name == 'locationd'
+estimated_duration: 900
+plugin: manual
+
diff --git a/units/location/test-plan.pxu b/units/location/test-plan.pxu
new file mode 100644
index 0000000..2b38435
--- /dev/null
+++ b/units/location/test-plan.pxu
@@ -0,0 +1,47 @@
+id: location-full
+unit: test plan
+_name: Location Service tests
+_description: QA location service tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ location-automated
+ location-manual
+
+id: location-automated
+unit: test plan
+_name: Automated location service tests
+_description: Automated location service tests for Snappy Ubuntu Core devices
+include:
+ location/status
+
+id: location-manual
+unit: test plan
+_name: Manual location service tests
+_description: Automated location service tests for Snappy Ubuntu Core devices
+include:
+ location/status-manual
+ location/monitor-manual
+
+id: after-suspend-location-full
+unit: test plan
+_name: Location Service tests (after suspend)
+_description: QA location service tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ after-suspend-location-automated
+ after-suspend-location-manual
+
+id: after-suspend-location-automated
+unit: test plan
+_name: Automated location service tests (after suspend)
+_description: Automated location service tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-location/status
+
+id: after-suspend-location-manual
+unit: test plan
+_name: Manual location service tests (after suspend)
+_description: Automated location service tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-location/status-manual
+ after-suspend-location/monitor-manual