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

Not allow GET requests for URL handlers that change state on the server side #183

Conversation

Jeyaprakash-NK
Copy link
Collaborator

bigQuerySearch handler and downloadOutput handler changed from GET to POST

Copy link
Contributor

@ojarjur ojarjur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to get the tests passing; I added comments about what I think the required fixes are.

@@ -183,6 +183,7 @@ async def mock_config(config_field):
"system": mock_system,
"type": mock_type,
},
method="POST",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add allow_nonstandard_methods=True, here in order to get the test to pass.

@@ -129,6 +129,7 @@ async def mock_list_dag_run_task(*args, **kwargs):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add allow_nonstandard_methods=True, here, and in all the similar lines below, in order to get the test to pass.

@ojarjur ojarjur merged commit 47ae4d1 into GoogleCloudDataproc:main Sep 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants