File tree 3 files changed +7
-5
lines changed
e2e/tests/server_templates
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
variables :
6
6
DOCKER_HOST : tcp://docker:2375
7
7
DOCKER_BASE_IMAGE : $CI_REGISTRY_GO/haproxy-alpine
8
+ BATS_VERSION : v1.4.1
8
9
9
10
golangci-lint :
10
11
stage : lint
65
66
tags :
66
67
- go
67
68
before_script :
68
- - apk add git bash curl jq bats
69
+ - apk add git bash curl jq git
70
+ - git clone https://github.com/bats-core/bats-core.git && cd bats-core && git checkout $BATS_VERSION && ./install.sh /usr/local && cd ..
69
71
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY_GO
70
72
script :
71
73
- bash -x ./e2e/run.bash
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ load '../../libs/version'
23
23
24
24
load ' utils/_helpers'
25
25
26
- @test " server_templates: Add a new server template" {
26
+ @test " server_templates: Add a new server template 1 " {
27
27
resource_post " $_SERVER_TEMPLATE_BASE_PATH " " data/first/post.json" " backend=test_backend&force_reload=true"
28
28
assert_equal " $SC " 201
29
29
@@ -36,7 +36,7 @@ load 'utils/_helpers'
36
36
assert_equal " 443" " $( get_json_path " $BODY " ' .data.port' ) "
37
37
}
38
38
39
- @test " server_templates: Add a new server template" {
39
+ @test " server_templates: Add a new server template 2 " {
40
40
resource_post " $_SERVER_TEMPLATE_BASE_PATH " " data/second/post.json" " backend=test_backend&force_reload=true"
41
41
assert_equal " $SC " 201
42
42
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ load '../../libs/version'
23
23
24
24
load ' utils/_helpers'
25
25
26
- @test " server_templates: Delete a server template" {
26
+ @test " server_templates: Delete a server template 1 " {
27
27
resource_delete " $_SERVER_TEMPLATE_BASE_PATH /srv_google" " backend=test_backend&force_reload=true"
28
28
assert_equal " $SC " 204
29
29
}
30
30
31
- @test " server_templates: Delete a server template" {
31
+ @test " server_templates: Delete a server template 2 " {
32
32
resource_delete " $_SERVER_TEMPLATE_BASE_PATH /srv_bing" " backend=test_backend&force_reload=true"
33
33
assert_equal " $SC " 204
34
34
}
You can’t perform that action at this time.
0 commit comments