File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ defaults
25
25
timeout http-keep-alive 10s
26
26
retries 3
27
27
28
- frontend test_site
28
+ frontend myfrontend
29
29
mode http
30
30
maxconn 2000
31
31
bind 127.0.0.1:9001
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ load '../../libs/version'
24
24
load ' utils/_helpers'
25
25
26
26
@test " sites: Delete a site" {
27
- resource_delete " $_SITE_BASE_PATH /test_site " " force_reload=true"
27
+ resource_delete " $_SITE_BASE_PATH /myfrontend " " force_reload=true"
28
28
assert_equal " $SC " 204
29
29
30
30
resource_get " $_SITE_BASE_PATH /site"
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ load 'utils/_helpers'
30
30
resource_get " $_SITE_BASE_PATH "
31
31
assert_equal " $SC " 200
32
32
33
- assert_equal " $( get_json_path " $BODY " " .data[0] .name" ) " " test_site "
34
- assert_equal " $( get_json_path " $BODY " " .data[1] .name" ) " " site"
33
+ assert_equal " $( get_json_path " $BODY " " .data[] | select( .name | contains( \" myfrontend \" ) ).name " ) " " myfrontend "
34
+ assert_equal " $( get_json_path " $BODY " " .data[] | select( .name | contains( \" site \" ) ).name " ) " " site"
35
35
}
You can’t perform that action at this time.
0 commit comments