{"action":"created","comment":{"url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/comments/185486127","pull_request_review_id":116883395,"id":185486127,"diff_hunk":"@@ -54,58 +56,129 @@ def tearDown(self):\n     def test_integration(self):\n \n         # Create tenant\n-        # TODO WORKING WITH ISSUES*! [ValueError: Invalid value for `api_key`, must not be `None`]\n+        random_api_key = ''.join(choice(ascii_lowercase) for i in range(4))\n+        random_api_secret = ''.join(choice(ascii_lowercase) for i in range(5))\n         tenant = killbill.api.TenantApi()\n-        body = Tenant(api_key='bob_5', api_secret='lazar_5')\n+        body = Tenant(api_key=random_api_key, api_secret=random_api_secret)\n         tenant.create_tenant(body, 'test')\n \n         # Get tenant\n-        # TODO NOT WORKING! [ApiException: (401) Reason: Unauthorized] or [ValueError: Invalid value for `api_secret`, must not be `None`]\n-        body = Tenant(api_key='bob')\n-        tenant.get_tenant_by_api_key(body)\n+        tenant = killbill.api.TenantApi()\n+        tenant = tenant.get_tenant_by_api_key(api_key=random_api_key)\n+        self.assertIsNotNone(tenant.tenant_id)\n+        self.assertEqual(random_api_key, tenant.api_key)\n+\n \n         # Upload XML catalog/Fetch XML catalog\n-        # TODO NOT WORKING! [ApiException: (404) Reason: Not Found]\n         catalog = killbill.api.CatalogApi()\n-        xml_catalog = open(\"/home/jfrodriguez/Documents/KillBill-Docs/SpyCarBasic.xml\", \"r+\").read()\n-        catalog.upload_catalog_xml(xml_catalog, 'test', 'bob', 'lazar')\n+        xml_catalog = open(\"../resources/SpyCarBasic.xml\", \"r+\").read()\n+        catalog.upload_catalog_xml(xml_catalog, 'test', random_api_key, random_api_secret)\n+\n+        # Get catalog\n+        catalog = killbill.api.CatalogApi()\n+        catalog = catalog.get_catalog_xml(random_api_key, random_api_secret)\n+        self.assertIsNotNone(catalog)","path":"test/test_integration.py","position":80,"original_position":52,"commit_id":"6439eb7fd36a54751bed723808dfafa5a5910b2c","original_commit_id":"6439eb7fd36a54751bed723808dfafa5a5910b2c","user":{"login":"wwjfrodriguez","id":36242659,"avatar_url":"https://avatars3.githubusercontent.com/u/36242659?v=4","gravatar_id":"","url":"https://api.github.com/users/wwjfrodriguez","html_url":"https://github.com/wwjfrodriguez","followers_url":"https://api.github.com/users/wwjfrodriguez/followers","following_url":"https://api.github.com/users/wwjfrodriguez/following{/other_user}","gists_url":"https://api.github.com/users/wwjfrodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/wwjfrodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwjfrodriguez/subscriptions","organizations_url":"https://api.github.com/users/wwjfrodriguez/orgs","repos_url":"https://api.github.com/users/wwjfrodriguez/repos","events_url":"https://api.github.com/users/wwjfrodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/wwjfrodriguez/received_events","type":"User","site_admin":false},"body":"@sbrossie yes, I verified with `print catalog` and its shown in the console.","created_at":"2018-05-02T12:57:59Z","updated_at":"2018-05-02T12:58:00Z","html_url":"https://github.com/killbill/killbill-client-python/pull/5#discussion_r185486127","pull_request_url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/comments/185486127"},"html":{"href":"https://github.com/killbill/killbill-client-python/pull/5#discussion_r185486127"},"pull_request":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5"}},"in_reply_to_id":185359439},"pull_request":{"url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5","id":184653532,"html_url":"https://github.com/killbill/killbill-client-python/pull/5","diff_url":"https://github.com/killbill/killbill-client-python/pull/5.diff","patch_url":"https://github.com/killbill/killbill-client-python/pull/5.patch","issue_url":"https://api.github.com/repos/killbill/killbill-client-python/issues/5","number":5,"state":"open","locked":false,"title":"killbill-client-python (swagger-gen)  with integration tests.","user":{"login":"wwjfrodriguez","id":36242659,"avatar_url":"https://avatars3.githubusercontent.com/u/36242659?v=4","gravatar_id":"","url":"https://api.github.com/users/wwjfrodriguez","html_url":"https://github.com/wwjfrodriguez","followers_url":"https://api.github.com/users/wwjfrodriguez/followers","following_url":"https://api.github.com/users/wwjfrodriguez/following{/other_user}","gists_url":"https://api.github.com/users/wwjfrodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/wwjfrodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwjfrodriguez/subscriptions","organizations_url":"https://api.github.com/users/wwjfrodriguez/orgs","repos_url":"https://api.github.com/users/wwjfrodriguez/repos","events_url":"https://api.github.com/users/wwjfrodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/wwjfrodriguez/received_events","type":"User","site_admin":false},"body":"Ref [killbill-client-python Issue #2](https://github.com/killbill/killbill-client-python/issues/2)","created_at":"2018-04-27T15:22:48Z","updated_at":"2018-05-02T12:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09897b161a91573c118843c4b216dad3fcc78ca2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5/commits","review_comments_url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5/comments","review_comment_url":"https://api.github.com/repos/killbill/killbill-client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/killbill/killbill-client-python/issues/5/comments","statuses_url":"https://api.github.com/repos/killbill/killbill-client-python/statuses/6439eb7fd36a54751bed723808dfafa5a5910b2c","head":{"label":"wwjfrodriguez:swagger-gen","ref":"swagger-gen","sha":"6439eb7fd36a54751bed723808dfafa5a5910b2c","user":{"login":"wwjfrodriguez","id":36242659,"avatar_url":"https://avatars3.githubusercontent.com/u/36242659?v=4","gravatar_id":"","url":"https://api.github.com/users/wwjfrodriguez","html_url":"https://github.com/wwjfrodriguez","followers_url":"https://api.github.com/users/wwjfrodriguez/followers","following_url":"https://api.github.com/users/wwjfrodriguez/following{/other_user}","gists_url":"https://api.github.com/users/wwjfrodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/wwjfrodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwjfrodriguez/subscriptions","organizations_url":"https://api.github.com/users/wwjfrodriguez/orgs","repos_url":"https://api.github.com/users/wwjfrodriguez/repos","events_url":"https://api.github.com/users/wwjfrodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/wwjfrodriguez/received_events","type":"User","site_admin":false},"repo":{"id":128779832,"name":"killbill-client-python","full_name":"wwjfrodriguez/killbill-client-python","owner":{"login":"wwjfrodriguez","id":36242659,"avatar_url":"https://avatars3.githubusercontent.com/u/36242659?v=4","gravatar_id":"","url":"https://api.github.com/users/wwjfrodriguez","html_url":"https://github.com/wwjfrodriguez","followers_url":"https://api.github.com/users/wwjfrodriguez/followers","following_url":"https://api.github.com/users/wwjfrodriguez/following{/other_user}","gists_url":"https://api.github.com/users/wwjfrodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/wwjfrodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwjfrodriguez/subscriptions","organizations_url":"https://api.github.com/users/wwjfrodriguez/orgs","repos_url":"https://api.github.com/users/wwjfrodriguez/repos","events_url":"https://api.github.com/users/wwjfrodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/wwjfrodriguez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wwjfrodriguez/killbill-client-python","description":"Python client library for Kill Bill","fork":true,"url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python","forks_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/forks","keys_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/teams","hooks_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/hooks","issue_events_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/events","assignees_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/tags","blobs_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/languages","stargazers_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/stargazers","contributors_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/contributors","subscribers_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/subscribers","subscription_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/subscription","commits_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/merges","archive_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/downloads","issues_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/labels{/name}","releases_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/wwjfrodriguez/killbill-client-python/deployments","created_at":"2018-04-09T13:53:43Z","updated_at":"2018-04-09T13:53:44Z","pushed_at":"2018-05-01T21:50:52Z","git_url":"git://github.com/wwjfrodriguez/killbill-client-python.git","ssh_url":"git@github.com:wwjfrodriguez/killbill-client-python.git","clone_url":"https://github.com/wwjfrodriguez/killbill-client-python.git","svn_url":"https://github.com/wwjfrodriguez/killbill-client-python","homepage":"http://killbill.io","size":721,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"killbill:work-for-release-0.19.x-doc","ref":"work-for-release-0.19.x-doc","sha":"9b2a81d4b35ca105fb72bd0c5a4b41aa176845c0","user":{"login":"killbill","id":2446739,"avatar_url":"https://avatars2.githubusercontent.com/u/2446739?v=4","gravatar_id":"","url":"https://api.github.com/users/killbill","html_url":"https://github.com/killbill","followers_url":"https://api.github.com/users/killbill/followers","following_url":"https://api.github.com/users/killbill/following{/other_user}","gists_url":"https://api.github.com/users/killbill/gists{/gist_id}","starred_url":"https://api.github.com/users/killbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbill/subscriptions","organizations_url":"https://api.github.com/users/killbill/orgs","repos_url":"https://api.github.com/users/killbill/repos","events_url":"https://api.github.com/users/killbill/events{/privacy}","received_events_url":"https://api.github.com/users/killbill/received_events","type":"Organization","site_admin":false},"repo":{"id":4695379,"name":"killbill-client-python","full_name":"killbill/killbill-client-python","owner":{"login":"killbill","id":2446739,"avatar_url":"https://avatars2.githubusercontent.com/u/2446739?v=4","gravatar_id":"","url":"https://api.github.com/users/killbill","html_url":"https://github.com/killbill","followers_url":"https://api.github.com/users/killbill/followers","following_url":"https://api.github.com/users/killbill/following{/other_user}","gists_url":"https://api.github.com/users/killbill/gists{/gist_id}","starred_url":"https://api.github.com/users/killbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killbill/subscriptions","organizations_url":"https://api.github.com/users/killbill/orgs","repos_url":"https://api.github.com/users/killbill/repos","events_url":"https://api.github.com/users/killbill/events{/privacy}","received_events_url":"https://api.github.com/users/killbill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/killbill/killbill-client-python","description":"Python client library for Kill Bill","fork":false,"url":"https://api.github.com/repos/killbill/killbill-client-python","forks_url":"https://api.github.com/repos/killbill/killbill-client-python/forks","keys_url":"https://api.github.com/repos/killbill/killbill-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/killbill/killbill-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/killbill/killbill-client-python/teams","hooks_url":"https://api.github.com/repos/killbill/killbill-client-python/hooks","issue_events_url":"https://api.github.com/repos/killbill/killbill-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/killbill/killbill-client-python/events","assignees_url":"https://api.github.com/repos/killbill/killbill-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/killbill/killbill-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/killbill/killbill-client-python/tags","blobs_url":"https://api.github.com/repos/killbill/killbill-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/killbill/killbill-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/killbill/killbill-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/killbill/killbill-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/killbill/killbill-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/killbill/killbill-client-python/languages","stargazers_url":"https://api.github.com/repos/killbill/killbill-client-python/stargazers","contributors_url":"https://api.github.com/repos/killbill/killbill-client-python/contributors","subscribers_url":"https://api.github.com/repos/killbill/killbill-client-python/subscribers","subscription_url":"https://api.github.com/repos/killbill/killbill-client-python/subscription","commits_url":"https://api.github.com/repos/killbill/killbill-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/killbill/killbill-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/killbill/killbill-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/killbill/killbill-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/killbill/killbill-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/killbill/killbill-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/killbill/killbill-client-python/merges","archive_url":"https://api.github.com/repos/killbill/killbill-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/killbill/killbill-client-python/downloads","issues_url":"https://api.github.com/repos/killbill/killbill-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/killbill/killbill-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/killbill/killbill-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/killbill/killbill-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/killbill/killbill-client-python/labels{/name}","releases_url":"https://api.github.com/repos/killbill/killbill-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/killbill/killbill-client-python/deployments","created_at":"2012-06-17T22:33:27Z","updated_at":"2018-04-16T08:19:15Z","pushed_at":"2018-05-01T21:50:54Z","git_url":"git://github.com/killbill/killbill-client-python.git","ssh_url":"git@github.com:killbill/killbill-client-python.git","clone_url":"https://github.com/killbill/killbill-client-python.git","svn_url":"https://github.com/killbill/killbill-client-python","homepage":"http://killbill.io","size":25,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5"},"html":{"href":"https://github.com/killbill/killbill-client-python/pull/5"},"issue":{"href":"https://api.github.com/repos/killbill/killbill-client-python/issues/5"},"comments":{"href":"https://api.github.com/repos/killbill/killbill-client-python/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/killbill/killbill-client-python/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/killbill/killbill-client-python/statuses/6439eb7fd36a54751bed723808dfafa5a5910b2c"}},"author_association":"NONE"}}
{"actor":{"display_login":"wwjfrodriguez"}}