Skip to content

Commit

Permalink
fix: properly validate if a relay creation was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-baldo committed Oct 24, 2024
1 parent cf1c739 commit 01da78f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ teardown() {

# The green identity can't create relay as it isn't a member
relay_name=$(random_str)
run_failure "$OCKAM" relay create "$relay_name"
run_success "$OCKAM" relay create "$relay_name" --jq ".connection_status"
assert_output "\"Down\""

run_success "$OCKAM" relay delete "$relay_name" --yes

# Add the green identity as a member
export OCKAM_HOME=$ENROLLED_OCKAM_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ teardown() {
# Blue can take its relay
run_success "$OCKAM" relay create $relay_name_blue --to /node/blue
# Green can't take blue's relay
run_failure "$OCKAM" relay create $relay_name_blue --to /node/green
run_success "$OCKAM" relay create $relay_name_blue --to /node/green --jq ".connection_status"
assert_output "\"Down\""
# But can take its the one it was assigned to in the ticket
run_success "$OCKAM" relay create $relay_name_green --to /node/green

Expand Down

0 comments on commit 01da78f

Please sign in to comment.