forked from vmware-archive/admiral
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Iaf463fcdc61778379a8d7bef9d6c77b3318f2bf3 Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/48235 Closures-Verified: jenkins <[email protected]> Upgrade-Verified: jenkins <[email protected]> PG-Verified: jenkins <[email protected]> CS-Verified: jenkins <[email protected]> Bellevue-Verified: jenkins <[email protected]> Reviewed-by: Lazarin Lazarov <[email protected]>
- Loading branch information
Showing
3 changed files
with
145 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...test/java/com/vmware/admiral/test/integration/DockerProvisioningOnCoreOsRegistryV1IT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2018 VMware, Inc. All Rights Reserved. | ||
* | ||
* This product is licensed to you under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this product except in compliance with the License. | ||
* | ||
* This product may include a number of subcomponents with separate copyright notices | ||
* and license terms. Your use of these subcomponents is subject to the terms and | ||
* conditions of the subcomponent's license, as noted in the LICENSE file. | ||
*/ | ||
|
||
package com.vmware.admiral.test.integration; | ||
|
||
import org.junit.Test; | ||
|
||
import com.vmware.admiral.compute.ContainerHostService.DockerAdapterType; | ||
|
||
public class DockerProvisioningOnCoreOsRegistryV1IT extends DockerProvisioningOnCoreOsBase { | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSWithImageDownloadAPI() throws Exception { | ||
// not using registry, but instead upload the image to the host | ||
doProvisionDockerContainerOnCoreOS(true, DockerAdapterType.API); | ||
} | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSWithRegistryImageAPI() throws Exception { | ||
doProvisionDockerContainerOnCoreOS(false, DockerAdapterType.API); | ||
} | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSWithInsecureRegistryImageAPI() throws Exception { | ||
doProvisionDockerContainerOnCoreOS(false, DockerAdapterType.API, | ||
RegistryType.V1_HTTP_INSECURE); | ||
} | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSUsingLocalImageWithPriority() throws Exception { | ||
setupCoreOsHost(DockerAdapterType.API); | ||
|
||
logger.info("---------- 5. Create test docker image container description using local image" | ||
+ " with priority. --------"); | ||
String contDescriptionLink = getResourceDescriptionLinkUsingLocalImage(false, | ||
RegistryType.V1_SSL_SECURE); | ||
requestContainerAndDelete(contDescriptionLink); | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...test/java/com/vmware/admiral/test/integration/DockerProvisioningOnCoreOsRegistryV2IT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2018 VMware, Inc. All Rights Reserved. | ||
* | ||
* This product is licensed to you under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this product except in compliance with the License. | ||
* | ||
* This product may include a number of subcomponents with separate copyright notices | ||
* and license terms. Your use of these subcomponents is subject to the terms and | ||
* conditions of the subcomponent's license, as noted in the LICENSE file. | ||
*/ | ||
|
||
package com.vmware.admiral.test.integration; | ||
|
||
import org.junit.Test; | ||
|
||
import com.vmware.admiral.compute.ContainerHostService.DockerAdapterType; | ||
|
||
public class DockerProvisioningOnCoreOsRegistryV2IT extends DockerProvisioningOnCoreOsBase { | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSWithV2RegistryImageAPI() throws Exception { | ||
doProvisionDockerContainerOnCoreOS(false, DockerAdapterType.API, | ||
RegistryType.V2_SSL_SECURE); | ||
} | ||
|
||
@Test | ||
public void testProvisionDockerContainerOnCoreOSWithSecureRegistryImageAPI() throws Exception { | ||
doProvisionDockerContainerOnCoreOS(false, DockerAdapterType.API, | ||
RegistryType.V2_BASIC_AUTH); | ||
} | ||
|
||
} |