Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed May 9, 2024
1 parent 4eba461 commit ae524a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/lightning/app/runners/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
CloudspaceIdRunsBody,
Externalv1LightningappInstance,
Gridv1ImageSpec,
IdGetBody1,
IdGetBody,
ProjectIdCloudspacesBody,
V1BuildSpec,
V1CloudSpace,
Expand Down Expand Up @@ -1027,7 +1027,7 @@ def _api_create_run_instance(
project_id=project_id,
cloudspace_id=cloudspace_id,
id=run_id,
body=IdGetBody1(
body=IdGetBody(
cluster_id=cluster_id,
name=run_name,
desired_state=desired_state,
Expand Down
10 changes: 5 additions & 5 deletions tests/tests_app/runners/test_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Externalv1Cluster,
Externalv1LightningappInstance,
Gridv1ImageSpec,
IdGetBody1,
IdGetBody,
ProjectIdProjectclustersbindingsBody,
V1BuildSpec,
V1CloudSpace,
Expand Down Expand Up @@ -508,7 +508,7 @@ def test_basic_auth_enabled(self, tmpdir, monkeypatch):
project_id="test-project-id",
cloudspace_id=mock.ANY,
id=mock.ANY,
body=IdGetBody1(
body=IdGetBody(
desired_state=mock.ANY,
name=mock.ANY,
env=mock.ANY,
Expand Down Expand Up @@ -712,7 +712,7 @@ def test_call_with_queue_server_type_specified(self, tmpdir, lightningapps, monk
cloud_runtime.dispatch()

# calling with no env variable set
body = IdGetBody1(
body = IdGetBody(
desired_state=V1LightningappInstanceState.STOPPED,
env=[],
name=mock.ANY,
Expand All @@ -727,7 +727,7 @@ def test_call_with_queue_server_type_specified(self, tmpdir, lightningapps, monk
monkeypatch.setitem(os.environ, "LIGHTNING_CLOUD_QUEUE_TYPE", "http")
cloud_runtime.backend.client.reset_mock()
cloud_runtime.dispatch()
body = IdGetBody1(
body = IdGetBody(
desired_state=V1LightningappInstanceState.STOPPED,
env=mock.ANY,
name=mock.ANY,
Expand Down Expand Up @@ -998,7 +998,7 @@ def test_call_with_work_app_and_app_comment_command_execution_set(self, lightnin
project_id="test-project-id",
cloudspace_id=mock.ANY,
id=mock.ANY,
body=IdGetBody1(
body=IdGetBody(
desired_state=V1LightningappInstanceState.STOPPED,
name=mock.ANY,
env=[V1EnvVar(name="ENABLE_APP_COMMENT_COMMAND_EXECUTION", value="1")],
Expand Down

0 comments on commit ae524a3

Please sign in to comment.