You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/19 22:18:32 UTC
[GitHub] [airflow] dimberman edited a comment on issue #7761: [AIRFLOW-7086]
/dags/paused should be a PUT
dimberman edited a comment on issue #7761: [AIRFLOW-7086] /dags/paused should be a PUT
URL: https://github.com/apache/airflow/pull/7761#issuecomment-601443324
@ashb do you have any idea why the k8s test is failing? It seems that the endpoint is returning a 404 so I'm trying to figure out if there's somewhere else I need to change as well
```
---------------------------- Captured stdout setup -----------------------------
Skipping db initialization. Tests do not require database
tests/runtime/kubernetes/test_kubernetes_executor.py F
____ TestKubernetesExecutor.test_integration_run_dag_with_scheduler_failure ____
self = <tests.runtime.kubernetes.test_kubernetes_executor.TestKubernetesExecutor testMethod=test_integration_run_dag_with_scheduler_failure>
def test_integration_run_dag_with_scheduler_failure(self):
host = KUBERNETES_HOST
dag_id = 'example_kubernetes_executor_config'
> result_json = self.start_dag(dag_id=dag_id, host=host)
tests/runtime/kubernetes/test_kubernetes_executor.py:209:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/runtime/kubernetes/test_kubernetes_executor.py:155: in start_dag
.format(result=result_json))
E AssertionError: 400 != 200 : Could not enable DAG: <Response [400]>
```
Here is the code
```
result = self.session.put(
'http://{host}/api/experimental/'
'dags/{dag_id}/pause/false'.format(host=host, dag_id=dag_id)
)
try:
result_json = result.json()
except ValueError:
result_json = str(result)
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services