@@ -9,38 +9,38 @@ import (
9
9
10
10
func TestGetMachineReadableFormat (t * testing.T ) {
11
11
tests := []struct {
12
- name string
13
- storageName string
14
- storageSize string
15
- mountedPath string
16
- want Storage
12
+ name string
13
+ storageName string
14
+ storageSize string
15
+ mountedPath string
16
+ want Storage
17
17
}{
18
18
{
19
- name : "test case 1: with a pvc, valid path and mounted status" ,
20
- storageName : "pvc-example" ,
21
- storageSize : "100Mi" ,
22
- mountedPath : "data" ,
19
+ name : "test case 1: with a pvc, valid path and mounted status" ,
20
+ storageName : "pvc-example" ,
21
+ storageSize : "100Mi" ,
22
+ mountedPath : "data" ,
23
23
want : Storage {
24
24
ObjectMeta : metav1.ObjectMeta {
25
25
Name : "pvc-example" ,
26
26
},
27
- TypeMeta : metav1.TypeMeta {Kind : "storage " , APIVersion : "odo.dev/v1alpha1" },
27
+ TypeMeta : metav1.TypeMeta {Kind : "Storage " , APIVersion : "odo.dev/v1alpha1" },
28
28
Spec : StorageSpec {
29
29
Size : "100Mi" ,
30
30
Path : "data" ,
31
31
},
32
32
},
33
33
},
34
34
{
35
- name : "test case 2: with a pvc, empty path and unmounted status" ,
36
- storageName : "pvc-example" ,
37
- storageSize : "500Mi" ,
38
- mountedPath : "" ,
35
+ name : "test case 2: with a pvc, empty path and unmounted status" ,
36
+ storageName : "pvc-example" ,
37
+ storageSize : "500Mi" ,
38
+ mountedPath : "" ,
39
39
want : Storage {
40
40
ObjectMeta : metav1.ObjectMeta {
41
41
Name : "pvc-example" ,
42
42
},
43
- TypeMeta : metav1.TypeMeta {Kind : "storage " , APIVersion : "odo.dev/v1alpha1" },
43
+ TypeMeta : metav1.TypeMeta {Kind : "Storage " , APIVersion : "odo.dev/v1alpha1" },
44
44
Spec : StorageSpec {
45
45
Size : "500Mi" ,
46
46
Path : "" ,
@@ -73,7 +73,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
73
73
Name : "example-pvc-1" ,
74
74
},
75
75
TypeMeta : metav1.TypeMeta {
76
- Kind : "List " ,
76
+ Kind : "Storage " ,
77
77
APIVersion : "odo.dev/v1alpha1" ,
78
78
},
79
79
Spec : StorageSpec {
@@ -94,7 +94,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
94
94
Name : "example-pvc-1" ,
95
95
},
96
96
TypeMeta : metav1.TypeMeta {
97
- Kind : "List " ,
97
+ Kind : "Storage " ,
98
98
APIVersion : "odo.dev/v1alpha1" ,
99
99
},
100
100
Spec : StorageSpec {
@@ -113,7 +113,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
113
113
Name : "example-pvc-0" ,
114
114
},
115
115
TypeMeta : metav1.TypeMeta {
116
- Kind : "List " ,
116
+ Kind : "Storage " ,
117
117
APIVersion : "odo.dev/v1alpha1" ,
118
118
},
119
119
Spec : StorageSpec {
@@ -126,7 +126,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
126
126
Name : "example-pvc-1" ,
127
127
},
128
128
TypeMeta : metav1.TypeMeta {
129
- Kind : "List " ,
129
+ Kind : "Storage " ,
130
130
APIVersion : "odo.dev/v1alpha1" ,
131
131
},
132
132
Spec : StorageSpec {
@@ -147,7 +147,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
147
147
Name : "example-pvc-0" ,
148
148
},
149
149
TypeMeta : metav1.TypeMeta {
150
- Kind : "List " ,
150
+ Kind : "Storage " ,
151
151
APIVersion : "odo.dev/v1alpha1" ,
152
152
},
153
153
Spec : StorageSpec {
@@ -160,7 +160,7 @@ func TestGetMachineReadableFormatForList(t *testing.T) {
160
160
Name : "example-pvc-1" ,
161
161
},
162
162
TypeMeta : metav1.TypeMeta {
163
- Kind : "List " ,
163
+ Kind : "Storage " ,
164
164
APIVersion : "odo.dev/v1alpha1" ,
165
165
},
166
166
Spec : StorageSpec {
0 commit comments