Skip to content

Commit

Permalink
chore: small changes to view command
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 committed Dec 18, 2022
1 parent 00d2786 commit 33c58f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/target/kubernetes/create/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestAuthType_UsernamePassword(t *testing.T) {
checkRemainingPrompts()

assert.Equal(t, testAccountNames[0], opts.Account.Value)
assertK8sStandaredDetials(t, flags)
assertK8sStandaredDetails(t, flags)
}

func TestAuthType_Token(t *testing.T) {
Expand All @@ -73,7 +73,7 @@ func TestAuthType_Token(t *testing.T) {

checkRemainingPrompts()
assert.Equal(t, testAccountNames[0], opts.Account.Value)
assertK8sStandaredDetials(t, flags)
assertK8sStandaredDetails(t, flags)
}

func TestAuthType_Azure(t *testing.T) {
Expand Down Expand Up @@ -174,7 +174,7 @@ func TestAuthType_AWS(t *testing.T) {
assert.Equal(t, 3600, opts.AssumedRoleSessionDuration.Value)
assert.Equal(t, "extern id", opts.AssumedRoleExternalID.Value)
assert.Equal(t, "eks cluster", opts.EKSClusterName.Value)
assertK8sStandaredDetials(t, flags)
assertK8sStandaredDetails(t, flags)
}

func getAccount() ([]accounts.IAccount, error) {
Expand All @@ -200,7 +200,7 @@ func getK8sStandaredDetailsPA() []*testutil.PA {
}
}

func assertK8sStandaredDetials(t *testing.T, flags *k8s.CreateFlags) {
func assertK8sStandaredDetails(t *testing.T, flags *k8s.CreateFlags) {
assert.Equal(t, "https://octopus.com", flags.KubernetesClusterURL.Value)
assert.Equal(t, testCertNames[1], flags.Certificate.Value)
assert.Equal(t, false, flags.SkipTLSVerification.Value)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/target/kubernetes/view/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func contributeEndpoint(_ *shared.ViewOptions, targetEndpoint machines.IEndpoint
data := []*output.DataRow{}
endpoint := targetEndpoint.(*machines.KubernetesEndpoint)

data = append(data, output.NewDataRow("Kubernetes Cluster URL", endpoint.ClusterURL.String()))
data = append(data, output.NewDataRow("Authentication Type", endpoint.Authentication.GetAuthenticationType()))

return data, nil
}

0 comments on commit 33c58f6

Please sign in to comment.