-
Notifications
You must be signed in to change notification settings - Fork 0
/
serviceinstance.go
48 lines (45 loc) · 1.41 KB
/
serviceinstance.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package fixture
import (
"github.com/kyma-project/kyma/tests/console-backend-service/internal/domain/shared"
)
func ServiceInstanceFromClusterServiceClass(name string, namespace string) shared.ServiceInstance {
return shared.ServiceInstance{
Name: name,
Namespace: namespace,
Labels: []string{"test", "test2"},
PlanSpec: TestingBundleFullPlanSpec,
ClusterServicePlan: shared.ClusterServicePlan{
Name: TestingBundleFullPlanName,
ExternalName: TestingBundleFullPlanExternalName,
},
ClusterServiceClass: shared.ClusterServiceClass{
Name: TestingBundleClassName,
ExternalName: TestingBundleClassExternalName,
},
Status: shared.ServiceInstanceStatus{
Type: shared.ServiceInstanceStatusTypeRunning,
},
Bindable: true,
}
}
func ServiceInstanceFromServiceClass(name string, namespace string) shared.ServiceInstance {
return shared.ServiceInstance{
Name: name,
Namespace: namespace,
Labels: []string{"test", "test2"},
PlanSpec: TestingBundleFullPlanSpec,
ServicePlan: shared.ServicePlan{
Name: TestingBundleFullPlanName,
ExternalName: TestingBundleFullPlanExternalName,
},
ServiceClass: shared.ServiceClass{
Name: TestingBundleClassName,
ExternalName: TestingBundleClassExternalName,
Namespace: namespace,
},
Status: shared.ServiceInstanceStatus{
Type: shared.ServiceInstanceStatusTypeRunning,
},
Bindable: true,
}
}