diff options
Diffstat (limited to 'spec/frontend/registry/explorer/mock_data.js')
-rw-r--r-- | spec/frontend/registry/explorer/mock_data.js | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/spec/frontend/registry/explorer/mock_data.js b/spec/frontend/registry/explorer/mock_data.js index 309e2ecd9bd..2d8cd4e42bc 100644 --- a/spec/frontend/registry/explorer/mock_data.js +++ b/spec/frontend/registry/explorer/mock_data.js @@ -1,3 +1,11 @@ +export const headers = { + 'X-PER-PAGE': 5, + 'X-PAGE': 1, + 'X-TOTAL': 13, + 'X-TOTAL_PAGES': 1, + 'X-NEXT-PAGE': null, + 'X-PREVIOUS-PAGE': null, +}; export const reposServerResponse = [ { destroy_path: 'path', @@ -36,3 +44,46 @@ export const registryServerResponse = [ created_at: 1505828744434, }, ]; + +export const imagesListResponse = { + data: [ + { + path: 'foo', + location: 'location', + destroy_path: 'path', + }, + { + path: 'bar', + location: 'location-2', + destroy_path: 'path-2', + }, + ], + headers, +}; + +export const tagsListResponse = { + data: [ + { + tag: 'centos6', + revision: 'b118ab5b0e90b7cb5127db31d5321ac14961d097516a8e0e72084b6cdc783b43', + short_revision: 'b118ab5b0', + size: 19, + layers: 10, + location: 'location', + path: 'bar', + created_at: 1505828744434, + destroy_path: 'path', + }, + { + tag: 'test-image', + revision: 'b969de599faea2b3d9b6605a8b0897261c571acaa36db1bdc7349b5775b4e0b4', + short_revision: 'b969de599', + size: 19, + layers: 10, + path: 'foo', + location: 'location-2', + created_at: 1505828744434, + }, + ], + headers, +}; |