Skip to content

Commit d77bbd0

Browse files
ispeakc0deHarness
authored andcommitted
chore:[CHAOS-9918]: Fix the baseURL of the chaostoolset (#218)
* 512686 chore:[CHAOS-9918]: Fix the chaostoolset baseURL inside the MCP server
1 parent b5d775c commit d77bbd0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/chaos.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99

1010
const (
1111
// Base API paths
12-
chaosListExperimentsPath = "api/rest/v2/experiment"
13-
chaosGetExperimentPath = "api/rest/v2/experiments/%s"
14-
chaosGetExperimentRunPath = "api/rest/v2/experiments/%s/run"
15-
chaosExperimentRunPath = "api/rest/v2/experiments/%s/run"
12+
chaosListExperimentsPath = "rest/v2/experiment"
13+
chaosGetExperimentPath = "rest/v2/experiments/%s"
14+
chaosGetExperimentRunPath = "rest/v2/experiments/%s/run"
15+
chaosExperimentRunPath = "rest/v2/experiments/%s/run"
1616
)
1717

1818
type ChaosService struct {

pkg/modules/chaos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (m *CHAOSModule) IsDefault() bool {
6767
// RegisterChaos registers the chaos toolset
6868
func RegisterChaos(config *config.Config, tsg *toolsets.ToolsetGroup) error {
6969
// Determine the base URL and secret for CHAOS
70-
baseURL := utils.BuildServiceURL(config, config.ChaosManagerSvcBaseURL, config.BaseURL, "chaos/manager")
70+
baseURL := utils.BuildServiceURL(config, config.ChaosManagerSvcBaseURL, config.BaseURL, "chaos/manager/api")
7171
secret := config.ChaosManagerSvcSecret
7272

7373
// Create base client for CHAOS

0 commit comments

Comments
 (0)