Skip to content

Commit 9c79523

Browse files
authored
Moved back SPCS tests to integration tests (#2047)
1 parent 4307939 commit 9c79523

File tree

5 files changed

+6
-80
lines changed

5 files changed

+6
-80
lines changed

.github/workflows/test_integration_spcs.yaml

Lines changed: 0 additions & 70 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ features = ["development"]
140140

141141
[tool.hatch.envs.integration.scripts]
142142
test = [
143-
"pytest -m integration -n6 --dist=worksteal --deflake-test-type=integration --ignore=tests_integration/spcs tests_integration/",
144-
]
145-
test-spcs = [
146-
"pytest -m integration -n6 --dist=worksteal --deflake-test-type=integration tests_integration/spcs",
143+
"pytest -m integration -n6 --dist=worksteal --deflake-test-type=integration tests_integration/",
147144
]
148145
test_qa = [
149146
"pytest -m 'integration and not no_qa' -n6 --dist=worksteal --deflake-test-type=integration tests_integration/",

scripts/cleanup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def remove_resources(single: str, plural: str, known_instances: t.List[str], rol
6060
"SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_RAW"
6161
),
6262
"database": "SNOWCLI_DB",
63+
"schema": "public",
6364
"role": role,
6465
}
6566
config = {k: v for k, v in config.items() if v is not None}
@@ -78,6 +79,7 @@ def remove_resources(single: str, plural: str, known_instances: t.List[str], rol
7879
("service", "services"): [],
7980
("application", "applications"): [],
8081
("warehouse", "warehouses"): ["XSMALL"],
82+
("image repository", "image repositories"): ["SNOWCLI_REPOSITORY"],
8183
}
8284

8385
for (single, plural), known in known_objects.items():

tests_integration/spcs/test_registry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def test_get_registry_url(test_database, test_role, runner, snowflake_session):
6565

6666

6767
@pytest.mark.integration
68-
@pytest.mark.skip("Possibly flaky test")
6968
def test_registry_login(runner):
7069
result = runner.invoke_with_connection_json(["spcs", "image-registry", "login"])
7170
assert_that_result_is_successful_and_output_json_equals(

tests_integration/spcs/test_services.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
@pytest.mark.integration
26-
@pytest.mark.skip("Skipped temporarily")
2726
def test_services(_test_steps: Tuple[SnowparkServicesTestSteps, str]):
2827

2928
test_steps, service_name = _test_steps
@@ -39,17 +38,16 @@ def test_services(_test_steps: Tuple[SnowparkServicesTestSteps, str]):
3938
test_steps.logs_should_return_service_logs(
4039
service_name, "hello-world", "Serving Flask app 'echo_service'"
4140
)
42-
test_steps.suspend_service(service_name)
43-
test_steps.wait_until_service_is_suspended(service_name)
44-
test_steps.resume_service(service_name)
45-
test_steps.wait_until_service_is_running(service_name)
4641
test_steps.describe_should_return_service(service_name)
4742
test_steps.list_endpoints_should_show_endpoint(service_name)
4843
test_steps.list_instances_should_show_instances(service_name)
4944
test_steps.list_containers_should_show_containers(service_name)
5045
test_steps.list_roles_should_show_roles(service_name)
5146
test_steps.upgrade_service_should_change_spec(service_name)
5247
test_steps.set_unset_service_property(service_name)
48+
test_steps.suspend_service(service_name)
49+
test_steps.wait_until_service_is_suspended(service_name)
50+
test_steps.resume_service(service_name)
5351
test_steps.drop_service(service_name)
5452
test_steps.list_should_not_return_service(service_name)
5553

0 commit comments

Comments
 (0)