test(bats): Add logging to flaky tests (#6456)
This commit is contained in:
1 parent
994e6fce85
commit
c18b6afbb4
3 files changed
+12
-5
No files matched your search
@@ -18,4 +18,4 @@ function connect_alias_with_host_id() {
|
||||
local hostid=$2
|
||||
# Note: When this command returns, the session immediately goes into a "canceling" state
|
||||
echo "foo" | boundary connect $alias -host-id $hostid -exec nc -- {{boundary.ip}} {{boundary.port}}
|
||||
}
|
||||
}
|
||||
@@ -11,12 +11,14 @@ load _helpers
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "$output"
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
# Run twice so we have two values for later testing
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "$output"
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@@ -26,12 +28,14 @@ load _helpers
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "$output"
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
# Run twice so we have two values for later testing
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "$output"
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ load _target_host_sources
|
||||
|
||||
@test "boundary/target/connect: unpriv user can connect to default target" {
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@@ -87,6 +89,7 @@ load _target_host_sources
|
||||
local id=$(target_id_from_name $DEFAULT_P_ID $TGT_NAME)
|
||||
run connect_nc $id
|
||||
echo "connecting to $id: $output"
|
||||
echo "status: $status"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user