Skip to content

Commit

Permalink
Add tests for GitHubSource packages
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Mar 25, 2024
1 parent dd607b0 commit e188f56
Show file tree
Hide file tree
Showing 172 changed files with 45,884 additions and 131 deletions.
File renamed without changes.
1,586 changes: 1,586 additions & 0 deletions tests/data/package/github/avahi-expected.json

Large diffs are not rendered by default.

130 changes: 130 additions & 0 deletions tests/data/package/github/avahi/github_mock_data_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"id": 27156301,
"node_id": "MDEwOlJlcG9zaXRvcnkyNzE1NjMwMQ==",
"name": "avahi",
"full_name": "avahi/avahi",
"private": false,
"owner": {
"login": "avahi",
"id": 145901603,
"node_id": "O_kgDOCLJIIw",
"avatar_url": "https://avatars.githubusercontent.com/u/145901603?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/avahi",
"html_url": "https://github.com/avahi",
"followers_url": "https://api.github.com/users/avahi/followers",
"following_url": "https://api.github.com/users/avahi/following{/other_user}",
"gists_url": "https://api.github.com/users/avahi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/avahi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avahi/subscriptions",
"organizations_url": "https://api.github.com/users/avahi/orgs",
"repos_url": "https://api.github.com/users/avahi/repos",
"events_url": "https://api.github.com/users/avahi/events{/privacy}",
"received_events_url": "https://api.github.com/users/avahi/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/avahi/avahi",
"description": "Avahi - Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour",
"fork": false,
"url": "https://api.github.com/repos/avahi/avahi",
"forks_url": "https://api.github.com/repos/avahi/avahi/forks",
"keys_url": "https://api.github.com/repos/avahi/avahi/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/avahi/avahi/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/avahi/avahi/teams",
"hooks_url": "https://api.github.com/repos/avahi/avahi/hooks",
"issue_events_url": "https://api.github.com/repos/avahi/avahi/issues/events{/number}",
"events_url": "https://api.github.com/repos/avahi/avahi/events",
"assignees_url": "https://api.github.com/repos/avahi/avahi/assignees{/user}",
"branches_url": "https://api.github.com/repos/avahi/avahi/branches{/branch}",
"tags_url": "https://api.github.com/repos/avahi/avahi/tags",
"blobs_url": "https://api.github.com/repos/avahi/avahi/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/avahi/avahi/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/avahi/avahi/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/avahi/avahi/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/avahi/avahi/statuses/{sha}",
"languages_url": "https://api.github.com/repos/avahi/avahi/languages",
"stargazers_url": "https://api.github.com/repos/avahi/avahi/stargazers",
"contributors_url": "https://api.github.com/repos/avahi/avahi/contributors",
"subscribers_url": "https://api.github.com/repos/avahi/avahi/subscribers",
"subscription_url": "https://api.github.com/repos/avahi/avahi/subscription",
"commits_url": "https://api.github.com/repos/avahi/avahi/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/avahi/avahi/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/avahi/avahi/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/avahi/avahi/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/avahi/avahi/contents/{+path}",
"compare_url": "https://api.github.com/repos/avahi/avahi/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/avahi/avahi/merges",
"archive_url": "https://api.github.com/repos/avahi/avahi/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/avahi/avahi/downloads",
"issues_url": "https://api.github.com/repos/avahi/avahi/issues{/number}",
"pulls_url": "https://api.github.com/repos/avahi/avahi/pulls{/number}",
"milestones_url": "https://api.github.com/repos/avahi/avahi/milestones{/number}",
"notifications_url": "https://api.github.com/repos/avahi/avahi/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/avahi/avahi/labels{/name}",
"releases_url": "https://api.github.com/repos/avahi/avahi/releases{/id}",
"deployments_url": "https://api.github.com/repos/avahi/avahi/deployments",
"created_at": "2014-11-26T02:35:47Z",
"updated_at": "2024-03-21T11:22:50Z",
"pushed_at": "2024-03-24T19:38:13Z",
"git_url": "git://github.com/avahi/avahi.git",
"ssh_url": "[email protected]:avahi/avahi.git",
"clone_url": "https://github.com/avahi/avahi.git",
"svn_url": "https://github.com/avahi/avahi",
"homepage": "http://www.avahi.org",
"size": 4419,
"stargazers_count": 1067,
"watchers_count": 1067,
"language": "C",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"has_discussions": false,
"forks_count": 308,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 120,
"license": {
"key": "lgpl-2.1",
"name": "GNU Lesser General Public License v2.1",
"spdx_id": "LGPL-2.1",
"url": "https://api.github.com/licenses/lgpl-2.1",
"node_id": "MDc6TGljZW5zZTEx"
},
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [],
"visibility": "public",
"forks": 308,
"open_issues": 120,
"watchers": 1067,
"default_branch": "master",
"temp_clone_token": null,
"custom_properties": {},
"organization": {
"login": "avahi",
"id": 145901603,
"node_id": "O_kgDOCLJIIw",
"avatar_url": "https://avatars.githubusercontent.com/u/145901603?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/avahi",
"html_url": "https://github.com/avahi",
"followers_url": "https://api.github.com/users/avahi/followers",
"following_url": "https://api.github.com/users/avahi/following{/other_user}",
"gists_url": "https://api.github.com/users/avahi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/avahi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avahi/subscriptions",
"organizations_url": "https://api.github.com/users/avahi/orgs",
"repos_url": "https://api.github.com/users/avahi/repos",
"events_url": "https://api.github.com/users/avahi/events{/privacy}",
"received_events_url": "https://api.github.com/users/avahi/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 308,
"subscribers_count": 52
}
Loading

0 comments on commit e188f56

Please sign in to comment.