diff options
Diffstat (limited to 'yarns/200-version.yarn')
-rw-r--r-- | yarns/200-version.yarn | 35 |
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 |