File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments