-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(compute): extend compute hyperdisk pool create #9595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
371273a
15c24c0
d810b7e
cef06ab
fbb8fa6
81891b3
55c7835
47ecd63
8294ad9
928be83
fdbb0f2
df550e2
3efab67
9fd467d
6dbb870
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
minherz marked this conversation as resolved.
Show resolved
Hide resolved
minherz marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,6 @@ | |
| import org.junit.FixMethodOrder; | ||
| import org.junit.jupiter.api.AfterAll; | ||
| import org.junit.jupiter.api.BeforeAll; | ||
| import org.junit.jupiter.api.Disabled; | ||
| import org.junit.jupiter.api.Test; | ||
| import org.junit.jupiter.api.Timeout; | ||
| import org.junit.runner.RunWith; | ||
|
|
@@ -48,6 +47,7 @@ public class HyperdisksIT { | |
| private static String HYPERDISK_NAME; | ||
| private static String HYPERDISK_IN_POOL_NAME; | ||
| private static String STORAGE_POOL_NAME; | ||
| private static final String PERFORMANCE_PROVISIONING_TYPE = "advanced"; | ||
|
|
||
| // Check if the required environment variables are set. | ||
| public static void requireEnvVar(String envVarName) { | ||
|
|
@@ -73,9 +73,9 @@ public static void cleanup() | |
| throws IOException, InterruptedException, ExecutionException, TimeoutException { | ||
| // Delete all disks created for testing. | ||
| DeleteDisk.deleteDisk(PROJECT_ID, ZONE, HYPERDISK_NAME); | ||
| //DeleteDisk.deleteDisk(PROJECT_ID, ZONE, HYPERDISK_IN_POOL_NAME); | ||
| DeleteDisk.deleteDisk(PROJECT_ID, ZONE, HYPERDISK_IN_POOL_NAME); | ||
minherz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| //Util.deleteStoragePool(PROJECT_ID, ZONE, STORAGE_POOL_NAME); | ||
| Util.deleteStoragePool(PROJECT_ID, ZONE, STORAGE_POOL_NAME); | ||
| } | ||
|
|
||
| @Test | ||
|
|
@@ -96,15 +96,15 @@ public void stage1_CreateHyperdiskTest() | |
| Assert.assertTrue(hyperdisk.getZone().contains(ZONE)); | ||
| } | ||
|
|
||
| @Disabled | ||
| @Test | ||
| public void stage1_CreateHyperdiskStoragePoolTest() | ||
|
||
| throws IOException, ExecutionException, InterruptedException, TimeoutException { | ||
| String poolType = String.format("projects/%s/zones/%s/storagePoolTypes/hyperdisk-balanced", | ||
minherz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| PROJECT_ID, ZONE); | ||
| StoragePool storagePool = CreateHyperdiskStoragePool | ||
| .createHyperdiskStoragePool(PROJECT_ID, ZONE, STORAGE_POOL_NAME, poolType, | ||
| "advanced", 10240, 10000, 10240); | ||
| "advanced", 10240, 10000, 10240, | ||
minherz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| PERFORMANCE_PROVISIONING_TYPE); | ||
|
|
||
| Assert.assertNotNull(storagePool); | ||
| Assert.assertEquals(STORAGE_POOL_NAME, storagePool.getName()); | ||
|
|
@@ -113,10 +113,10 @@ public void stage1_CreateHyperdiskStoragePoolTest() | |
| Assert.assertEquals(10240, storagePool.getPoolProvisionedCapacityGb()); | ||
| Assert.assertTrue(storagePool.getStoragePoolType().contains("hyperdisk-balanced")); | ||
| Assert.assertTrue(storagePool.getCapacityProvisioningType().equalsIgnoreCase("advanced")); | ||
| Assert.assertTrue(storagePool.getPerformanceProvisioningType().equalsIgnoreCase("advanced")); | ||
|
||
| Assert.assertTrue(storagePool.getZone().contains(ZONE)); | ||
| } | ||
|
|
||
| @Disabled | ||
| @Test | ||
| public void stage2_CreateHyperdiskStoragePoolTest() | ||
| throws IOException, ExecutionException, InterruptedException, TimeoutException { | ||
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.