diff --git a/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable.go b/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable.go index 8fd6d352..f54e4ba2 100644 --- a/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable.go +++ b/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable.go @@ -11,7 +11,7 @@ import ( ) const ( - docsPrefix = "https://kubescape.io/docs/" + docsPrefix = "https://kubescape.io/docs" scanControlPrefix = "$ kubescape scan control" controlNameHeader = "Control name" statusHeader = "" diff --git a/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable_test.go b/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable_test.go index ba5e44f2..6c30b78c 100644 --- a/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable_test.go +++ b/core/pkg/resultshandling/printer/v2/prettyprinter/tableprinter/configurationprinter/categorytable_test.go @@ -142,7 +142,7 @@ func TestGenerateCategoryStatusRow(t *testing.T) { Status: apis.StatusFailed, ControlID: "ctrlID", }, - expectedRows: []string{"❌", "test", "https://hub.armosec.io/docs/ctrlid"}, + expectedRows: []string{"❌", "test", "https://kubescape.io/docs/ctrlid"}, }, { name: "skipped control", @@ -154,7 +154,7 @@ func TestGenerateCategoryStatusRow(t *testing.T) { }, ControlID: "ctrlID", }, - expectedRows: []string{"⚠️", "test", "https://hub.armosec.io/docs/ctrlid"}, + expectedRows: []string{"⚠️", "test", "https://kubescape.io/docs/ctrlid"}, infoToPrintInfo: []utils.InfoStars{ { Info: "testInfo", @@ -169,7 +169,7 @@ func TestGenerateCategoryStatusRow(t *testing.T) { Status: apis.StatusPassed, ControlID: "ctrlID", }, - expectedRows: []string{"✅", "test", "https://hub.armosec.io/docs/ctrlid"}, + expectedRows: []string{"✅", "test", "https://kubescape.io/docs/ctrlid"}, }, { name: "big name", @@ -178,14 +178,14 @@ func TestGenerateCategoryStatusRow(t *testing.T) { Status: apis.StatusFailed, ControlID: "ctrlID", }, - expectedRows: []string{"❌", "testtesttesttesttesttesttesttesttesttesttesttestte...", "https://hub.armosec.io/docs/ctrlid"}, + expectedRows: []string{"❌", "testtesttesttesttesttesttesttesttesttesttesttestte...", "https://kubescape.io/docs/ctrlid"}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { row := generateCategoryStatusRow(tt.controlSummary, tt.infoToPrintInfo) - assert.True(t, reflect.DeepEqual(row, tt.expectedRows)) + assert.Equal(t, tt.expectedRows, row) }) } }