Commit 3930eb34 authored by Jan Kiene's avatar Jan Kiene
Browse files

correct test commands

parent 9fbe5f0d
Loading
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -40,14 +40,10 @@ check-merged-ci-config-is-valid:

    # for testing
    - |
      curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml"
      curl -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/$project_id/repository/files/.gitlab-ci.yml?ref=main"

    - |
      curl -X POST \
        -H "Content-Type: application/json" \
        -H "JOB-TOKEN: $CI_JOB_TOKEN" \
        --data '{"content": "stages: [test]\n"}' \
        "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true"
      curl -X POST -H "Content-Type: application/json" -H "JOB-TOKEN: $CI_JOB_TOKEN" --data '{"content": "stages: [test]\n"}' "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true&ref=main"

    # get the CI file from the respective repo without lengthy clone
    - test_yml="$REPO-ci.yml"