test(e2e): Update migration test with additional resources (#4069)

* test(e2e): Add descriptions to resources

* test(e2e): Add more resources to migration test
This commit is contained in:
Michael Li authored and GitHub committed 2023-11-30 09:38:07 -05:00
1 parent 798e86cefe
commit 3cae4933c0
9 files changed
+48 -4

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ func CreateNewAccountCli(t testing.TB, ctx context.Context, authMethodId string,
"-login-name", loginName,
"-password", "env://E2E_TEST_ACCOUNT_PASSWORD",
"-name", "e2e Account "+loginName,
"-description", "e2e Account",
"-description", "e2e",
"-format", "json",
),
e2e.WithEnv("E2E_TEST_ACCOUNT_PASSWORD", password),
@@ -36,6 +36,7 @@ func CreateNewCredentialStoreVaultCli(t testing.TB, ctx context.Context, project
"-scope-id", projectId,
"-vault-address", vaultAddr,
"-vault-token", vaultToken,
"-description", "e2e",
"-format", "json",
),
)
@@ -56,6 +57,7 @@ func CreateNewCredentialStoreStaticCli(t testing.TB, ctx context.Context, projec
e2e.WithArgs(
"credential-stores", "create", "static",
"-scope-id", projectId,
"-description", "e2e",
"-format", "json",
),
)
@@ -79,6 +81,7 @@ func CreateNewStaticCredentialPrivateKeyCli(t testing.TB, ctx context.Context, c
"-credential-store-id", credentialStoreId,
"-username", user,
"-private-key", "file://"+filePath,
"-description", "e2e",
"-format", "json",
),
)
@@ -102,6 +105,7 @@ func CreateNewStaticCredentialPasswordCli(t testing.TB, ctx context.Context, cre
"-credential-store-id", credentialStoreId,
"-username", user,
"-password", "env://E2E_CREDENTIALS_PASSWORD",
"-description", "e2e",
"-format", "json",
),
e2e.WithEnv("E2E_CREDENTIALS_PASSWORD", password),
@@ -125,6 +129,7 @@ func CreateNewStaticCredentialJsonCli(t testing.TB, ctx context.Context, credent
"credentials", "create", "json",
"-credential-store-id", credentialStoreId,
"-object", "file://"+jsonFilePath,
"-description", "e2e",
"-format", "json",
),
)
+1
View File
@@ -20,6 +20,7 @@ func CreateNewGroupCli(t testing.TB, ctx context.Context, scopeId string) string
e2e.WithArgs(
"groups", "create",
"-scope-id", "global",
"-description", "e2e",
"-format", "json",
),
)
+5
View File
@@ -74,6 +74,7 @@ func CreateNewHostCatalogCli(t testing.TB, ctx context.Context, projectId string
"host-catalogs", "create", "static",
"-scope-id", projectId,
"-name", "e2e Host Catalog",
"-description", "e2e",
"-format", "json",
),
)
@@ -95,6 +96,7 @@ func CreateNewHostSetCli(t testing.TB, ctx context.Context, hostCatalogId string
"host-sets", "create", "static",
"-host-catalog-id", hostCatalogId,
"-name", "e2e Host Set",
"-description", "e2e",
"-format", "json",
),
)
@@ -116,6 +118,7 @@ func CreateNewHostCli(t testing.TB, ctx context.Context, hostCatalogId string, a
"hosts", "create", "static",
"-host-catalog-id", hostCatalogId,
"-name", address,
"-description", "e2e",
"-address", address,
"-format", "json",
),
@@ -150,6 +153,7 @@ func CreateNewAwsHostCatalogCli(t testing.TB, ctx context.Context, projectId str
"-attr", "region=us-east-1",
"-secret", "access_key_id=env://E2E_AWS_ACCESS_KEY_ID",
"-secret", "secret_access_key=env://E2E_AWS_SECRET_ACCESS_KEY",
"-description", "e2e",
"-format", "json",
),
e2e.WithEnv("E2E_AWS_ACCESS_KEY_ID", accessKeyId),
@@ -173,6 +177,7 @@ func CreateNewAwsHostSetCli(t testing.TB, ctx context.Context, hostCatalogId str
"host-sets", "create", "plugin",
"-host-catalog-id", hostCatalogId,
"-attr", "filters="+filter,
"-description", "e2e",
"-format", "json",
),
)
+1
View File
@@ -21,6 +21,7 @@ func CreateNewRoleCli(t testing.TB, ctx context.Context, scopeId string) string
"roles", "create",
"-scope-id", scopeId,
"-name", "e2e Role",
"-description", "e2e",
"-format", "json",
),
)
+2
View File
@@ -46,6 +46,7 @@ func CreateNewOrgCli(t testing.TB, ctx context.Context) string {
e2e.WithArgs(
"scopes", "create",
"-name", "e2e Org",
"-description", "e2e",
"-scope-id", "global",
"-format", "json",
),
@@ -71,6 +72,7 @@ func CreateNewProjectCli(t testing.TB, ctx context.Context, orgId string, opt ..
args = append(args,
"scopes", "create",
"-scope-id", orgId,
"-description", "e2e",
"-format", "json",
)
+1
View File
@@ -60,6 +60,7 @@ func CreateNewTargetCli(t testing.TB, ctx context.Context, projectId string, def
args = append(args,
"-scope-id", projectId,
"-default-port", defaultPort,
"-description", "e2e",
"-format", "json",
)
+1 -1
View File
@@ -34,7 +34,7 @@ func CreateNewUserCli(t testing.TB, ctx context.Context, scopeId string) string
"users", "create",
"-scope-id", scopeId,
"-name", "e2e User",
"-description", "e2e User",
"-description", "e2e",
"-format", "json",
),
)