Fix cloud tests by using correct config from the repo (#11223)

- Part of #11220
This commit is contained in:
Radosław Waśko 2024-10-02 10:05:08 +02:00 committed by GitHub
parent ad53c824ab
commit a23b66925d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View File

@ -105,9 +105,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./run backend test standard-library
env:
ENSO_CLOUD_COGNITO_REGION: ${{ secrets.ENSO_CLOUD_COGNITO_REGION }}
ENSO_CLOUD_COGNITO_USER_POOL_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_ID }}
ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID: ${{ secrets.ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID }}
ENSO_CLOUD_COGNITO_REGION: ${{ vars.ENSO_CLOUD_COGNITO_REGION }}
ENSO_CLOUD_COGNITO_USER_POOL_ID: ${{ vars.ENSO_CLOUD_COGNITO_USER_POOL_ID }}
ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID: ${{ vars.ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID }}
ENSO_CLOUD_TEST_ACCOUNT_PASSWORD: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_PASSWORD }}
ENSO_CLOUD_TEST_ACCOUNT_USERNAME: ${{ secrets.ENSO_CLOUD_TEST_ACCOUNT_USERNAME }}
ENSO_LIB_S3_AWS_ACCESS_KEY_ID: ${{ secrets.ENSO_LIB_S3_AWS_ACCESS_KEY_ID }}

View File

@ -212,15 +212,15 @@ impl JobArchetype for JvmTests {
}
fn enable_cloud_tests(step: Step) -> Step {
step.with_secret_exposed_as(
step.with_variable_exposed_as(
secret::ENSO_CLOUD_COGNITO_USER_POOL_ID,
crate::cloud_tests::env::ci_config::ENSO_CLOUD_COGNITO_USER_POOL_ID,
)
.with_secret_exposed_as(
.with_variable_exposed_as(
secret::ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID,
crate::cloud_tests::env::ci_config::ENSO_CLOUD_COGNITO_USER_POOL_WEB_CLIENT_ID,
)
.with_secret_exposed_as(
.with_variable_exposed_as(
secret::ENSO_CLOUD_COGNITO_REGION,
crate::cloud_tests::env::ci_config::ENSO_CLOUD_COGNITO_REGION,
)

View File

@ -177,7 +177,7 @@ add_specs suite_builder setup:Cloud_Tests_Setup = suite_builder.group "Enso Clou
Context.Output.with_disabled <|
r = "ABC".write f
r.should_fail_with Forbidden_Operation
r.catch.to_display_text . should_contain "Currently dry-run is not supported for Enso_File"
r.catch.to_display_text . should_contain "As writing is disabled, no action has been performed"
# The file should not have been created
f.exists . should_be_false

View File

@ -387,7 +387,7 @@ add_specs suite_builder =
cloud_setup = Cloud_Tests_Setup.prepare
with_temporary_cloud_root ~action =
subdir = (Enso_File.root / ("my_test_CWD-" + Random.uuid.take 5)).create_directory
subdir = (Enso_File.home / ("my_test_CWD-" + Random.uuid.take 5)).create_directory
subdir.should_succeed
cleanup =
Enso_User.flush_caches

View File

@ -21,7 +21,7 @@ add_specs suite_builder =
group_builder.specify "writing Excel" <|
t = Table.new [["X", [1, 2, 3]], ["Y", ["a", "b", "c"]]]
f = Enso_File.root / ("write-test-"+Temporary_Directory.timestamp_text+".xlsx")
f = Enso_File.home / ("write-test-"+Temporary_Directory.timestamp_text+".xlsx")
t.write f . should_equal f
Panic.with_finalizer f.delete_if_exists <|
workbook = f.read