diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 15:40:28 +0000 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /spec/frontend/logs/mock_data.js | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) | |
download | gitlab-ce-b595cb0c1dec83de5bdee18284abe86614bed33b.tar.gz |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'spec/frontend/logs/mock_data.js')
-rw-r--r-- | spec/frontend/logs/mock_data.js | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/spec/frontend/logs/mock_data.js b/spec/frontend/logs/mock_data.js deleted file mode 100644 index 14c8f7a2ba2..00000000000 --- a/spec/frontend/logs/mock_data.js +++ /dev/null @@ -1,71 +0,0 @@ -const mockProjectPath = 'root/autodevops-deploy'; - -export const mockEnvName = 'production'; -export const mockEnvironmentsEndpoint = `${mockProjectPath}/environments.json`; -export const mockEnvId = '99'; -export const mockDocumentationPath = '/documentation.md'; -export const mockLogsEndpoint = '/dummy_logs_path.json'; -export const mockCursor = 'MOCK_CURSOR'; -export const mockNextCursor = 'MOCK_NEXT_CURSOR'; - -const makeMockEnvironment = (id, name, advancedQuerying) => ({ - id, - project_path: mockProjectPath, - name, - logs_api_path: mockLogsEndpoint, - enable_advanced_logs_querying: advancedQuerying, -}); - -export const mockEnvironment = makeMockEnvironment(mockEnvId, mockEnvName, true); -export const mockEnvironments = [ - mockEnvironment, - makeMockEnvironment(101, 'staging', false), - makeMockEnvironment(102, 'review/a-feature', false), -]; - -export const mockPodName = 'production-764c58d697-aaaaa'; -export const mockPods = [ - mockPodName, - 'production-764c58d697-bbbbb', - 'production-764c58d697-ccccc', - 'production-764c58d697-ddddd', -]; - -export const mockLogsResult = [ - { - timestamp: '2019-12-13T13:43:18.2760123Z', - message: 'log line 1', - pod: 'foo', - }, - { - timestamp: '2019-12-13T13:43:18.2760123Z', - message: 'log line A', - pod: 'bar', - }, - { - timestamp: '2019-12-13T13:43:26.8420123Z', - message: 'log line 2', - pod: 'foo', - }, - { - timestamp: '2019-12-13T13:43:26.8420123Z', - message: 'log line B', - pod: 'bar', - }, -]; - -export const mockTrace = [ - 'Dec 13 13:43:18.276 | foo | log line 1', - 'Dec 13 13:43:18.276 | bar | log line A', - 'Dec 13 13:43:26.842 | foo | log line 2', - 'Dec 13 13:43:26.842 | bar | log line B', -]; - -export const mockResponse = { - pod_name: mockPodName, - pods: mockPods, - logs: mockLogsResult, - cursor: mockNextCursor, -}; - -export const mockSearch = 'foo +bar'; |