Skip to content

Commit 14f15f6

Browse files
committed
fix(controllers): wip
1 parent ed85a40 commit 14f15f6

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

tests/kafkaconnector_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ func TestKafkaConnector(t *testing.T) {
4646
"doc[2].spec.connInfoSecretTarget.name": osSecretName,
4747

4848
// Kafka Connector
49-
"doc[3].metadata.name": connectorName,
50-
"doc[3].spec.project": cfg.Project,
51-
"doc[3].spec.serviceName": kafkaName,
52-
"doc[3].spec.userConfig.topics": topicName,
53-
"doc[3].spec.userConfig.connection.url": `{{ fromSecret "` + osSecretName + `" "OPENSEARCH_URI" }}`,
49+
"doc[3].metadata.name": connectorName,
50+
"doc[3].spec.project": cfg.Project,
51+
"doc[3].spec.serviceName": kafkaName,
52+
"doc[3].spec.userConfig.topics": topicName,
53+
"doc[3].spec.userConfig.'connection.url'": `{{ fromSecret "` + osSecretName + `" "OPENSEARCH_URI" }}`,
5454
})
5555
require.NoError(t, err)
5656
s := NewSession(ctx, k8sClient)

tests/suite_lib_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ data:
103103
},
104104
expected: []string{"new-nested-value"},
105105
},
106+
{
107+
name: "should_update_key_with_dot",
108+
yamlContent: `
109+
data:
110+
config:
111+
connection.url: old-url`,
112+
replacements: map[string]string{
113+
"data.config.'connection.url'": "new-url",
114+
},
115+
expected: []string{"new-url"},
116+
},
106117
},
107118
"removal_operations": {
108119
{

0 commit comments

Comments
 (0)