tests: ensure default user can connect to default target and ensure created target has intended host sets (#646)
This commit is contained in:
1 parent
20822e28f8
commit
7f48e2edc6
2 files changed
+31
No files matched your search
@@ -11,6 +11,12 @@ load _helpers
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "boundary/target/connect: default user can connect to default target" {
|
||||
run connect_nc $DEFAULT_TARGET
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "boundary/target: default user can create target" {
|
||||
run create_tcp_target $DEFAULT_P_ID 22 $TGT_NAME
|
||||
[ "$status" -eq 0 ]
|
||||
@@ -34,6 +40,13 @@ load _helpers
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "boundary/target: created target has default host set" {
|
||||
local id=$(target_id $DEFAULT_P_ID $TGT_NAME)
|
||||
run target_has_host_set_id $id $DEFAULT_HOST_SET
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "boundary/target/connect: default user can connect to created target" {
|
||||
local id=$(target_id $DEFAULT_P_ID $TGT_NAME)
|
||||
run connect_nc $id
|
||||
|
||||
Reference in new issue
Block a user