diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11d65e7..b6e56dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,4 @@ jobs: echo -e "Results of the CI pipeline\n" > tests_logs.txt cd tests/ python3 -m pip install -r requirements.txt - python3 -m pytest -v |& tee -a ../tests_logs.txt - # Have the job fail if at least one test failed - - name: Check all tests passed - run: grep -v -q "FAILED" tests_logs.txt + python3 -m pytest -v diff --git a/Dockerfile b/Dockerfile index 94bf34c..8ce80a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # This image is based on a LTS version of SonarQube -FROM sonarqube:9.9.3-community +FROM sonarqube:9.9.4-community LABEL maintainer="CNES CAT Lab" diff --git a/tests/test_docker_cat.py b/tests/test_docker_cat.py index 40c6020..7c9db48 100644 --- a/tests/test_docker_cat.py +++ b/tests/test_docker_cat.py @@ -355,7 +355,7 @@ def test_check_plugins(self): ("Kotlin Code Quality and Security","2.12.0 (build 1956)"), ("PHP Code Quality and Security","3.27.1 (build 9352)"), ("PMD", "3.4.0"), - ("Python Code Quality and Security","3.24 (build 10784)"), + ("Python Code Quality and Security","3.24.1 (build 11916)"), ("Ruby Code Quality and Security","1.11.0 (build 3905)"), ("Scala Code Quality and Security","1.11.0 (build 3905)"), ("ShellCheck Analyzer","2.5.0"), @@ -381,7 +381,7 @@ def test_check_qg(self): """ quality_gates = requests.get(f"{self.CAT_URL}/api/qualitygates/list", auth =("admin", "admin")).json()['qualitygates'] - cnes_quality_gates = [ gate for gate in quality_gates if gate['name'] == "CNES" ] + cnes_quality_gates = [ gate for gate in quality_gates if gate['name'] == "CNES CAYCode FromScratch" ] # Hint: if one of these tests fails, the CNES Quality Gate may not have been added correctly, check the container logs assert cnes_quality_gates # not empty assert cnes_quality_gates[0]['isDefault']