Skip to content

Commit 1e0a010

Browse files
authored
fix(cockpit): correct Cockpit Grafana URL format (#3240)
* fix(cockpit): correct Cockpit Grafana URL format * delete unused cassette
1 parent a44782c commit 1e0a010

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/services/cockpit/cockpit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func checkGrafanaURL(resourceName, projectResource string) resource.TestCheckFun
146146
}
147147

148148
projectID := rs.Primary.ID
149-
expectedURL := fmt.Sprintf("https://%s.dashboards.obs.fr-par.scw.cloud", projectID)
149+
expectedURL := fmt.Sprintf("https://%s.dashboard.obs.fr-par.scw.cloud", projectID)
150150

151151
return resource.TestCheckResourceAttr(resourceName, "endpoints.0.grafana_url", expectedURL)(s)
152152
}

internal/services/cockpit/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var scopeMapping = map[string]cockpit.TokenScope{
2020
}
2121

2222
func createGrafanaURL(projectID string, region scw.Region) string {
23-
return fmt.Sprintf("https://%s.dashboards.obs.%s.scw.cloud", projectID, region)
23+
return fmt.Sprintf("https://%s.dashboard.obs.%s.scw.cloud", projectID, region)
2424
}
2525

2626
func flattenCockpitEndpoints(dataSources []*cockpit.DataSource, grafanaURL string, alertManagerURL string) []map[string]any {

0 commit comments

Comments
 (0)