Skip to content

Commit

Permalink
test: add test for new .properties.type
Browse files Browse the repository at this point in the history
  • Loading branch information
avirtopeanu-ionos committed May 16, 2024
1 parent 6af9ffe commit c1ecbae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/bats/cloudapi/volume.bats
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,12 @@ setup_file() {
-w -t 400 -o json 2> /dev/null
assert_success
echo "$output" | jq -r '.id' > /tmp/bats_test/cube_server_id
assert_equal "$(echo "$output" | jq -r '.properties.type')" "CUBE"

run ionosctl server get --datacenter-id "$(cat /tmp/bats_test/datacenter_id)" \
--server-id "$(cat /tmp_bats_test/cube_server_id)" --no-headers --cols Type
assert_success
assert_output -p "CUBE"
}

@test "Delete CUBE" {
Expand Down

0 comments on commit c1ecbae

Please sign in to comment.