From 7da7fa57d03ea15b52530ba41333828128a07ef4 Mon Sep 17 00:00:00 2001 From: Antoine Lambert Date: Thu, 9 Mar 2023 14:20:56 +0100 Subject: [PATCH] bitbucket: Prettify JSON tests data --- .../tests/data/bb_api_repositories_page1.json | 281 ++++++++++-------- .../tests/data/bb_api_repositories_page2.json | 281 ++++++++++-------- 2 files changed, 322 insertions(+), 240 deletions(-) diff --git a/swh/lister/bitbucket/tests/data/bb_api_repositories_page1.json b/swh/lister/bitbucket/tests/data/bb_api_repositories_page1.json index f6475fd..8c9b59d 100644 --- a/swh/lister/bitbucket/tests/data/bb_api_repositories_page1.json +++ b/swh/lister/bitbucket/tests/data/bb_api_repositories_page1.json @@ -1,124 +1,165 @@ { - "values": [{ - "scm": "git", - "updated_on": "2014-11-16T23:19:16.674082+00:00", - "created_on": "2011-06-06T03:40:09.505792+00:00", - "slug": "xwork", - "links": { - "clone": [{ - "href": "https://bitbucket.org/opensymphony/xwork.git" - }, { - "href": "git@bitbucket.org:opensymphony/xwork.git" - }] + "values": [ + { + "scm": "git", + "updated_on": "2014-11-16T23:19:16.674082+00:00", + "created_on": "2011-06-06T03:40:09.505792+00:00", + "slug": "xwork", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/opensymphony/xwork.git" + }, + { + "href": "git@bitbucket.org:opensymphony/xwork.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2013-08-16T05:17:12.385393+00:00", + "created_on": "2011-06-07T02:25:57.515877+00:00", + "slug": "webwork", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/opensymphony/webwork.git" + }, + { + "href": "git@bitbucket.org:opensymphony/webwork.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2017-02-05T20:25:16.398281+00:00", + "created_on": "2011-06-07T04:13:28.097554+00:00", + "slug": "propertyset", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/opensymphony/propertyset.git" + }, + { + "href": "git@bitbucket.org:opensymphony/propertyset.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2012-07-06T23:05:13.437602+00:00", + "created_on": "2011-06-07T04:15:47.909191+00:00", + "slug": "quartz", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/opensymphony/quartz.git" + }, + { + "href": "git@bitbucket.org:opensymphony/quartz.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2018-02-06T04:36:52.369420+00:00", + "created_on": "2011-06-16T09:16:27.957216+00:00", + "slug": "opup", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/jwalton/opup.git" + }, + { + "href": "git@bitbucket.org:jwalton/opup.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2017-03-19T16:09:30.336053+00:00", + "created_on": "2011-07-08T08:59:53.298617+00:00", + "slug": "git-scripts", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/jwalton/git-scripts.git" + }, + { + "href": "git@bitbucket.org:jwalton/git-scripts.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2015-10-15T17:35:06.978690+00:00", + "created_on": "2011-08-10T00:42:35.509559+00:00", + "slug": "git-tests", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/evzijst/git-tests.git" + }, + { + "href": "git@bitbucket.org:evzijst/git-tests.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2013-07-17T23:08:05.997544+00:00", + "created_on": "2011-08-10T03:48:05.820933+00:00", + "slug": "libgit2", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/brodie/libgit2.git" + }, + { + "href": "git@bitbucket.org:brodie/libgit2.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2013-10-10T23:43:15.183665+00:00", + "created_on": "2011-08-15T05:19:11.022316+00:00", + "slug": "git", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/evzijst/git.git" + }, + { + "href": "git@bitbucket.org:evzijst/git.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2013-06-12T22:42:52.654728+00:00", + "created_on": "2011-08-18T00:17:00.862842+00:00", + "slug": "streams-jira-delete-issue-plugin", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/atlassian_tutorial/streams-jira-delete-issue-plugin.git" + }, + { + "href": "git@bitbucket.org:atlassian_tutorial/streams-jira-delete-issue-plugin.git" + } + ] + } } - }, { - "scm": "git", - "updated_on": "2013-08-16T05:17:12.385393+00:00", - "created_on": "2011-06-07T02:25:57.515877+00:00", - "slug": "webwork", - "links": { - "clone": [{ - "href": "https://bitbucket.org/opensymphony/webwork.git" - }, { - "href": "git@bitbucket.org:opensymphony/webwork.git" - }] - } - }, { - "scm": "git", - "updated_on": "2017-02-05T20:25:16.398281+00:00", - "created_on": "2011-06-07T04:13:28.097554+00:00", - "slug": "propertyset", - "links": { - "clone": [{ - "href": "https://bitbucket.org/opensymphony/propertyset.git" - }, { - "href": "git@bitbucket.org:opensymphony/propertyset.git" - }] - } - }, { - "scm": "git", - "updated_on": "2012-07-06T23:05:13.437602+00:00", - "created_on": "2011-06-07T04:15:47.909191+00:00", - "slug": "quartz", - "links": { - "clone": [{ - "href": "https://bitbucket.org/opensymphony/quartz.git" - }, { - "href": "git@bitbucket.org:opensymphony/quartz.git" - }] - } - }, { - "scm": "git", - "updated_on": "2018-02-06T04:36:52.369420+00:00", - "created_on": "2011-06-16T09:16:27.957216+00:00", - "slug": "opup", - "links": { - "clone": [{ - "href": "https://bitbucket.org/jwalton/opup.git" - }, { - "href": "git@bitbucket.org:jwalton/opup.git" - }] - } - }, { - "scm": "git", - "updated_on": "2017-03-19T16:09:30.336053+00:00", - "created_on": "2011-07-08T08:59:53.298617+00:00", - "slug": "git-scripts", - "links": { - "clone": [{ - "href": "https://bitbucket.org/jwalton/git-scripts.git" - }, { - "href": "git@bitbucket.org:jwalton/git-scripts.git" - }] - } - }, { - "scm": "git", - "updated_on": "2015-10-15T17:35:06.978690+00:00", - "created_on": "2011-08-10T00:42:35.509559+00:00", - "slug": "git-tests", - "links": { - "clone": [{ - "href": "https://bitbucket.org/evzijst/git-tests.git" - }, { - "href": "git@bitbucket.org:evzijst/git-tests.git" - }] - } - }, { - "scm": "git", - "updated_on": "2013-07-17T23:08:05.997544+00:00", - "created_on": "2011-08-10T03:48:05.820933+00:00", - "slug": "libgit2", - "links": { - "clone": [{ - "href": "https://bitbucket.org/brodie/libgit2.git" - }, { - "href": "git@bitbucket.org:brodie/libgit2.git" - }] - } - }, { - "scm": "git", - "updated_on": "2013-10-10T23:43:15.183665+00:00", - "created_on": "2011-08-15T05:19:11.022316+00:00", - "slug": "git", - "links": { - "clone": [{ - "href": "https://bitbucket.org/evzijst/git.git" - }, { - "href": "git@bitbucket.org:evzijst/git.git" - }] - } - }, { - "scm": "git", - "updated_on": "2013-06-12T22:42:52.654728+00:00", - "created_on": "2011-08-18T00:17:00.862842+00:00", - "slug": "streams-jira-delete-issue-plugin", - "links": { - "clone": [{ - "href": "https://bitbucket.org/atlassian_tutorial/streams-jira-delete-issue-plugin.git" - }, { - "href": "git@bitbucket.org:atlassian_tutorial/streams-jira-delete-issue-plugin.git" - }] - } - }], + ], "next": "https://api.bitbucket.org/2.0/repositories?pagelen=10&after=2011-09-03T12%3A33%3A16.028393%2B00%3A00&fields=next%2Cvalues.links.clone.href%2Cvalues.slug%2Cvalues.scm%2Cvalues.updated_on%2Cvalues.created_on" } \ No newline at end of file diff --git a/swh/lister/bitbucket/tests/data/bb_api_repositories_page2.json b/swh/lister/bitbucket/tests/data/bb_api_repositories_page2.json index 13e67c5..1e4566d 100644 --- a/swh/lister/bitbucket/tests/data/bb_api_repositories_page2.json +++ b/swh/lister/bitbucket/tests/data/bb_api_repositories_page2.json @@ -1,123 +1,164 @@ { - "values": [{ - "scm": "git", - "updated_on": "2012-08-08T21:49:39.837528+00:00", - "created_on": "2011-09-03T12:33:16.028393+00:00", - "slug": "jreversepro", - "links": { - "clone": [{ - "href": "https://bitbucket.org/puffnfresh/jreversepro.git" - }, { - "href": "git@bitbucket.org:puffnfresh/jreversepro.git" - }] + "values": [ + { + "scm": "git", + "updated_on": "2012-08-08T21:49:39.837528+00:00", + "created_on": "2011-09-03T12:33:16.028393+00:00", + "slug": "jreversepro", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/puffnfresh/jreversepro.git" + }, + { + "href": "git@bitbucket.org:puffnfresh/jreversepro.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2012-07-24T08:11:00.229299+00:00", + "created_on": "2011-09-08T01:43:21.182004+00:00", + "slug": "jira4-compat", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/mrdon/jira4-compat.git" + }, + { + "href": "git@bitbucket.org:mrdon/jira4-compat.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2019-03-29T16:07:35.214957+00:00", + "created_on": "2011-09-12T20:21:47.109184+00:00", + "slug": "chrome-confluence-activity-stream", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/rmanalan/chrome-confluence-activity-stream.git" + }, + { + "href": "git@bitbucket.org:rmanalan/chrome-confluence-activity-stream.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2014-03-31T14:30:43.850637+00:00", + "created_on": "2011-09-14T05:21:02.811713+00:00", + "slug": "anode", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/tarkasteve/anode.git" + }, + { + "href": "git@bitbucket.org:tarkasteve/anode.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2011-11-02T07:45:17.681629+00:00", + "created_on": "2011-09-20T04:27:56.852255+00:00", + "slug": "pac-release-plugin", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/jschumacher/pac-release-plugin.git" + }, + { + "href": "git@bitbucket.org:jschumacher/pac-release-plugin.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2012-07-27T00:54:30.098265+00:00", + "created_on": "2011-09-21T00:05:50.970472+00:00", + "slug": "metadata-confluence-plugin", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/jwalton/metadata-confluence-plugin.git" + }, + { + "href": "git@bitbucket.org:jwalton/metadata-confluence-plugin.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2014-01-18T05:28:48.832287+00:00", + "created_on": "2011-09-21T22:05:29.955410+00:00", + "slug": "coffee-script", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/detkin/coffee-script.git" + }, + { + "href": "git@bitbucket.org:detkin/coffee-script.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2012-07-17T23:32:25.879023+00:00", + "created_on": "2011-09-27T08:37:17.132670+00:00", + "slug": "taleo-link-fix", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/christo/taleo-link-fix.git" + }, + { + "href": "git@bitbucket.org:christo/taleo-link-fix.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2012-06-26T22:55:05.634860+00:00", + "created_on": "2011-09-27T21:10:47.586400+00:00", + "slug": "bdoc", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/rmanalan/bdoc.git" + }, + { + "href": "git@bitbucket.org:rmanalan/bdoc.git" + } + ] + } + }, + { + "scm": "git", + "updated_on": "2020-04-20T18:16:50.540634+00:00", + "created_on": "2011-09-29T23:36:49.719055+00:00", + "slug": "git", + "links": { + "clone": [ + { + "href": "https://bitbucket.org/mirror/git.git" + }, + { + "href": "git@bitbucket.org:mirror/git.git" + } + ] + } } - }, { - "scm": "git", - "updated_on": "2012-07-24T08:11:00.229299+00:00", - "created_on": "2011-09-08T01:43:21.182004+00:00", - "slug": "jira4-compat", - "links": { - "clone": [{ - "href": "https://bitbucket.org/mrdon/jira4-compat.git" - }, { - "href": "git@bitbucket.org:mrdon/jira4-compat.git" - }] - } - }, { - "scm": "git", - "updated_on": "2019-03-29T16:07:35.214957+00:00", - "created_on": "2011-09-12T20:21:47.109184+00:00", - "slug": "chrome-confluence-activity-stream", - "links": { - "clone": [{ - "href": "https://bitbucket.org/rmanalan/chrome-confluence-activity-stream.git" - }, { - "href": "git@bitbucket.org:rmanalan/chrome-confluence-activity-stream.git" - }] - } - }, { - "scm": "git", - "updated_on": "2014-03-31T14:30:43.850637+00:00", - "created_on": "2011-09-14T05:21:02.811713+00:00", - "slug": "anode", - "links": { - "clone": [{ - "href": "https://bitbucket.org/tarkasteve/anode.git" - }, { - "href": "git@bitbucket.org:tarkasteve/anode.git" - }] - } - }, { - "scm": "git", - "updated_on": "2011-11-02T07:45:17.681629+00:00", - "created_on": "2011-09-20T04:27:56.852255+00:00", - "slug": "pac-release-plugin", - "links": { - "clone": [{ - "href": "https://bitbucket.org/jschumacher/pac-release-plugin.git" - }, { - "href": "git@bitbucket.org:jschumacher/pac-release-plugin.git" - }] - } - }, { - "scm": "git", - "updated_on": "2012-07-27T00:54:30.098265+00:00", - "created_on": "2011-09-21T00:05:50.970472+00:00", - "slug": "metadata-confluence-plugin", - "links": { - "clone": [{ - "href": "https://bitbucket.org/jwalton/metadata-confluence-plugin.git" - }, { - "href": "git@bitbucket.org:jwalton/metadata-confluence-plugin.git" - }] - } - }, { - "scm": "git", - "updated_on": "2014-01-18T05:28:48.832287+00:00", - "created_on": "2011-09-21T22:05:29.955410+00:00", - "slug": "coffee-script", - "links": { - "clone": [{ - "href": "https://bitbucket.org/detkin/coffee-script.git" - }, { - "href": "git@bitbucket.org:detkin/coffee-script.git" - }] - } - }, { - "scm": "git", - "updated_on": "2012-07-17T23:32:25.879023+00:00", - "created_on": "2011-09-27T08:37:17.132670+00:00", - "slug": "taleo-link-fix", - "links": { - "clone": [{ - "href": "https://bitbucket.org/christo/taleo-link-fix.git" - }, { - "href": "git@bitbucket.org:christo/taleo-link-fix.git" - }] - } - }, { - "scm": "git", - "updated_on": "2012-06-26T22:55:05.634860+00:00", - "created_on": "2011-09-27T21:10:47.586400+00:00", - "slug": "bdoc", - "links": { - "clone": [{ - "href": "https://bitbucket.org/rmanalan/bdoc.git" - }, { - "href": "git@bitbucket.org:rmanalan/bdoc.git" - }] - } - }, { - "scm": "git", - "updated_on": "2020-04-20T18:16:50.540634+00:00", - "created_on": "2011-09-29T23:36:49.719055+00:00", - "slug": "git", - "links": { - "clone": [{ - "href": "https://bitbucket.org/mirror/git.git" - }, { - "href": "git@bitbucket.org:mirror/git.git" - }] - } - }] + ] } \ No newline at end of file