summaryrefslogtreecommitdiff
path: root/yarns/200-version.yarn
blob: 7fceef21463cdd25d12d6346a53ad4eb6a3276d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!--

Copyright 2017-2019 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 access token for user with scopes
    ... uapi_version_get
    AND a running ick controller

    WHEN user makes request GET /version
    THEN result has status code 200
    AND version in body matches version from setup.py

    FINALLY stop ick controller

Note that this test suite is expected to be run from the Ick2 source
tree. The source carries a vsrsion, and the above test scenario will
fail if run against a remote controller instance with an incompatible
version number. The version numbers must either match exactly, or the
remote version number must be a prefix of the source tree's version.