Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
page_size=0,
filter={
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"phases": ["TASK_EXECUTION_PHASE_UNSPECIFIED", "TASK_EXECUTION_PHASE_PENDING"],
"phases": ["TASK_EXECUTION_PHASE_RUNNING", "TASK_EXECUTION_PHASE_FAILED"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"task_references": ["string"],
},
Expand Down Expand Up @@ -196,7 +196,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
page_size=0,
filter={
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"phases": ["TASK_EXECUTION_PHASE_UNSPECIFIED", "TASK_EXECUTION_PHASE_PENDING"],
"phases": ["TASK_EXECUTION_PHASE_RUNNING", "TASK_EXECUTION_PHASE_FAILED"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"task_references": ["string"],
},
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/environments/test_automations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_method_upsert_with_all_params(self, client: Gitpod) -> None:
"image": "x",
}
},
"triggered_by": ["manual"],
"triggered_by": ["postDevcontainerStart"],
}
},
"tasks": {
Expand All @@ -58,7 +58,7 @@ def test_method_upsert_with_all_params(self, client: Gitpod) -> None:
"image": "x",
}
},
"triggered_by": ["manual"],
"triggered_by": ["postEnvironmentStart"],
}
},
},
Expand Down Expand Up @@ -118,7 +118,7 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncGitpod) ->
"image": "x",
}
},
"triggered_by": ["manual"],
"triggered_by": ["postDevcontainerStart"],
}
},
"tasks": {
Expand All @@ -133,7 +133,7 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncGitpod) ->
"image": "x",
}
},
"triggered_by": ["manual"],
"triggered_by": ["postEnvironmentStart"],
}
},
},
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/projects/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
policy = client.projects.policies.create(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
role="PROJECT_ROLE_UNSPECIFIED",
role="PROJECT_ROLE_ADMIN",
)
assert_matches_type(PolicyCreateResponse, policy, path=["response"])

Expand Down Expand Up @@ -72,7 +72,7 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
policy = client.projects.policies.update(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
role="PROJECT_ROLE_UNSPECIFIED",
role="PROJECT_ROLE_EDITOR",
)
assert_matches_type(PolicyUpdateResponse, policy, path=["response"])

Expand Down Expand Up @@ -193,7 +193,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
policy = await async_client.projects.policies.create(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
role="PROJECT_ROLE_UNSPECIFIED",
role="PROJECT_ROLE_ADMIN",
)
assert_matches_type(PolicyCreateResponse, policy, path=["response"])

Expand Down Expand Up @@ -231,7 +231,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
policy = await async_client.projects.policies.update(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
role="PROJECT_ROLE_UNSPECIFIED",
role="PROJECT_ROLE_EDITOR",
)
assert_matches_type(PolicyUpdateResponse, policy, path=["response"])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
host="github.com",
refresh_token="ghr_xxxxxxxxxxxx",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
source="HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED",
source="HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH",
user_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
)
assert_matches_type(HostAuthenticationTokenCreateResponse, host_authentication_token, path=["response"])
Expand Down Expand Up @@ -240,7 +240,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
host="github.com",
refresh_token="ghr_xxxxxxxxxxxx",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
source="HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED",
source="HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH",
user_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
)
assert_matches_type(HostAuthenticationTokenCreateResponse, host_authentication_token, path=["response"])
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/runners/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_method_create(self, client: Gitpod) -> None:
def test_method_create_with_all_params(self, client: Gitpod) -> None:
policy = client.runners.policies.create(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="RUNNER_ROLE_UNSPECIFIED",
role="RUNNER_ROLE_ADMIN",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
assert_matches_type(PolicyCreateResponse, policy, path=["response"])
Expand Down Expand Up @@ -71,7 +71,7 @@ def test_method_update(self, client: Gitpod) -> None:
def test_method_update_with_all_params(self, client: Gitpod) -> None:
policy = client.runners.policies.update(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="RUNNER_ROLE_UNSPECIFIED",
role="RUNNER_ROLE_USER",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
assert_matches_type(PolicyUpdateResponse, policy, path=["response"])
Expand Down Expand Up @@ -192,7 +192,7 @@ async def test_method_create(self, async_client: AsyncGitpod) -> None:
async def test_method_create_with_all_params(self, async_client: AsyncGitpod) -> None:
policy = await async_client.runners.policies.create(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="RUNNER_ROLE_UNSPECIFIED",
role="RUNNER_ROLE_ADMIN",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
assert_matches_type(PolicyCreateResponse, policy, path=["response"])
Expand Down Expand Up @@ -230,7 +230,7 @@ async def test_method_update(self, async_client: AsyncGitpod) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncGitpod) -> None:
policy = await async_client.runners.policies.update(
group_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="RUNNER_ROLE_UNSPECIFIED",
role="RUNNER_ROLE_USER",
runner_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
assert_matches_type(PolicyUpdateResponse, policy, path=["response"])
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
page_size=0,
filter={
"actor_ids": ["d2c94c27-3b76-4a42-b88c-95a85e392c68"],
"actor_principals": ["PRINCIPAL_UNSPECIFIED"],
"actor_principals": ["PRINCIPAL_USER"],
"subject_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"subject_types": ["RESOURCE_TYPE_UNSPECIFIED"],
},
Expand Down Expand Up @@ -120,7 +120,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
page_size=0,
filter={
"actor_ids": ["d2c94c27-3b76-4a42-b88c-95a85e392c68"],
"actor_principals": ["PRINCIPAL_UNSPECIFIED"],
"actor_principals": ["PRINCIPAL_USER"],
"subject_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"subject_types": ["RESOURCE_TYPE_UNSPECIFIED"],
},
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
"token": "token",
"page_size": 50,
},
scope="SCOPE_UNSPECIFIED",
scope="SCOPE_ALL",
)
assert_matches_type(SyncOrganizationsPage[Organization], organization, path=["response"])

Expand Down Expand Up @@ -357,7 +357,7 @@ def test_method_set_role_with_all_params(self, client: Gitpod) -> None:
organization = client.organizations.set_role(
organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
user_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="ORGANIZATION_ROLE_UNSPECIFIED",
role="ORGANIZATION_ROLE_MEMBER",
)
assert_matches_type(object, organization, path=["response"])

Expand Down Expand Up @@ -531,7 +531,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
"token": "token",
"page_size": 50,
},
scope="SCOPE_UNSPECIFIED",
scope="SCOPE_ALL",
)
assert_matches_type(AsyncOrganizationsPage[Organization], organization, path=["response"])

