@@ -131,8 +131,7 @@ func TestPlacementDatasourceTypeConstants(t *testing.T) {
131131func TestOpenStackDatasourceSpec (t * testing.T ) {
132132 // Test creating a complete Nova datasource spec
133133 spec := v1alpha1.DatasourceSpec {
134- Operator : "test-operator" ,
135- Type : v1alpha1 .DatasourceTypeOpenStack ,
134+ Type : v1alpha1 .DatasourceTypeOpenStack ,
136135 OpenStack : v1alpha1.OpenStackDatasource {
137136 Type : v1alpha1 .OpenStackDatasourceTypeNova ,
138137 Nova : v1alpha1.NovaDatasource {
@@ -173,7 +172,6 @@ func TestOpenStackDatasourceSpec(t *testing.T) {
173172
174173func TestManilaDatasourceSpec (t * testing.T ) {
175174 spec := v1alpha1.DatasourceSpec {
176- Type : v1alpha1 .DatasourceTypeOpenStack ,
177175 OpenStack : v1alpha1.OpenStackDatasource {
178176 Type : v1alpha1 .OpenStackDatasourceTypeManila ,
179177 Manila : v1alpha1.ManilaDatasource {
@@ -198,7 +196,6 @@ func TestManilaDatasourceSpec(t *testing.T) {
198196
199197func TestPlacementDatasourceSpec (t * testing.T ) {
200198 spec := v1alpha1.DatasourceSpec {
201- Type : v1alpha1 .DatasourceTypeOpenStack ,
202199 OpenStack : v1alpha1.OpenStackDatasource {
203200 Type : v1alpha1 .OpenStackDatasourceTypePlacement ,
204201 Placement : v1alpha1.PlacementDatasource {
@@ -223,7 +220,6 @@ func TestPlacementDatasourceSpec(t *testing.T) {
223220
224221func TestIdentityDatasourceSpec (t * testing.T ) {
225222 spec := v1alpha1.DatasourceSpec {
226- Type : v1alpha1 .DatasourceTypeOpenStack ,
227223 OpenStack : v1alpha1.OpenStackDatasource {
228224 Type : v1alpha1 .OpenStackDatasourceTypeIdentity ,
229225 Identity : v1alpha1.IdentityDatasource {
@@ -248,7 +244,6 @@ func TestIdentityDatasourceSpec(t *testing.T) {
248244
249245func TestLimesDatasourceSpec (t * testing.T ) {
250246 spec := v1alpha1.DatasourceSpec {
251- Type : v1alpha1 .DatasourceTypeOpenStack ,
252247 OpenStack : v1alpha1.OpenStackDatasource {
253248 Type : v1alpha1 .OpenStackDatasourceTypeLimes ,
254249 Limes : v1alpha1.LimesDatasource {
@@ -273,7 +268,6 @@ func TestLimesDatasourceSpec(t *testing.T) {
273268
274269func TestCinderDatasourceSpec (t * testing.T ) {
275270 spec := v1alpha1.DatasourceSpec {
276- Type : v1alpha1 .DatasourceTypeOpenStack ,
277271 OpenStack : v1alpha1.OpenStackDatasource {
278272 Type : v1alpha1 .OpenStackDatasourceTypeCinder ,
279273 Cinder : v1alpha1.CinderDatasource {
0 commit comments