Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rebuild project due to codegen change #66

Merged
merged 1 commit into from
Nov 18, 2024
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
104 changes: 8 additions & 96 deletions tests/api_resources/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,14 @@ def test_method_exec(self, client: Riza) -> None:
def test_method_exec_with_all_params(self, client: Riza) -> None:
command = client.command.exec(
code='print("Hello world!")',
allow_http_hosts=["string", "string", "string"],
args=["string", "string", "string"],
allow_http_hosts=["string"],
args=["string"],
env={"foo": "string"},
files=[
{
"contents": "contents",
"path": "path",
},
{
"contents": "contents",
"path": "path",
},
{
"contents": "contents",
"path": "path",
},
}
],
http={
"allow": [
Expand All @@ -64,43 +56,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None:
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"user_id": "user_id",
},
"bearer": {"token": "token"},
"header": {
"name": "name",
"value": "value",
},
"query": {
"key": "key",
"value": "value",
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"user_id": "user_id",
},
"bearer": {"token": "token"},
"header": {
"name": "name",
"value": "value",
},
"query": {
"key": "key",
"value": "value",
},
},
"host": "host",
},
}
]
},
language="PYTHON",
Expand Down Expand Up @@ -153,22 +109,14 @@ async def test_method_exec(self, async_client: AsyncRiza) -> None:
async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> None:
command = await async_client.command.exec(
code='print("Hello world!")',
allow_http_hosts=["string", "string", "string"],
args=["string", "string", "string"],
allow_http_hosts=["string"],
args=["string"],
env={"foo": "string"},
files=[
{
"contents": "contents",
"path": "path",
},
{
"contents": "contents",
"path": "path",
},
{
"contents": "contents",
"path": "path",
},
}
],
http={
"allow": [
Expand All @@ -189,43 +137,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"user_id": "user_id",
},
"bearer": {"token": "token"},
"header": {
"name": "name",
"value": "value",
},
"query": {
"key": "key",
"value": "value",
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"user_id": "user_id",
},
"bearer": {"token": "token"},
"header": {
"name": "name",
"value": "value",
},
"query": {
"key": "key",
"value": "value",
},
},
"host": "host",
},
}
]
},
language="PYTHON",
Expand Down
104 changes: 4 additions & 100 deletions tests/api_resources/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,17 +157,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None:
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
{
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
{
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
}
],
http={
"allow": [
Expand All @@ -189,45 +179,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None:
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"secret_id": "secret_id",
"user_id": "user_id",
},
"bearer": {
"token": "token",
"secret_id": "secret_id",
},
"query": {
"key": "key",
"secret_id": "secret_id",
"value": "value",
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"secret_id": "secret_id",
"user_id": "user_id",
},
"bearer": {
"token": "token",
"secret_id": "secret_id",
},
"query": {
"key": "key",
"secret_id": "secret_id",
"value": "value",
},
},
"host": "host",
},
}
]
},
input={},
Expand Down Expand Up @@ -444,17 +396,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
{
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
{
"name": "name",
"secret_id": "secret_id",
"value": "value",
},
}
],
http={
"allow": [
Expand All @@ -476,45 +418,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"secret_id": "secret_id",
"user_id": "user_id",
},
"bearer": {
"token": "token",
"secret_id": "secret_id",
},
"query": {
"key": "key",
"secret_id": "secret_id",
"value": "value",
},
},
"host": "host",
},
{
"auth": {
"basic": {
"password": "password",
"secret_id": "secret_id",
"user_id": "user_id",
},
"bearer": {
"token": "token",
"secret_id": "secret_id",
},
"query": {
"key": "key",
"secret_id": "secret_id",
"value": "value",
},
},
"host": "host",
},
}
]
},
input={},
Expand Down