Skip to content

Commit

Permalink
Fix integration tests on AWS (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong authored and dmoore247 committed Mar 23, 2024
1 parent dd45f47 commit df4ec18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/integration/framework/test_crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ def test_runtime_backend_permission_denied_handled(ws, wsfs_wheel):
assert permission_denied_fetch == "PASSED"


def test_runtime_backend_unknown_error_handled(ws, wsfs_wheel):
commands = CommandExecutor(ws.clusters, ws.command_execution, lambda: ws.config.cluster_id)
def test_runtime_backend_unknown_error_handled(ws, env_or_skip, wsfs_wheel):
"""We test this on the default cluster, i.e. without UC enabled. The command will throw an unknown error"""
commands = CommandExecutor(ws.clusters, ws.command_execution, lambda: env_or_skip("TEST_DEFAULT_CLUSTER_ID"))

commands.install_notebook_library(f"/Workspace{wsfs_wheel}")

Expand Down
10 changes: 7 additions & 3 deletions tests/integration/test_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ def test_job_cluster_policy(ws, new_installation):

assert policy_definition["spark_version"]["value"] == ws.clusters.select_spark_version(latest=True)
assert policy_definition["node_type_id"]["value"] == ws.clusters.select_node_type(local_disk=True)
assert (
policy_definition["azure_attributes.availability"]["value"] == compute.AzureAvailability.ON_DEMAND_AZURE.value
)
if ws.config.is_azure:
assert (
policy_definition["azure_attributes.availability"]["value"]
== compute.AzureAvailability.ON_DEMAND_AZURE.value
)
if ws.config.is_aws:
assert policy_definition["aws_attributes.availability"]["value"] == compute.AwsAvailability.ON_DEMAND.value


@pytest.mark.skip
Expand Down

0 comments on commit df4ec18

Please sign in to comment.