From f065856c67dcd8e6c88cfa454fe2596c024284f4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 4 Oct 2017 20:49:03 +0300 Subject: Add: /version to controller API --- yarns/200-version.yarn | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 yarns/200-version.yarn (limited to 'yarns/200-version.yarn') 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 @@ + + +# 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 -- cgit v1.2.1