Expand Down Expand Up @@ -725,7 +725,7 @@ async def test_method_set_role_with_all_params(self, async_client: AsyncGitpod)
organization = await async_client.organizations.set_role(
organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
user_id="f53d2330-3795-4c5d-a1f3-453121af9c60",
role="ORGANIZATION_ROLE_UNSPECIFIED",
role="ORGANIZATION_ROLE_MEMBER",
)
assert_matches_type(object, organization, path=["response"])

Expand Down
20 changes: 10 additions & 10 deletions tests/api_resources/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
runner = client.runners.create(
kind="RUNNER_KIND_UNSPECIFIED",
name="Production Runner",
provider="RUNNER_PROVIDER_UNSPECIFIED",
provider="RUNNER_PROVIDER_AWS_EC2",
spec={
"configuration": {
"auto_update": True,
"region": "us-west",
"release_channel": "RUNNER_RELEASE_CHANNEL_UNSPECIFIED",
"release_channel": "RUNNER_RELEASE_CHANNEL_STABLE",
},
"desired_phase": "RUNNER_PHASE_UNSPECIFIED",
"desired_phase": "RUNNER_PHASE_ACTIVE",
},
)
assert_matches_type(RunnerCreateResponse, runner, path=["response"])
Expand Down Expand Up @@ -122,7 +122,7 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
spec={
"configuration": {
"auto_update": True,
"release_channel": "RUNNER_RELEASE_CHANNEL_UNSPECIFIED",
"release_channel": "RUNNER_RELEASE_CHANNEL_LATEST",
},
"desired_phase": "RUNNER_PHASE_UNSPECIFIED",
},
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
filter={
"creator_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"kinds": ["RUNNER_KIND_UNSPECIFIED"],
"providers": ["RUNNER_PROVIDER_UNSPECIFIED"],
"providers": ["RUNNER_PROVIDER_AWS_EC2"],
},
pagination={
"token": "token",
Expand Down Expand Up @@ -360,14 +360,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
runner = await async_client.runners.create(
kind="RUNNER_KIND_UNSPECIFIED",
name="Production Runner",
provider="RUNNER_PROVIDER_UNSPECIFIED",
provider="RUNNER_PROVIDER_AWS_EC2",
spec={
"configuration": {
"auto_update": True,
"region": "us-west",
"release_channel": "RUNNER_RELEASE_CHANNEL_UNSPECIFIED",
"release_channel": "RUNNER_RELEASE_CHANNEL_STABLE",
},
"desired_phase": "RUNNER_PHASE_UNSPECIFIED",
"desired_phase": "RUNNER_PHASE_ACTIVE",
},
)
assert_matches_type(RunnerCreateResponse, runner, path=["response"])
Expand Down Expand Up @@ -445,7 +445,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
spec={
"configuration": {
"auto_update": True,
"release_channel": "RUNNER_RELEASE_CHANNEL_UNSPECIFIED",
"release_channel": "RUNNER_RELEASE_CHANNEL_LATEST",
},
"desired_phase": "RUNNER_PHASE_UNSPECIFIED",
},
Expand Down Expand Up @@ -489,7 +489,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
filter={
"creator_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"kinds": ["RUNNER_KIND_UNSPECIFIED"],
"providers": ["RUNNER_PROVIDER_UNSPECIFIED"],
"providers": ["RUNNER_PROVIDER_AWS_EC2"],
},
pagination={
"token": "token",
Expand Down