diff options
Diffstat (limited to 'spec/contracts/consumer/endpoints/project')
-rw-r--r-- | spec/contracts/consumer/endpoints/project/merge_requests.js | 34 | ||||
-rw-r--r-- | spec/contracts/consumer/endpoints/project/pipelines.js | 16 |
2 files changed, 0 insertions, 50 deletions
diff --git a/spec/contracts/consumer/endpoints/project/merge_requests.js b/spec/contracts/consumer/endpoints/project/merge_requests.js deleted file mode 100644 index 38773e5fb10..00000000000 --- a/spec/contracts/consumer/endpoints/project/merge_requests.js +++ /dev/null @@ -1,34 +0,0 @@ -import { request } from 'axios'; - -export function getDiffsMetadata(endpoint) { - const { url } = endpoint; - - return request({ - method: 'GET', - baseURL: url, - url: '/gitlab-org/gitlab-qa/-/merge_requests/1/diffs_metadata.json', - headers: { Accept: '*/*' }, - }).then((response) => response.data); -} - -export function getDiscussions(endpoint) { - const { url } = endpoint; - - return request({ - method: 'GET', - baseURL: url, - url: '/gitlab-org/gitlab-qa/-/merge_requests/1/discussions.json', - headers: { Accept: '*/*' }, - }).then((response) => response.data); -} - -export function getDiffsBatch(endpoint) { - const { url } = endpoint; - - return request({ - method: 'GET', - baseURL: url, - url: '/gitlab-org/gitlab-qa/-/merge_requests/1/diffs_batch.json?page=0', - headers: { Accept: '*/*' }, - }).then((response) => response.data); -} diff --git a/spec/contracts/consumer/endpoints/project/pipelines.js b/spec/contracts/consumer/endpoints/project/pipelines.js deleted file mode 100644 index 33758dee75b..00000000000 --- a/spec/contracts/consumer/endpoints/project/pipelines.js +++ /dev/null @@ -1,16 +0,0 @@ -import { request } from 'axios'; - -export function getProjectPipelines(endpoint) { - const { url } = endpoint; - - return request({ - method: 'GET', - baseURL: url, - url: '/gitlab-org/gitlab-qa/-/pipelines.json', - headers: { Accept: '*/*' }, - params: { - scope: 'all', - page: 1, - }, - }).then((response) => response.data); -} |