-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2177 from infrahq/dnephin/cli-accept-cert
cli: prompt to accept the server TLS certificate for manual verification
- Loading branch information
Showing
11 changed files
with
410 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,8 @@ func TestListCmd(t *testing.T) { | |
assert.Check(t, srv.Run(ctx)) | ||
}() | ||
|
||
c := apiClient(srv.Addrs.HTTPS.String(), "0000000001.adminadminadminadmin1234", true) | ||
httpTransport := httpTransportForHostConfig(&ClientHostConfig{SkipTLSVerify: true}) | ||
c := apiClient(srv.Addrs.HTTPS.String(), "0000000001.adminadminadminadmin1234", httpTransport) | ||
|
||
_, err = c.CreateDestination(&api.CreateDestinationRequest{ | ||
UniqueID: "space", | ||
|
@@ -77,7 +78,7 @@ func TestListCmd(t *testing.T) { | |
t.Run("with no grants", func(t *testing.T) { | ||
user := userMap["[email protected]"] | ||
err := writeConfig(&ClientConfig{ | ||
Version: "0.3", | ||
Version: clientConfigVersion, | ||
Hosts: []ClientHostConfig{ | ||
{ | ||
PolymorphicID: uid.NewIdentityPolymorphicID(user.ID), | ||
|
@@ -103,7 +104,7 @@ func TestListCmd(t *testing.T) { | |
t.Run("with many grants", func(t *testing.T) { | ||
user := userMap["[email protected]"] | ||
err := writeConfig(&ClientConfig{ | ||
Version: "0.3", | ||
Version: clientConfigVersion, | ||
Hosts: []ClientHostConfig{ | ||
{ | ||
PolymorphicID: uid.NewIdentityPolymorphicID(user.ID), | ||
|
Oops, something went wrong.