@@ -34,12 +34,12 @@ func TestIntegration(t *testing.T) {
34
34
}
35
35
36
36
// create fh-sync-server service instance
37
- createInstance (t , fhSyncServer )
38
- fhSyncID := getInstanceID (t , fhSyncServer )
37
+ CreateInstance (t , fhSyncServer )
38
+ fhSyncID := GetInstanceID (t , fhSyncServer )
39
39
40
40
// create keycloak service instance
41
- createInstance (t , keycloak )
42
- keycloakID := getInstanceID (t , keycloak )
41
+ CreateInstance (t , keycloak )
42
+ keycloakID := GetInstanceID (t , keycloak )
43
43
44
44
tests := []struct {
45
45
name string
@@ -59,7 +59,7 @@ func TestIntegration(t *testing.T) {
59
59
expectedError : nil ,
60
60
args : []string {"create" , "integration" , fhSyncID , keycloakID , "--namespace=" + * namespace },
61
61
validate : func (t * testing.T ) {
62
- sb , err := getBinding ()
62
+ sb , err := GetBinding ()
63
63
if err != nil {
64
64
t .Fatalf ("error retrieving binding: %v\n " , err )
65
65
}
@@ -88,7 +88,7 @@ func TestIntegration(t *testing.T) {
88
88
args : []string {"delete" , "integration" , fhSyncID , keycloakID , "--namespace=" + * namespace },
89
89
validate : func (t * testing.T ) {
90
90
expectedError := "Could not find servicebindings"
91
- _ , err := getBinding ()
91
+ _ , err := GetBinding ()
92
92
if err == nil {
93
93
t .Fatalf ("expected: '%v', got nil" , expectedError )
94
94
} else if err .Error () != expectedError {
@@ -132,7 +132,7 @@ func TestIntegration(t *testing.T) {
132
132
}
133
133
}
134
134
135
- func createInstance (t * testing.T , si * ProvisionServiceParams ) {
135
+ func CreateInstance (t * testing.T , si * ProvisionServiceParams ) {
136
136
args := []string {"create" , "serviceinstance" , si .ServiceName , si .Namespace }
137
137
args = append (args , si .Params ... )
138
138
cmd := exec .Command (* executable , args ... )
@@ -145,7 +145,7 @@ func createInstance(t *testing.T, si *ProvisionServiceParams) {
145
145
fmt .Println (string (output ))
146
146
}
147
147
148
- func getInstanceID (t * testing.T , si * ProvisionServiceParams ) (id string ) {
148
+ func GetInstanceID (t * testing.T , si * ProvisionServiceParams ) (id string ) {
149
149
args := []string {"get" , "serviceinstances" , si .ServiceName , si .Namespace , "-o=json" }
150
150
cmd := exec .Command (* executable , args ... )
151
151
@@ -162,7 +162,7 @@ func getInstanceID(t *testing.T, si *ProvisionServiceParams) (id string) {
162
162
return siList .Items [0 ].ObjectMeta .Name
163
163
}
164
164
165
- func getBinding () (* v1beta1.ServiceBinding , error ) {
165
+ func GetBinding () (* v1beta1.ServiceBinding , error ) {
166
166
args := []string {"get" , "integrations" , "--namespace=" + * namespace , "-o=json" }
167
167
cmd := exec .Command (* executable , args ... )
168
168
0 commit comments