@@ -68,6 +68,10 @@ func TestCreateImage(t *testing.T) {
68
68
owner := "b4eedccc6fb74fa8a7ad6b08382b852b"
69
69
minDiskGigabytes := 0
70
70
minRAMMegabytes := 0
71
+ file := actualImage .File
72
+ createdDate := actualImage .CreatedDate
73
+ lastUpdate := actualImage .LastUpdate
74
+ schema := "/v2/schemas/image"
71
75
72
76
expectedImage := Image {
73
77
ID : "e7db3b45-8db7-47ad-8109-3fb55c2c24fd" ,
@@ -84,7 +88,11 @@ func TestCreateImage(t *testing.T) {
84
88
85
89
Owner : owner ,
86
90
87
- Visibility : ImageVisibilityPrivate ,
91
+ Visibility : ImageVisibilityPrivate ,
92
+ File : file ,
93
+ CreatedDate : createdDate ,
94
+ LastUpdate : lastUpdate ,
95
+ Schema : schema ,
88
96
}
89
97
90
98
th .AssertDeepEquals (t , & expectedImage , actualImage )
@@ -112,6 +120,10 @@ func TestCreateImageNulls(t *testing.T) {
112
120
owner := "b4eedccc6fb74fa8a7ad6b08382b852b"
113
121
minDiskGigabytes := 0
114
122
minRAMMegabytes := 0
123
+ file := actualImage .File
124
+ createdDate := actualImage .CreatedDate
125
+ lastUpdate := actualImage .LastUpdate
126
+ schema := "/v2/schemas/image"
115
127
116
128
expectedImage := Image {
117
129
ID : "e7db3b45-8db7-47ad-8109-3fb55c2c24fd" ,
@@ -128,7 +140,11 @@ func TestCreateImageNulls(t *testing.T) {
128
140
129
141
Owner : owner ,
130
142
131
- Visibility : ImageVisibilityPrivate ,
143
+ Visibility : ImageVisibilityPrivate ,
144
+ File : file ,
145
+ CreatedDate : createdDate ,
146
+ LastUpdate : lastUpdate ,
147
+ Schema : schema ,
132
148
}
133
149
134
150
th .AssertDeepEquals (t , & expectedImage , actualImage )
@@ -151,6 +167,10 @@ func TestGetImage(t *testing.T) {
151
167
minDiskGigabytes := 0
152
168
minRAMMegabytes := 0
153
169
owner := "5ef70662f8b34079a6eddb8da9d75fe8"
170
+ file := actualImage .File
171
+ createdDate := actualImage .CreatedDate
172
+ lastUpdate := actualImage .LastUpdate
173
+ schema := "/v2/schemas/image"
154
174
155
175
expectedImage := Image {
156
176
ID : "1bea47ed-f6a9-463b-b423-14b9cca9ad27" ,
@@ -170,8 +190,12 @@ func TestGetImage(t *testing.T) {
170
190
Protected : false ,
171
191
Visibility : ImageVisibilityPublic ,
172
192
173
- Checksum : checksum ,
174
- SizeBytes : sizeBytes ,
193
+ Checksum : checksum ,
194
+ SizeBytes : sizeBytes ,
195
+ File : file ,
196
+ CreatedDate : createdDate ,
197
+ LastUpdate : lastUpdate ,
198
+ Schema : schema ,
175
199
}
176
200
177
201
th .AssertDeepEquals (t , & expectedImage , actualImage )
@@ -202,6 +226,10 @@ func TestUpdateImage(t *testing.T) {
202
226
203
227
sizebytes := 2254249
204
228
checksum := "2cec138d7dae2aa59038ef8c9aec2390"
229
+ file := actualImage .File
230
+ createdDate := actualImage .CreatedDate
231
+ lastUpdate := actualImage .LastUpdate
232
+ schema := "/v2/schemas/image"
205
233
206
234
expectedImage := Image {
207
235
ID : "da3b75d9-3f4a-40e7-8a2c-bfab23927dea" ,
@@ -223,6 +251,10 @@ func TestUpdateImage(t *testing.T) {
223
251
224
252
DiskFormat : "" ,
225
253
ContainerFormat : "" ,
254
+ File : file ,
255
+ CreatedDate : createdDate ,
256
+ LastUpdate : lastUpdate ,
257
+ Schema : schema ,
226
258
}
227
259
228
260
th .AssertDeepEquals (t , & expectedImage , actualImage )
0 commit comments