amoghrajesh commented on code in PR #44449:
URL: https://github.com/apache/airflow/pull/44449#discussion_r1861964376
##########
tests/api_fastapi/execution_api/routes/test_variables.py:
##########
@@ -75,3 +86,60 @@ def test_variable_get_access_denied(self, client):
"message": "Task does not have access to variable key1",
}
}
+
+
+class TestPostVariable(TestVariableEndpoint):
+ def test_should_create_variable(self, client, session):
+ payload = {"key": "var_create", "value": "{}"}
+ response = client.post(
+ "/execution/variables",
+ json=payload,
+ )
+ assert response.status_code == 200
+ response = client.get(f"/execution/variables/{payload['key']}")
Review Comment:
Yeah that makes sense. This is testing another API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]