Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit 1506efa0 authored by Lionel Walter's avatar Lionel Walter
Browse files

Fix test

parent b32b5369
Pipeline #10479 failed with stages
in 17 minutes and 3 seconds
......@@ -20,7 +20,7 @@ def test_job_start(client):
jobs_json = jobs_response.get_json()
number_of_jobs_before = len(jobs_json)
response = client.post('/v1/helm/123/456/789/text-file-validation/start', json={
response = client.post('/v1/job/123/456/789/text-file-validation/start', json={
"job-parameters": {
"appDirectory": "AFZ/AfZ-Becker-Audiovisuals"
}
......@@ -34,7 +34,7 @@ def test_job_start(client):
assert number_of_jobs_after == number_of_jobs_before + 1
# try to start a second job with same job id
response = client.post('/v1/helm/123/456/789/text-file-validation/start', json={
response = client.post('/v1/job/123/456/789/text-file-validation/start', json={
"job-parameters": {
"appDirectory": "AFZ/AfZ-Becker-Audiovisuals"
}
......@@ -42,7 +42,7 @@ def test_job_start(client):
assert response.status_code == 500
# use invalid chart name
response = client.post('/v1/helm/123/456/789/TESTTEST/start', json={
response = client.post('/v1/job/123/456/789/TESTTEST/start', json={
"job-parameters": {
"appDirectory": "AFZ/AfZ-Becker-Audiovisuals",
}
......@@ -59,13 +59,13 @@ def test_get_job(client):
def test_job_stop(client):
response = client.delete('/v1/helm/789/text-file-validation/stop')
response = client.delete('/v1/job/789/text-file-validation/stop')
assert response.status_code == 200
response = client.delete('/v1/helm/789/jdskfhjkdshjkewhrjkewrjkewhjkhrjkewhr/stop')
response = client.delete('/v1/job/789/jdskfhjkdshjkewhrjkewrjkewhjkhrjkewhr/stop')
assert response.status_code == 500
response = client.get('/v1/helm/789/text-file-validation')
response = client.get('/v1/job/789/text-file-validation')
assert response.status_code == 404
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment