Skip to content

Commit

Permalink
[OSSM-6090] Fix ROSA specific values for TestOpenShiftMonitoring test…
Browse files Browse the repository at this point in the history
… case (#670)
  • Loading branch information
mkralik3 authored Mar 12, 2024
1 parent 1d39f19 commit 03346ab
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ import (
// See the comment on TestOpenShiftMonitoring for help setting up on crc
func TestFederatedOpenShiftMonitoring(t *testing.T) {
test.NewTest(t).Id("federated-openshift-monitoring-integration").Groups(test.Full, test.ARM).Run(func(t test.TestHelper) {
meshValues := map[string]string{
meshValues := map[string]interface{}{
"Name": smcpName,
"Version": env.GetSMCPVersion().String(),
"Member": ns.Foo,
"Rosa": env.IsRosa(),
}

t.Cleanup(func() {
Expand Down
3 changes: 2 additions & 1 deletion pkg/tests/tasks/observability/openshift_monitoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ func TestOpenShiftMonitoring(t *testing.T) {
if smcpVer.LessThan(version.SMCP_2_4) {
t.Skip("integration with OpenShift Monitoring stack is not supported in OSSM older than v2.4.0")
}
meshValues := map[string]string{
meshValues := map[string]interface{}{
"Name": smcpName,
"Version": smcpVer.String(),
"Member": ns.Foo,
"manageNetworkPolicy": "false",
"Rosa": env.IsRosa(),
}
kialiValues := map[string]string{
"SmcpName": smcpName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ spec:
security:
dataPlane:
mtls: true
{{ if .Rosa }}
identity:
type: ThirdParty
{{ end }}
tracing:
type: None
version: {{ .Version }}
Expand Down
4 changes: 4 additions & 0 deletions pkg/tests/tasks/observability/yaml/mesh.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
dataPlane:
mtls: true
manageNetworkPolicy: {{ .manageNetworkPolicy }}
{{ if .Rosa }}
identity:
type: ThirdParty
{{ end }}
tracing:
type: None
version: {{ .Version }}
Expand Down

0 comments on commit 03346ab

Please sign in to comment.