Skip to content

Commit

Permalink
fix: Fix tests for Azure Prometheus Direct [PC-13028] (#504)
Browse files Browse the repository at this point in the history
Fix failing tests for Azure Prometheus
  • Loading branch information
dawidwisn authored Jul 30, 2024
1 parent cb65251 commit 22b7418
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/manifest/v1alpha/examples/direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var betaChannelDirects = []v1alpha.DataSourceType{
v1alpha.Honeycomb,
v1alpha.LogicMonitor,
v1alpha.GoogleCloudMonitoring,
v1alpha.AzurePrometheus,
}

func (d directExample) Generate() v1alphaDirect.Direct {
Expand Down
3 changes: 3 additions & 0 deletions tests/v1alpha_direct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func assertV1alphaDirectsAreEqual(t *testing.T, expected, actual v1alphaDirect.D
expected.Spec.SumoLogic.AccessKey = "[hidden]"
case v1alpha.ThousandEyes:
expected.Spec.ThousandEyes.OauthBearerToken = "[hidden]"
case v1alpha.AzurePrometheus:
expected.Spec.AzurePrometheus.ClientID = "[hidden]"
expected.Spec.AzurePrometheus.ClientSecret = "[hidden]"
default:
panic(fmt.Sprintf("unexpected v1alpha.DataSourceType: %#v", typ))
}
Expand Down

0 comments on commit 22b7418

Please sign in to comment.