@@ -60,11 +60,11 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
60
60
61
61
It ("Run walkthrough-example " , func () {
62
62
var (
63
- brokerName = upsbrokername
63
+ brokerName = upsbrokername
64
64
serviceclassName = "user-provided-service"
65
- testns = "test-ns"
66
- instanceName = "ups-instance"
67
- bindingName = "ups-binding"
65
+ testns = "test-ns"
66
+ instanceName = "ups-instance"
67
+ bindingName = "ups-binding"
68
68
)
69
69
70
70
//Broker and ServiceClass should become ready
@@ -79,7 +79,7 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
79
79
}
80
80
81
81
By ("Creating a Broker" )
82
- url := "http://" + upsbrokername + "." + f .Namespace .Name + ".svc.cluster.local"
82
+ url := "http://" + upsbrokername + "." + f .Namespace .Name + ".svc.cluster.local"
83
83
broker := & v1alpha1.Broker {
84
84
ObjectMeta : metav1.ObjectMeta {
85
85
Name : brokerName ,
@@ -95,7 +95,7 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
95
95
err = util .WaitForBrokerCondition (f .ServiceCatalogClientSet .ServicecatalogV1alpha1 (),
96
96
broker .Name ,
97
97
v1alpha1.BrokerCondition {
98
- Type : v1alpha1 .BrokerConditionReady ,
98
+ Type : v1alpha1 .BrokerConditionReady ,
99
99
Status : v1alpha1 .ConditionTrue ,
100
100
},
101
101
)
@@ -113,23 +113,24 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
113
113
By ("Creating a Instance" )
114
114
instance := & v1alpha1.Instance {
115
115
ObjectMeta : metav1.ObjectMeta {
116
- Name : instanceName ,
116
+ Name : instanceName ,
117
117
Namespace : testnamespace .Name ,
118
118
},
119
119
Spec : v1alpha1.InstanceSpec {
120
120
ServiceClassName : serviceclassName ,
121
- PlanName : "default" ,
121
+ PlanName : "default" ,
122
122
},
123
123
}
124
124
instance , err = f .ServiceCatalogClientSet .ServicecatalogV1alpha1 ().Instances (testnamespace .Name ).Create (instance )
125
125
Expect (err ).NotTo (HaveOccurred (), "failed to create instance" )
126
+ Expect (instance ).NotTo (BeNil ())
126
127
127
128
By ("Waiting for Instance to be ready" )
128
129
err = util .WaitForInstanceCondition (f .ServiceCatalogClientSet .ServicecatalogV1alpha1 (),
129
130
testnamespace .Name ,
130
131
instanceName ,
131
132
v1alpha1.InstanceCondition {
132
- Type : v1alpha1 .InstanceConditionReady ,
133
+ Type : v1alpha1 .InstanceConditionReady ,
133
134
Status : v1alpha1 .ConditionTrue ,
134
135
},
135
136
)
@@ -139,7 +140,7 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
139
140
By ("Creating a Binding" )
140
141
binding := & v1alpha1.Binding {
141
142
ObjectMeta : metav1.ObjectMeta {
142
- Name : bindingName ,
143
+ Name : bindingName ,
143
144
Namespace : testnamespace .Name ,
144
145
},
145
146
Spec : v1alpha1.BindingSpec {
@@ -151,13 +152,14 @@ var _ = framework.ServiceCatalogDescribe("walkthrough", func() {
151
152
}
152
153
binding , err = f .ServiceCatalogClientSet .ServicecatalogV1alpha1 ().Bindings (testnamespace .Name ).Create (binding )
153
154
Expect (err ).NotTo (HaveOccurred (), "failed to create binding" )
155
+ Expect (binding ).NotTo (BeNil ())
154
156
155
157
By ("Waiting for Binding to be ready" )
156
158
err = util .WaitForBindingCondition (f .ServiceCatalogClientSet .ServicecatalogV1alpha1 (),
157
159
testnamespace .Name ,
158
160
bindingName ,
159
161
v1alpha1.BindingCondition {
160
- Type : v1alpha1 .BindingConditionReady ,
162
+ Type : v1alpha1 .BindingConditionReady ,
161
163
Status : v1alpha1 .ConditionTrue ,
162
164
},
163
165
)
0 commit comments