Commit 657664a2 authored by Rémy Coutable's avatar Rémy Coutable Committed by Dan Davison

e2e: Raise an error if the API response doesn't have the expected field

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 9d425085
......@@ -65,6 +65,9 @@ module QA
deleted_pipeline = pipeline
!pipeline.empty?
end
raise "Pipeline response does not have a 'message' key: #{deleted_pipeline}" unless deleted_pipeline&.key?('message')
expect(deleted_pipeline['message'].downcase).to have_content('404 not found')
end
end
......
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