From 1a560308ba529176f80a56748bb7e2ba67a40d8f Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 7 May 2024 10:56:44 +0200 Subject: [PATCH] Delete commit --- _traefik3_labels.yml.jinja | 4 ++-- tests/test_nitpicking.py | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/_traefik3_labels.yml.jinja b/_traefik3_labels.yml.jinja index 4da3f6cd..d5bdf030 100644 --- a/_traefik3_labels.yml.jinja +++ b/_traefik3_labels.yml.jinja @@ -10,8 +10,8 @@ {%- endif %} {%- if paths -%} {{ path_rule(paths) }} - {%- endif %} - ) + {%- endif -%} + ) {%- endif %} {%- endmacro %} diff --git a/tests/test_nitpicking.py b/tests/test_nitpicking.py index de059e23..5f98c4c6 100644 --- a/tests/test_nitpicking.py +++ b/tests/test_nitpicking.py @@ -176,6 +176,12 @@ def test_cidr_whitelist_rules( pre_commit("run", "-a", retcode=None) dc_prod = DockerClient(compose_files=["prod.yaml"]) dc_test = DockerClient(compose_files=["test.yaml"]) + # Abre y lee el contenido de prod.yaml + with open("prod.yaml") as file: + content = file.read() + + # Imprime el contenido leĆ­do + print(content) prod_config = dc_prod.compose.config() test_config = dc_test.compose.config() # Assert prod.yaml