Skip to content

Commit c9c073d

Browse files
committed
STAC-24007: Fix tests
1 parent 0bc2a57 commit c9c073d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/graph/graph_retention.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func RetentionCommand(deps *di.Deps) *cobra.Command {
2828
Use: "retention",
2929
Short: "Manage the SUSE Observability Graph data retention (DEPRECATED !! FUNCTIONALITY IS REMOVED IN LATEST VERSION OF PLATFORM)",
3030
Long: `View and configure how long the SUSE Observability data graph retains data.
31-
More info can ben found at https://documentation.suse.com/cloudnative/suse-observability/latest/en/setup/data-management/data_retention.html`,
31+
More info can ben found at https://documentation.suse.com/cloudnative/suse-observability/latest/en/setup/data-management/data_retention.html.`,
3232
RunE: deps.CmdRunEWithAdminApi(RunRetentionCommand(args)),
3333
}
3434

cmd/health/health_clear_error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func HealthClearErrorCommand(cli *di.Deps) *cobra.Command {
2020
Short: "Clear errors from a health synchronization stream",
2121
Long: `Clear errors from a health synchronization stream, allowing it to resume normal operation. Use this after resolving the underlying cause of synchronization errors.
2222
23-
More info: https://l.stackstate.com/cli-health-synchronization`,
23+
More info: https://l.stackstate.com/cli-health-synchronization.`,
2424
Example: `# clear errors from a health stream
2525
sts health clear-error --urn urn:health:my-stream`,
2626
RunE: cli.CmdRunEWithApi(RunHealthClearErrorCommand(args)),

cmd/sts_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestSTSCommand(t *testing.T) {
1414
assert.Equal(t, "sts", cmd.Use)
1515
assert.Equal(t, "SUSE Observability: topology-powered observability", cmd.Short)
1616
assert.Equal(t, "SUSE Observability: topology-powered observability.", cmd.Long)
17-
assert.Contains(t, cmd.UsageTemplate(), "For more information about this CLI visit https://l.stackstate.com/cli")
17+
assert.Contains(t, cmd.UsageTemplate(), "For more information about this CLI visit https://documentation.suse.com/cloudnative/suse-observability/latest/en/setup/cli/cli-sts.html\n")
1818
}
1919

2020
func TestSTSCommandContainsExpectedSubcommands(t *testing.T) {
@@ -65,7 +65,7 @@ func TestSTSCommandUsageTemplate(t *testing.T) {
6565
cmd := STSCommand(&cli.Deps)
6666

6767
usageTemplate := cmd.UsageTemplate()
68-
assert.Contains(t, usageTemplate, "For more information about this CLI visit https://l.stackstate.com/cli")
68+
assert.Contains(t, usageTemplate, "For more information about this CLI visit https://documentation.suse.com/cloudnative/suse-observability/latest/en/setup/cli/cli-sts.html\n")
6969

7070
// Verify it contains the standard usage template plus our addition
7171
assert.Contains(t, usageTemplate, "Usage:")

0 commit comments

Comments
 (0)