Skip to content

Commit

Permalink
chore: add test case (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Jan 22, 2024
1 parent ff7bf73 commit 54461da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,16 @@ func TestNewCommandArguments(t *testing.T) {
}},
}),
},
{
desc: "using the private-ip flag with query param override",
args: []string{"--private-ip", "proj:region:inst?private-ip=false"},
want: withDefaults(&proxy.Config{
PrivateIP: true,
Instances: []proxy.InstanceConnConfig{{
PrivateIP: pointer(false),
}},
}),
},
{
desc: "using the psc flag",
args: []string{"--psc", "proj:region:inst"},
Expand Down

0 comments on commit 54461da

Please sign in to comment.