Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jan 17, 2024
1 parent eab435a commit 5abfa9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Base_Tests/src/Network/Enso_Cloud/Secrets_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec setup:Cloud_Tests_Setup = setup.with_prepared_environment <|
response_json.at "headers" . at "Authorization" . should_equal expected

Test.specify "should allow to derive values from secrets" <|
secret1 = Enso_Secret.create "my_test_secret-9" "Something"
secret1 = Enso_Secret.create "my_test_secret-10" "Something"
secret1.should_succeed
Panic.with_finalizer secret1.delete <| with_retries <|
x = Derived_Secret_Value.from "X"
Expand All @@ -114,7 +114,7 @@ spec setup:Cloud_Tests_Setup = setup.with_prepared_environment <|
b2.to_text . should_equal "base64(X__SECRET__)"

Test.specify "does not allow secrets in HTTP headers" pending=setup.httpbin_pending <|
secret1 = Enso_Secret.create "my_test_secret-10" "Something"
secret1 = Enso_Secret.create "my_test_secret-11" "Something"
secret1.should_succeed
Panic.with_finalizer secret1.delete <| with_retries <|
uri = setup.httpbin_uri / "get"
Expand All @@ -123,7 +123,7 @@ spec setup:Cloud_Tests_Setup = setup.with_prepared_environment <|
r1.catch.to_display_text . should_contain "Secrets are not allowed in HTTP connections, use HTTPS instead."

Test.specify "API exposing secrets to external libraries should not be accessible from unauthorized code" <|
secret1 = Enso_Secret.create "my_test_secret-11" "Something"
secret1 = Enso_Secret.create "my_test_secret-12" "Something"
secret1.should_succeed
Panic.with_finalizer secret1.delete <| with_retries <|
java_repr = Internal_Cloud_Utils.as_hideable_value secret1
Expand Down

0 comments on commit 5abfa9f

Please sign in to comment.