Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit 37ab2ff

Browse files
committed
Fix unit tests and acceptance tests
1 parent 6246135 commit 37ab2ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/controller/servicebinding/servicecontext_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ var trueBool = true
160160
func TestFindOwnedResourcesCtxs_ConfigMap(t *testing.T) {
161161
ns := "planner"
162162
name := "service-binding"
163-
name := "db-testing"
163+
backendService := "db-testing"
164164
matchLabels := map[string]string{
165165
"connects-to": "database",
166166
"environment": "planner",
167167
}
168168
f := mocks.NewFake(t, ns)
169-
sbr := f.AddMockedServiceBinding(name, nil, name, "", deploymentsGVR, matchLabels)
169+
sbr := f.AddMockedServiceBinding(name, nil, backendService, "", deploymentsGVR, matchLabels)
170170
sbr.Spec.DetectBindingResources = &trueBool
171171

172172
f.AddMockedUnstructuredCSV("cluster-service-version")

test/acceptance/features/bindAppToService.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Feature: Bind an application to a service
222222
"""
223223
Then jq ".status.conditions[] | select(.type=="CollectionReady").status" of Service Binding "binding-request-empty-app" should be changed to "True"
224224
And jq ".status.conditions[] | select(.type=="InjectionReady").status" of Service Binding "binding-request-empty-app" should be changed to "False"
225-
And jq ".status.conditions[] | select(.type=="InjectionReady").reason" of Service Binding "binding-request-empty-app" should be changed to "EmptyApplicationSelector"
225+
And jq ".status.conditions[] | select(.type=="InjectionReady").reason" of Service Binding "binding-request-empty-app" should be changed to "EmptyApplication"
226226

227227

228228
Scenario: Backend Service status update gets propagated to the binding secret

0 commit comments

Comments
 (0)