@@ -71,18 +71,6 @@ func TestRunConfigProperties(t *testing.T) {
7171 g .Eventually (IntegrationLogs (t , ctx , ns , "property-route" ), TestTimeoutShort ).Should (ContainSubstring ("my-configmap-property-value" ))
7272 })
7373
74- t .Run ("Property from ConfigMap as property file" , func (t * testing.T ) {
75- var cmData = make (map [string ]string )
76- cmData ["my.properties" ] = "my.message=my-configmap-property-entry"
77- err := CreatePlainTextConfigmap (t , ctx , ns , "my-cm-test-properties" , cmData )
78- g .Expect (err ).To (BeNil ())
79-
80- g .Expect (KamelRun (t , ctx , ns , "./files/property-route.yaml" , "-p" , "configmap:my-cm-test-properties" ).Execute ()).To (Succeed ())
81- g .Eventually (IntegrationPodPhase (t , ctx , ns , "property-route" ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
82- g .Eventually (IntegrationConditionStatus (t , ctx , ns , "property-route" , v1 .IntegrationConditionReady ), TestTimeoutShort ).Should (Equal (corev1 .ConditionTrue ))
83- g .Eventually (IntegrationLogs (t , ctx , ns , "property-route" ), TestTimeoutShort ).Should (ContainSubstring ("my-configmap-property-entry" ))
84- })
85-
8674 t .Run ("Property from Secret" , func (t * testing.T ) {
8775 var secData = make (map [string ]string )
8876 secData ["my.message" ] = "my-secret-property-value"
@@ -95,18 +83,6 @@ func TestRunConfigProperties(t *testing.T) {
9583 g .Eventually (IntegrationLogs (t , ctx , ns , "property-route" ), TestTimeoutShort ).Should (ContainSubstring ("my-secret-property-value" ))
9684 })
9785
98- t .Run ("Property from Secret as property file" , func (t * testing.T ) {
99- var secData = make (map [string ]string )
100- secData ["my.properties" ] = "my.message=my-secret-property-entry"
101- err := CreatePlainTextSecret (t , ctx , ns , "my-sec-test-properties" , secData )
102- g .Expect (err ).To (BeNil ())
103-
104- g .Expect (KamelRun (t , ctx , ns , "./files/property-route.yaml" , "--name" , "property-route-secret" , "-p" , "secret:my-sec-test-properties" ).Execute ()).To (Succeed ())
105- g .Eventually (IntegrationPodPhase (t , ctx , ns , "property-route-secret" ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
106- g .Eventually (IntegrationConditionStatus (t , ctx , ns , "property-route-secret" , v1 .IntegrationConditionReady ), TestTimeoutShort ).Should (Equal (corev1 .ConditionTrue ))
107- g .Eventually (IntegrationLogs (t , ctx , ns , "property-route-secret" ), TestTimeoutShort ).Should (ContainSubstring ("my-secret-property-entry" ))
108- })
109-
11086 t .Run ("Property from Secret inlined" , func (t * testing.T ) {
11187 var secData = make (map [string ]string )
11288 secData ["my-message" ] = "my-secret-external-value"
@@ -172,19 +148,6 @@ func TestRunConfigConfigmaps(t *testing.T) {
172148 g .Eventually (IntegrationLogs (t , ctx , ns , "resource-configmap-key-location-route" ), TestTimeoutShort ).ShouldNot (ContainSubstring (cmDataMulti ["my-configmap-key" ]))
173149 g .Eventually (IntegrationLogs (t , ctx , ns , "resource-configmap-key-location-route" ), TestTimeoutShort ).Should (ContainSubstring (cmDataMulti ["my-configmap-key-2" ]))
174150 })
175-
176- t .Run ("Config configmap as property file" , func (t * testing.T ) {
177- // Store a configmap as property file
178- var cmDataProps = make (map [string ]string )
179- cmDataProps ["my.properties" ] = "my.key.1=hello\n my.key.2=world"
180- err = CreatePlainTextConfigmap (t , ctx , ns , "my-cm-properties" , cmDataProps )
181- g .Expect (err ).To (BeNil ())
182-
183- g .Expect (KamelRun (t , ctx , ns , "./files/config-configmap-properties-route.yaml" , "--config" , "configmap:my-cm-properties" ).Execute ()).To (Succeed ())
184- g .Eventually (IntegrationPodPhase (t , ctx , ns , "config-configmap-properties-route" ), TestTimeoutLong ).Should (Equal (corev1 .PodRunning ))
185- g .Eventually (IntegrationConditionStatus (t , ctx , ns , "config-configmap-properties-route" , v1 .IntegrationConditionReady ), TestTimeoutShort ).Should (Equal (corev1 .ConditionTrue ))
186- g .Eventually (IntegrationLogs (t , ctx , ns , "config-configmap-properties-route" ), TestTimeoutShort ).Should (ContainSubstring ("hello world" ))
187- })
188151 })
189152}
190153
0 commit comments