Skip to content

Commit f9a2ed4

Browse files
committed
TEST/MEDIUM: crt_list: move crt list tests to proper url
1 parent 527657b commit f9a2ed4

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.aspell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ allowed:
4141
- dns
4242
- newcert
4343
- uid
44+
- url

e2e/tests/crt_store/crt_store.bats

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,36 @@ load 'utils/_helpers'
5050
assert_equal "$SC" "200"
5151
assert_equal "$_STORE_NAME" "$(get_json_path "$BODY" .[0].name)"
5252

53-
resource_post "$_CRT_LOAD_PATH" "data/post_entry1.json" "crt_store=$_STORE_NAME"
53+
resource_post "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads" "data/post_entry1.json"
5454
assert_equal "$SC" "202"
55-
resource_post "$_CRT_LOAD_PATH" "data/post_entry2.json" "crt_store=$_STORE_NAME"
55+
resource_post "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads" "data/post_entry2.json"
5656
assert_equal "$SC" "202"
5757

58-
resource_get "$_CRT_LOAD_PATH/c1.pem" "crt_store=$_STORE_NAME"
58+
resource_get "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c1.pem"
5959
assert_equal "$SC" "200"
6060
assert_equal "c1.pem" "$(get_json_path "$BODY" .certificate)"
6161
assert_equal "k1.pem" "$(get_json_path "$BODY" .key)"
6262
assert_equal "disabled" "$(get_json_path "$BODY" .ocsp_update)"
6363

64-
resource_get "$_CRT_LOAD_PATH" "crt_store=$_STORE_NAME"
64+
resource_get "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads"
6565
assert_equal "$SC" "200"
6666
assert_equal "2" "$(get_json_path "$BODY" '.|length')"
6767
assert_equal "c1.pem" "$(get_json_path "$BODY" .[0].certificate)"
6868
assert_equal "c2.pem" "$(get_json_path "$BODY" .[1].certificate)"
6969

70-
resource_put "$_CRT_LOAD_PATH/c2.pem" "data/put_entry.json" \
70+
resource_put "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c2.pem" "data/put_entry.json" \
7171
"crt_store=$_STORE_NAME" "force_reload=true"
7272
assert_equal "$SC" "202"
73-
resource_get "$_CRT_LOAD_PATH/c2.pem" "crt_store=$_STORE_NAME"
73+
resource_get "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c2.pem"
7474
assert_equal "c2.pem" "$(get_json_path "$BODY" .certificate)"
7575
assert_equal "disabled" "$(get_json_path "$BODY" .ocsp_update)"
7676
assert_equal "example.com" "$(get_json_path "$BODY" .alias)"
7777

78-
resource_delete "$_CRT_LOAD_PATH/c1.pem" "crt_store=$_STORE_NAME" "force_reload=true"
79-
assert_equal "$SC" "202"
80-
resource_delete "$_CRT_LOAD_PATH/c2.pem" "crt_store=$_STORE_NAME" "force_reload=true"
81-
assert_equal "$SC" "202"
82-
resource_get "$_CRT_LOAD_PATH/c2.pem" "crt_store=$_STORE_NAME"
78+
resource_delete "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c1.pem" "force_reload=true"
79+
assert_equal "$SC" "204"
80+
resource_delete "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c2.pem" "force_reload=true"
81+
assert_equal "$SC" "204"
82+
resource_get "$_CRT_STORE_PATH/$_STORE_NAME/crt_loads/c2.pem"
8383
assert_equal "$SC" "404"
8484

8585
resource_delete "$_CRT_STORE_PATH/$_STORE_NAME" "force_reload=true"

e2e/tests/crt_store/utils/_helpers.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@
1717

1818
_STORE_NAME="test_store1"
1919
_CRT_STORE_PATH="/services/haproxy/configuration/crt_stores"
20-
_CRT_LOAD_PATH="/services/haproxy/configuration/crt_loads"

0 commit comments

Comments
 (0)