|
22 | 22 | import es.upv.i3m.grycap.im.auth.credentials.properties.DomainProperty; |
23 | 23 | import es.upv.i3m.grycap.im.auth.credentials.properties.GenericProperty; |
24 | 24 | import es.upv.i3m.grycap.im.auth.credentials.properties.HostProperty; |
| 25 | +import es.upv.i3m.grycap.im.auth.credentials.properties.ImageUrlProperty; |
| 26 | +import es.upv.i3m.grycap.im.auth.credentials.properties.MicroversionProperty; |
| 27 | +import es.upv.i3m.grycap.im.auth.credentials.properties.NetworkUrlProperty; |
25 | 28 | import es.upv.i3m.grycap.im.auth.credentials.properties.OpenStackAuthVersionProperty; |
26 | 29 | import es.upv.i3m.grycap.im.auth.credentials.properties.PasswordProperty; |
27 | 30 | import es.upv.i3m.grycap.im.auth.credentials.properties.PrivateKeyProperty; |
|
33 | 36 | import es.upv.i3m.grycap.im.auth.credentials.properties.TenantProperty; |
34 | 37 | import es.upv.i3m.grycap.im.auth.credentials.properties.TokenProperty; |
35 | 38 | import es.upv.i3m.grycap.im.auth.credentials.properties.UserNameProperty; |
| 39 | +import es.upv.i3m.grycap.im.auth.credentials.properties.VolumeUrlProperty; |
36 | 40 | import es.upv.i3m.grycap.im.auth.credentials.providers.OpenStackAuthVersion; |
37 | 41 |
|
| 42 | + |
38 | 43 | import org.junit.Assert; |
39 | 44 | import org.junit.Test; |
40 | 45 |
|
@@ -231,4 +236,32 @@ public void testSubscriptionIdProperty() { |
231 | 236 | p.serialize()); |
232 | 237 | } |
233 | 238 |
|
| 239 | + @Test |
| 240 | + public void testImageUrlProperty() { |
| 241 | + ImageUrlProperty p = new ImageUrlProperty(BP, PROPERTY_VALUE); |
| 242 | + Assert.assertEquals(BP_EXPECTED_RESULT + " ; image_url = " + PROPERTY_VALUE, |
| 243 | + p.serialize()); |
| 244 | + } |
| 245 | + |
| 246 | + @Test |
| 247 | + public void testVolumeUrlProperty() { |
| 248 | + VolumeUrlProperty p = new VolumeUrlProperty(BP, PROPERTY_VALUE); |
| 249 | + Assert.assertEquals(BP_EXPECTED_RESULT + " ; volume_url = " + PROPERTY_VALUE, |
| 250 | + p.serialize()); |
| 251 | + } |
| 252 | + |
| 253 | + @Test |
| 254 | + public void testNetworkUrlProperty() { |
| 255 | + NetworkUrlProperty p = new NetworkUrlProperty(BP, PROPERTY_VALUE); |
| 256 | + Assert.assertEquals(BP_EXPECTED_RESULT + " ; network_url = " + PROPERTY_VALUE, |
| 257 | + p.serialize()); |
| 258 | + } |
| 259 | + |
| 260 | + @Test |
| 261 | + public void testMicroversioProperty() { |
| 262 | + MicroversionProperty p = new MicroversionProperty(BP, PROPERTY_VALUE); |
| 263 | + Assert.assertEquals(BP_EXPECTED_RESULT + " ; microversion = " + PROPERTY_VALUE, |
| 264 | + p.serialize()); |
| 265 | + } |
| 266 | + |
234 | 267 | } |
0 commit comments