summaryrefslogtreecommitdiff
path: root/yarns/200-version.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-04 20:49:03 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-04 20:49:03 +0300
commitf065856c67dcd8e6c88cfa454fe2596c024284f4 (patch)
tree7482f885f2e23f89203a0ed89819ae608c2b7411 /yarns/200-version.yarn
parent6da3c5e6a2f6478ea3fecc723eadf2a4562a97d2 (diff)
downloadick2-f065856c67dcd8e6c88cfa454fe2596c024284f4.tar.gz
Add: /version to controller API
Diffstat (limited to 'yarns/200-version.yarn')
-rw-r--r--yarns/200-version.yarn35
1 files changed, 35 insertions, 0 deletions
diff --git a/yarns/200-version.yarn b/yarns/200-version.yarn
new file mode 100644
index 0000000..92cccbb
--- /dev/null
+++ b/yarns/200-version.yarn
@@ -0,0 +1,35 @@
+<!--
+
+Copyright 2017 Lars Wirzenius
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+
+# Check controller version
+
+The Ick controller reports is version upon request.
+
+ SCENARIO checking controller version
+ GIVEN an RSA key pair for token signing
+ AND an access token for scopes
+ ... uapi_version_get
+ AND controller config uses statedir at the state directory
+ AND a running ick controller
+
+ WHEN user makes request GET /version
+ THEN result has status code 200
+ AND body matches { "version": "0.2.1+git" }
+
+ FINALLY stop ick controller