Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Correct snapshots

Daniel Hougaard0e3cc4fdeb20
diff --git a/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithImports b/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithImports
new file mode 100644
index 0000000000..0224005430
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithImports
@@ -0,0 +1,5 @@
+STAGING-SECRET-1='staging-value-1'
+TEST-SECRET-1='test-value-1'
+TEST-SECRET-3='test-value-3'
+TEST-SECRET-2='test-value-2'
+STAGING-SECRET-2='staging-value-2'
diff --git a/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithoutImports b/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithoutImports
new file mode 100644
index 0000000000..6cc3ca7c41
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_ExportSecretsWithoutImports
@@ -0,0 +1,3 @@
+TEST-SECRET-1='test-value-1'
+TEST-SECRET-3='test-value-3'
+TEST-SECRET-2='test-value-2'
diff --git a/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameRecursive b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameRecursive
new file mode 100644
index 0000000000..f2f26ae192
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameRecursive
@@ -0,0 +1,7 @@
+┌─────────────────┬────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├─────────────────┼────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+└─────────────────┴────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithImports b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithImports
new file mode 100644
index 0000000000..ff488466de
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithImports
@@ -0,0 +1,7 @@
+┌──────────────────┬─────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├──────────────────┼─────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ STAGING-SECRET-2 │ staging-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+└──────────────────┴─────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithNotFoundSecret b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithNotFoundSecret
new file mode 100644
index 0000000000..afe3bffa82
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_GetSecretsByNameWithNotFoundSecret
@@ -0,0 +1,8 @@
+┌─────────────────┬────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├─────────────────┼────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+│ DOES-NOT-EXIST │ *not found* │ *not found* │
+└─────────────────┴────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestServiceToken_RunCmdRecursiveAndImports b/cli/test/.snapshots/test-TestServiceToken_RunCmdRecursiveAndImports
new file mode 100644
index 0000000000..7bf32be6c7
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_RunCmdRecursiveAndImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 6 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestServiceToken_RunCmdWithImports b/cli/test/.snapshots/test-TestServiceToken_RunCmdWithImports
new file mode 100644
index 0000000000..cc3d8ae470
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_RunCmdWithImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 5 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestServiceToken_RunCmdWithoutImports b/cli/test/.snapshots/test-TestServiceToken_RunCmdWithoutImports
new file mode 100644
index 0000000000..9e9929a526
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_RunCmdWithoutImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 3 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithImportsAndRecursiveCmd b/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithImportsAndRecursiveCmd
new file mode 100644
index 0000000000..dd2bc317c1
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithImportsAndRecursiveCmd
@@ -0,0 +1,10 @@
+┌──────────────────┬─────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├──────────────────┼─────────────────┼─────────────┤
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+│ STAGING-SECRET-1 │ staging-value-1 │ shared │
+│ STAGING-SECRET-2 │ staging-value-2 │ shared │
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ TEST-SECRET-3 │ test-value-3 │ shared │
+└──────────────────┴─────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithoutImportsAndWithoutRecursiveCmd b/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithoutImportsAndWithoutRecursiveCmd
new file mode 100644
index 0000000000..260607e976
--- /dev/null
+++ b/cli/test/.snapshots/test-TestServiceToken_SecretsGetWithoutImportsAndWithoutRecursiveCmd
@@ -0,0 +1,7 @@
+┌───────────────┬──────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├───────────────┼──────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ TEST-SECRET-3 │ test-value-3 │ shared │
+└───────────────┴──────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithImports b/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithImports
new file mode 100644
index 0000000000..1b59a0f22e
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithImports
@@ -0,0 +1,5 @@
+TEST-SECRET-1='test-value-1'
+TEST-SECRET-3='test-value-3'
+TEST-SECRET-2='test-value-2'
+STAGING-SECRET-2='staging-value-2'
+STAGING-SECRET-1='staging-value-1'
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithoutImports b/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithoutImports
new file mode 100644
index 0000000000..6cc3ca7c41
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_ExportSecretsWithoutImports
@@ -0,0 +1,3 @@
+TEST-SECRET-1='test-value-1'
+TEST-SECRET-3='test-value-3'
+TEST-SECRET-2='test-value-2'
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameRecursive b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameRecursive
new file mode 100644
index 0000000000..f2f26ae192
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameRecursive
@@ -0,0 +1,7 @@
+┌─────────────────┬────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├─────────────────┼────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+└─────────────────┴────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithImports b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithImports
new file mode 100644
index 0000000000..ff488466de
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithImports
@@ -0,0 +1,7 @@
+┌──────────────────┬─────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├──────────────────┼─────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ STAGING-SECRET-2 │ staging-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+└──────────────────┴─────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithNotFoundSecret b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithNotFoundSecret
new file mode 100644
index 0000000000..afe3bffa82
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_GetSecretsByNameWithNotFoundSecret
@@ -0,0 +1,8 @@
+┌─────────────────┬────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├─────────────────┼────────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+│ DOES-NOT-EXIST │ *not found* │ *not found* │
+└─────────────────┴────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_RunCmdRecursiveAndImports b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdRecursiveAndImports
new file mode 100644
index 0000000000..7bf32be6c7
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdRecursiveAndImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 6 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithImports b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithImports
new file mode 100644
index 0000000000..cc3d8ae470
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 5 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithoutImports b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithoutImports
new file mode 100644
index 0000000000..9e9929a526
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_RunCmdWithoutImports
@@ -0,0 +1,2 @@
+2:53PM INF Injecting 3 Infisical secrets into your application process
+hello world
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithImportsAndRecursiveCmd b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithImportsAndRecursiveCmd
new file mode 100644
index 0000000000..dd2bc317c1
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithImportsAndRecursiveCmd
@@ -0,0 +1,10 @@
+┌──────────────────┬─────────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├──────────────────┼─────────────────┼─────────────┤
+│ FOLDER-SECRET-1 │ folder-value-1 │ shared │
+│ STAGING-SECRET-1 │ staging-value-1 │ shared │
+│ STAGING-SECRET-2 │ staging-value-2 │ shared │
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ TEST-SECRET-3 │ test-value-3 │ shared │
+└──────────────────┴─────────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithoutImportsAndWithoutRecursiveCmd b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithoutImportsAndWithoutRecursiveCmd
new file mode 100644
index 0000000000..260607e976
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWithoutImportsAndWithoutRecursiveCmd
@@ -0,0 +1,7 @@
+┌───────────────┬──────────────┬─────────────┐
+│ SECRET NAME │ SECRET VALUE │ SECRET TYPE │
+├───────────────┼──────────────┼─────────────┤
+│ TEST-SECRET-1 │ test-value-1 │ shared │
+│ TEST-SECRET-2 │ test-value-2 │ shared │
+│ TEST-SECRET-3 │ test-value-3 │ shared │
+└───────────────┴──────────────┴─────────────┘
diff --git a/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWrongEnvironment b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWrongEnvironment
new file mode 100644
index 0000000000..c3811bd22a
--- /dev/null
+++ b/cli/test/.snapshots/test-TestUniversalAuth_SecretsGetWrongEnvironment
@@ -0,0 +1,4 @@
+error: CallGetRawSecretsV3: Unsuccessful response [GET https://app.infisical.com/api/v3/secrets/raw?environment=invalid-env&include_imports=true&recursive=true&secretPath=%2F&workspaceId=bef697d4-849b-4a75-b284-0922f87f8ba2] [status-code=500] [response={"statusCode":500,"error":"Internal Server Error","message":"'invalid-env' environment not found in project with ID bef697d4-849b-4a75-b284-0922f87f8ba2"}]
+
+
+If this issue continues, get support at https://infisical.com/slack