diff --git a/.github/workflows/pull-request-master-backoffice.yml b/.github/workflows/pull-request-master-backoffice.yml index 4055345d8..bd67f8242 100644 --- a/.github/workflows/pull-request-master-backoffice.yml +++ b/.github/workflows/pull-request-master-backoffice.yml @@ -5,7 +5,6 @@ on: branches: [main] paths: - 'backoffice-repo/backoffice/**' - - 'backoffice-repo/docker-compose.yaml' jobs: lint: diff --git a/.github/workflows/pull-request-master-workflows.yml b/.github/workflows/pull-request-master-workflows.yml index 27af844e9..75c1cad0b 100644 --- a/.github/workflows/pull-request-master-workflows.yml +++ b/.github/workflows/pull-request-master-workflows.yml @@ -5,7 +5,6 @@ on: branches: [main] paths: - "backoffice-repo/workflows/**" - - "backoffice-repo/docker-compose.yaml" jobs: lint: uses: ./.github/workflows/lint.yml diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag.yaml index 4ffd90a21..788e10038 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' @@ -87,7 +87,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_initialization_dag' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag_runs.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag_runs.yaml index f997984a7..7c0974715 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag_runs.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_delete_workflow_dag_runs.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -51,7 +51,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -88,7 +88,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -120,7 +120,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -154,7 +154,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' @@ -184,7 +184,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_initialization_dag' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_fetch_data_workflow_dag.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_fetch_data_workflow_dag.yaml index d1ab5baf3..03045f9b8 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_fetch_data_workflow_dag.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_fetch_data_workflow_dag.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -54,7 +54,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -95,7 +95,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -129,7 +129,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -165,7 +165,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_executed_dags.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_executed_dags.yaml index da907575d..45e12af48 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_executed_dags.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_executed_dags.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -92,7 +92,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -162,7 +162,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_failed_dag.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_failed_dag.yaml index c7a354fa1..0a1d1d41e 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_failed_dag.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_find_failed_dag.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -93,7 +93,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks.yaml index 6d156f843..bf15c4e0c 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -93,7 +93,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -164,7 +164,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/clearTaskInstances + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/clearTaskInstances response: body: string: "{\n \"task_instances\": [\n {\n \"dag_id\": \"author_create_initialization_dag\",\n @@ -209,7 +209,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks_no_tasks.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks_no_tasks.yaml index 5f767dd5a..005b231b0 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks_no_tasks.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_failed_tasks_no_tasks.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -93,7 +93,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_workflow_dags.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_workflow_dags.yaml index 519969143..8457e91b3 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_workflow_dags.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_restart_workflow_dags.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -54,7 +54,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -95,7 +95,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -129,7 +129,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -163,7 +163,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -204,7 +204,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -238,7 +238,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -274,7 +274,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' @@ -309,7 +309,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -351,7 +351,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_trigger_airflow_dag.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_trigger_airflow_dag.yaml index 9fbb4d223..393aa1ae3 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_trigger_airflow_dag.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAirflowUtils.test_trigger_airflow_dag.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000001\"\n @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000001 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_accept_author.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_accept_author.yaml index f360ebca4..9316c17e5 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_accept_author.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_accept_author.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"create_ticket\": true,\n \"workflow_id\": @@ -97,7 +97,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -129,7 +129,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_create_author.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_create_author.yaml index 8839ffaef..76f2f5c1e 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_create_author.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_create_author.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -58,7 +58,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"alternate_name\": \"NAME\",\n \"display_name\": @@ -101,7 +101,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_reject_author.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_reject_author.yaml index 2c88c57b7..f28f4f84c 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_reject_author.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_reject_author.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -56,7 +56,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"create_ticket\": true,\n \"workflow_id\": @@ -97,7 +97,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -129,7 +129,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_a_task.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_a_task.yaml index 8f82ba2a6..51c363e3d 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_a_task.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_a_task.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -53,7 +53,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -92,7 +92,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -162,7 +162,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -195,7 +195,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -236,7 +236,7 @@ interactions: Content-Type: - application/json method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_full_dagrun.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_full_dagrun.yaml index f871d9af8..891858855 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_full_dagrun.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_full_dagrun.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -54,7 +54,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -95,7 +95,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -129,7 +129,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -163,7 +163,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -204,7 +204,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -238,7 +238,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -274,7 +274,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -309,7 +309,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -351,7 +351,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_with_params.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_with_params.yaml index 6bbd86139..7d556d251 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_with_params.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_restart_with_params.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -54,7 +54,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -94,7 +94,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -128,7 +128,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -162,7 +162,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -202,7 +202,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -236,7 +236,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -272,7 +272,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000000\"\n @@ -349,7 +349,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_invalid_schema_record.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_invalid_schema_record.yaml index a51fff765..57b7c0f47 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_invalid_schema_record.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_invalid_schema_record.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -56,7 +56,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_no_schema_record.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_no_schema_record.yaml index e51d80b62..9054eac15 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_no_schema_record.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_no_schema_record.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -56,7 +56,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_not_valid_record.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_not_valid_record.yaml index 341d0dc2a..c4ed3b08c 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_not_valid_record.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_not_valid_record.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -56,7 +56,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_valid_record.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_valid_record.yaml index a93728d00..c7cf153ae 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_valid_record.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestAuthorWorkflowViewSet.test_validate_valid_record.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"data\": {\n \"test\": \"test\"\n },\n @@ -56,7 +56,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000000 response: body: string: '' diff --git a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestWorkflowViewSet.test_delete.yaml b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestWorkflowViewSet.test_delete.yaml index 73499d6fb..94751c020 100644 --- a/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestWorkflowViewSet.test_delete.yaml +++ b/backoffice-repo/backoffice/backoffice/workflows/tests/cassettes/TestWorkflowViewSet.test_delete.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json method: POST - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000002\"\n @@ -51,7 +51,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000002\"\n @@ -88,7 +88,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -120,7 +120,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -152,7 +152,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"conf\": {\n \"workflow_id\": \"00000000-0000-0000-0000-000000000002\"\n @@ -189,7 +189,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -221,7 +221,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' @@ -255,7 +255,7 @@ interactions: Content-Length: - '0' method: DELETE - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: '' @@ -283,7 +283,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_initialization_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_initialization_dag' @@ -315,7 +315,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_approved_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_approved_dag' @@ -347,7 +347,7 @@ interactions: Connection: - keep-alive method: GET - uri: http://airflow-webserver:8080/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 + uri: http://airflow-webserver:8070/api/v1/dags/author_create_rejected_dag/dagRuns/00000000-0000-0000-0000-000000000002 response: body: string: "{\n \"detail\": \"DAGRun with DAG ID: 'author_create_rejected_dag' diff --git a/backoffice-repo/docker-compose.yaml b/backoffice-repo/docker-compose.yaml new file mode 100644 index 000000000..200c0d50f --- /dev/null +++ b/backoffice-repo/docker-compose.yaml @@ -0,0 +1,369 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2024 CERN. +# +# inspirehep is free software; you can redistribute it and/or modify it under +# the terms of the MIT License; see LICENSE file for more details. + +# Core for e2e and local development + +# -*- coding: utf-8 -*- +# +# Copyright (C) 2019 CERN. +# +# inspirehep is free software; you can redistribute it and/or modify it under +# the terms of the MIT License; see LICENSE file for more details. + +# Core for e2e and local development + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# Basic Airflow cluster configuration for CeleryExecutor with Redis and PostgreSQL. +# +# WARNING: This configuration is for local development. Do not use it in a production deployment. +# +# This configuration supports basic configuration using environment variables or an .env file +# The following variables are supported: +# +# AIRFLOW_IMAGE_NAME - Docker image name used to run Airflow. +# Default: apache/airflow:2.8.3 +# AIRFLOW_UID - User ID in Airflow containers +# Default: 50000 +# AIRFLOW_PROJ_DIR - Base path to which all the files will be volumed. +# Default: . +# Those configurations are useful mostly in case of standalone testing/running Airflow in test/try-out mode +# +# _AIRFLOW_WWW_USER_USERNAME - Username for the administrator account (if requested). +# Default: airflow +# _AIRFLOW_WWW_USER_PASSWORD - Password for the administrator account (if requested). +# Default: airflow +# _PIP_ADDITIONAL_REQUIREMENTS - Additional PIP requirements to add when starting all containers. +# Use this option ONLY for quick checks. Installing requirements at container +# startup is done EVERY TIME the service is started. +# A better way is to build a custom image or extend the official image +# as described in https://airflow.apache.org/docs/docker-stack/build.html. +# Default: '' +# +# Feel free to modify this file to suit your needs. +--- +x-airflow-common: &airflow-common + # In order to add custom dependencies or upgrade provider packages you can use your extended image. + # Comment the image line, place your Dockerfile in the directory where you placed the docker-compose.yaml + # and uncomment the "build" line below, Then run `docker-compose build` to build the images. + build: + context: backoffice-repo/workflows + dockerfile: Dockerfile.local + environment: &airflow-common-env + AIRFLOW__CORE__EXECUTOR: CeleryExecutor + AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://inspirehep:inspirehep@db/inspirehep + AIRFLOW__CELERY__RESULT_BACKEND: db+postgresql://inspirehep:inspirehep@db/inspirehep + AIRFLOW__CELERY__BROKER_URL: redis://:@cache:6379/0 + AIRFLOW__CORE__FERNET_KEY: '' + AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'false' + AIRFLOW__CORE__LOAD_EXAMPLES: 'false' + AIRFLOW__API__AUTH_BACKENDS: 'airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session' + AIRFLOW__WEBSERVER__RELOAD_ON_PLUGIN_CHANGE: 'true' # used when modifying plugins + # yamllint disable rule:line-length + # Use simple http server on scheduler for health checks + # See https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/check-health.html#scheduler-health-check-server + # yamllint enable rule:line-length + AIRFLOW__SCHEDULER__ENABLE_HEALTH_CHECK: 'true' + # WARNING: Use _PIP_ADDITIONAL_REQUIREMENTS option ONLY for a quick checks + # for other purpose (development, test and especially production usage) build/extend Airflow image. + _PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:-} + volumes: + - ${AIRFLOW_PROJ_DIR:-.}/dags:/opt/airflow/dags + - ${AIRFLOW_PROJ_DIR:-.}/logs:/opt/airflow/logs + - ${AIRFLOW_PROJ_DIR:-.}/config:/opt/airflow/config + - ${AIRFLOW_PROJ_DIR:-.}/plugins:/opt/airflow/plugins + - ${AIRFLOW_PROJ_DIR:-.}/scripts:/opt/airflow/scripts + - ${AIRFLOW_PROJ_DIR:-.}/tests:/opt/airflow/tests + + user: '${AIRFLOW_UID:-50000}:0' + depends_on: &airflow-common-depends-on + cache: + condition: service_healthy + db: + condition: service_healthy + +services: + backoffice-webserver: + build: + context: backoffice-repo/backoffice + dockerfile: Dockerfile + depends_on: + cache: + condition: service_started + db: + condition: service_started + es: + condition: service_healthy + volumes: + - ./backoffice-repo/backoffice:/app:z + env_file: + - ./backoffice-repo/backoffice/.envs/local/.django + - ./backoffice-repo/backoffice/.envs/local/.postgres + ports: + - '8001:8001' + command: sh -c 'poetry run python manage.py migrate && poetry run python manage.py opensearch index rebuild --force && poetry run python manage.py opensearch document index --force && poetry run python manage.py runserver 0.0.0.0:8001' + cache: + extends: + file: docker-compose.services.yml + service: cache + ports: + - '6379:6379' + db: + extends: + file: docker-compose.services.yml + service: db + ports: + - '5432:5432' + command: postgres -c 'max_connections=200' + mq: + extends: + file: docker-compose.services.yml + service: mq + ports: + - '5672:5672' + - '15672:15672' + es: + extends: + file: docker-compose.services.yml + service: es + ports: + - '9200:9200' + ui: + image: inspirehep/nginx:1.19-with-vts + ports: + - '8080:8080' + volumes: + - ./ui/docker/nginx/config/dev.conf:/etc/nginx/conf.d/default.conf + depends_on: + - hep-ui + - hep-web + - record-editor + hep-ui: + build: + context: ui + dockerfile: Dockerfile-local + ports: + - '3000:3000' + volumes: + - './ui/src:/usr/src/app/src' + - './ui/package.json:/usr/src/app/package.json' + - './ui/yarn.lock:/usr/src/app/yarn.lock' + record-editor: + build: + context: record-editor + dockerfile: Dockerfile-local + ports: + - '8081:8081' + volumes: + - ./record-editor/docker/nginx/config/nginx.conf:/etc/nginx/conf.d/default.conf + hep-web: + extends: + file: docker-compose.services.yml + service: app + volumes: + - ./backend:/opt/inspire + ports: + - '8000:8000' + - '7777:7777' + entrypoint: gunicorn + command: --reload -t 99999 -b 0.0.0.0:8000 --access-logfile "-" --error-logfile - inspirehep.wsgi:application + hep-worker: + extends: + file: docker-compose.services.yml + service: app + entrypoint: celery + volumes: + - ./backend:/opt/inspire + command: -A inspirehep.celery worker -l INFO --purge --queues celery,indexer_task,matcher,assign,redirect_references + depends_on: + cache: + condition: service_started + db: + condition: service_started + es: + condition: service_healthy + mq: + condition: service_started + flower: + extends: + file: docker-compose.services.yml + service: flower + ports: + - '5555:5555' + s3: + extends: + file: docker-compose.services.yml + service: s3 + ports: + - '4572:4572' + - '4566:4566' + airflow-webserver: + <<: *airflow-common + command: webserver + ports: + - '8070:8080' + healthcheck: + test: ['CMD', 'curl', '--fail', 'http://localhost:8070/health'] + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s + restart: always + depends_on: + <<: *airflow-common-depends-on + airflow-init: + condition: service_completed_successfully + + airflow-scheduler: + <<: *airflow-common + command: scheduler + healthcheck: + test: ['CMD', 'curl', '--fail', 'http://localhost:8974/health'] + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s + restart: always + depends_on: + <<: *airflow-common-depends-on + airflow-init: + condition: service_completed_successfully + + airflow-worker: + <<: *airflow-common + command: celery worker + healthcheck: + # yamllint disable rule:line-length + test: + - 'CMD-SHELL' + - 'celery --app airflow.providers.celery.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}" || celery --app airflow.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}"' + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s + environment: + <<: *airflow-common-env + # Required to handle warm shutdown of the celery workers properly + # See https://airflow.apache.org/docs/docker-stack/entrypoint.html#signal-propagation + DUMB_INIT_SETSID: '0' + restart: always + depends_on: + <<: *airflow-common-depends-on + airflow-init: + condition: service_completed_successfully + + airflow-triggerer: + <<: *airflow-common + command: triggerer + healthcheck: + test: + [ + 'CMD-SHELL', + 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"', + ] + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s + restart: always + depends_on: + <<: *airflow-common-depends-on + airflow-init: + condition: service_completed_successfully + + airflow-init: + <<: *airflow-common + entrypoint: /bin/bash + # yamllint disable rule:line-length + command: + - -c + - | + if [[ -z "${AIRFLOW_UID}" ]]; then + echo + echo -e "\033[1;33mWARNING!!!: AIRFLOW_UID not set!\e[0m" + echo "If you are on Linux, you SHOULD follow the instructions below to set " + echo "AIRFLOW_UID environment variable, otherwise files will be owned by root." + echo "For other operating systems you can get rid of the warning with manually created .env file:" + echo " See: https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#setting-the-right-airflow-user" + echo + fi + one_meg=1048576 + mem_available=$$(($$(getconf _PHYS_PAGES) * $$(getconf PAGE_SIZE) / one_meg)) + cpus_available=$$(grep -cE 'cpu[0-9]+' /proc/stat) + disk_available=$$(df / | tail -1 | awk '{print $$4}') + warning_resources="false" + if (( mem_available < 4000 )) ; then + echo + echo -e "\033[1;33mWARNING!!!: Not enough memory available for Docker.\e[0m" + echo "At least 4GB of memory required. You have $$(numfmt --to iec $$((mem_available * one_meg)))" + echo + warning_resources="true" + fi + if (( cpus_available < 2 )); then + echo + echo -e "\033[1;33mWARNING!!!: Not enough CPUS available for Docker.\e[0m" + echo "At least 2 CPUs recommended. You have $${cpus_available}" + echo + warning_resources="true" + fi + if (( disk_available < one_meg * 10 )); then + echo + echo -e "\033[1;33mWARNING!!!: Not enough Disk space available for Docker.\e[0m" + echo "At least 10 GBs recommended. You have $$(numfmt --to iec $$((disk_available * 1024 )))" + echo + warning_resources="true" + fi + if [[ $${warning_resources} == "true" ]]; then + echo + echo -e "\033[1;33mWARNING!!!: You have not enough resources to run Airflow (see above)!\e[0m" + echo "Please follow the instructions to increase amount of resources available:" + echo " https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#before-you-begin" + echo + fi + mkdir -p /sources/logs /sources/dags /sources/plugins + chown -R "${AIRFLOW_UID}:0" /sources/{logs,dags,plugins} + exec /entrypoint airflow version + # yamllint enable rule:line-length + environment: + <<: *airflow-common-env + _AIRFLOW_DB_MIGRATE: 'true' + _AIRFLOW_WWW_USER_CREATE: 'true' + _AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow} + _AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow} + _PIP_ADDITIONAL_REQUIREMENTS: '' + user: '0:0' + volumes: + - ${AIRFLOW_PROJ_DIR:-.}:/sources + + airflow-cli: + <<: *airflow-common + profiles: + - debug + environment: + <<: *airflow-common-env + CONNECTION_CHECK_MAX_COUNT: '0' + # Workaround for entrypoint issue. See: https://github.com/apache/airflow/issues/16252 + command: + - bash + - -c + - airflow