summaryrefslogtreecommitdiff
path: root/yarns/200-version.yarn
blob: 710a57a2df42857117df5d750b4294b9ff370d05 (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
40
41
42
43
44
45
46
47
<!--

Copyright 2017-2018 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 user with scopes
    ... uapi_version_get
    AND controller config uses statedir at the state directory
    AND controller config uses https://blobs.example.com as artifact store
    AND controller config uses https://auth.example.com as authentication
    AND controller config uses https://notify.example.com as notify
    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
    AND artifact store URL is https://blobs.example.com
    AND authentication URL is https://auth.example.com
    AND notify URL is https://notify.example.com

    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.