{"action":"created","comment":{"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/comments/34982852","id":34982852,"diff_hunk":"@@ -30,6 +30,23 @@ class XcodeServerTests: XCTestCase {\n     func testServerCreation() {\n         XCTAssertNotNil(self.server)\n     }\n+    \n+    // MARK: Creadentials tests\n+    \n+    func testCredentials() {\n+        let user = server.credential?.user\n+        let pass = server.credential?.password\n+        \n+        XCTAssertEqual(user!, \"ICanCreateBots\")\n+        XCTAssertEqual(pass!, \"superSecr3t\")","path":"XcodeServerSDKTests/XcodeServerTests.swift","position":21,"original_position":21,"commit_id":"149a59d68b709b65dc34739826e58dd47d05fea4","original_commit_id":"149a59d68b709b65dc34739826e58dd47d05fea4","user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"body":"What about the `host`?","created_at":"2015-07-20T10:33:05Z","updated_at":"2015-07-20T10:33:05Z","html_url":"https://github.com/czechboy0/XcodeServerSDK/pull/75#discussion_r34982852","pull_request_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/comments/34982852"},"html":{"href":"https://github.com/czechboy0/XcodeServerSDK/pull/75#discussion_r34982852"},"pull_request":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75","id":40339362,"html_url":"https://github.com/czechboy0/XcodeServerSDK/pull/75","diff_url":"https://github.com/czechboy0/XcodeServerSDK/pull/75.diff","patch_url":"https://github.com/czechboy0/XcodeServerSDK/pull/75.patch","issue_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/75","number":75,"state":"open","locked":false,"title":"XcodeServer Credential tests","user":{"login":"cojoj","id":4522407,"avatar_url":"https://avatars.githubusercontent.com/u/4522407?v=3","gravatar_id":"","url":"https://api.github.com/users/cojoj","html_url":"https://github.com/cojoj","followers_url":"https://api.github.com/users/cojoj/followers","following_url":"https://api.github.com/users/cojoj/following{/other_user}","gists_url":"https://api.github.com/users/cojoj/gists{/gist_id}","starred_url":"https://api.github.com/users/cojoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cojoj/subscriptions","organizations_url":"https://api.github.com/users/cojoj/orgs","repos_url":"https://api.github.com/users/cojoj/repos","events_url":"https://api.github.com/users/cojoj/events{/privacy}","received_events_url":"https://api.github.com/users/cojoj/received_events","type":"User","site_admin":false},"body":"I've written two more tests to `XcodeServer` which check `credential` property.\r\n\r\nNothing fancy, but... 😬","created_at":"2015-07-20T10:32:16Z","updated_at":"2015-07-20T10:33:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"453b265c4e29a069a75750531f3b7de4996e4067","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75/commits","review_comments_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75/comments","review_comment_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/75/comments","statuses_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/statuses/149a59d68b709b65dc34739826e58dd47d05fea4","head":{"label":"cojoj:server-tests","ref":"server-tests","sha":"149a59d68b709b65dc34739826e58dd47d05fea4","user":{"login":"cojoj","id":4522407,"avatar_url":"https://avatars.githubusercontent.com/u/4522407?v=3","gravatar_id":"","url":"https://api.github.com/users/cojoj","html_url":"https://github.com/cojoj","followers_url":"https://api.github.com/users/cojoj/followers","following_url":"https://api.github.com/users/cojoj/following{/other_user}","gists_url":"https://api.github.com/users/cojoj/gists{/gist_id}","starred_url":"https://api.github.com/users/cojoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cojoj/subscriptions","organizations_url":"https://api.github.com/users/cojoj/orgs","repos_url":"https://api.github.com/users/cojoj/repos","events_url":"https://api.github.com/users/cojoj/events{/privacy}","received_events_url":"https://api.github.com/users/cojoj/received_events","type":"User","site_admin":false},"repo":{"id":37312687,"name":"XcodeServerSDK","full_name":"cojoj/XcodeServerSDK","owner":{"login":"cojoj","id":4522407,"avatar_url":"https://avatars.githubusercontent.com/u/4522407?v=3","gravatar_id":"","url":"https://api.github.com/users/cojoj","html_url":"https://github.com/cojoj","followers_url":"https://api.github.com/users/cojoj/followers","following_url":"https://api.github.com/users/cojoj/following{/other_user}","gists_url":"https://api.github.com/users/cojoj/gists{/gist_id}","starred_url":"https://api.github.com/users/cojoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cojoj/subscriptions","organizations_url":"https://api.github.com/users/cojoj/orgs","repos_url":"https://api.github.com/users/cojoj/repos","events_url":"https://api.github.com/users/cojoj/events{/privacy}","received_events_url":"https://api.github.com/users/cojoj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cojoj/XcodeServerSDK","description":"Access Xcode Server API with native Swift objects.","fork":true,"url":"https://api.github.com/repos/cojoj/XcodeServerSDK","forks_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/forks","keys_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/teams","hooks_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/hooks","issue_events_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/issues/events{/number}","events_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/events","assignees_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/assignees{/user}","branches_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/branches{/branch}","tags_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/tags","blobs_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/languages","stargazers_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/stargazers","contributors_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/contributors","subscribers_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/subscribers","subscription_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/subscription","commits_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/contents/{+path}","compare_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/merges","archive_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/downloads","issues_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/issues{/number}","pulls_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/labels{/name}","releases_url":"https://api.github.com/repos/cojoj/XcodeServerSDK/releases{/id}","created_at":"2015-06-12T09:05:32Z","updated_at":"2015-06-12T09:05:33Z","pushed_at":"2015-07-20T10:31:00Z","git_url":"git://github.com/cojoj/XcodeServerSDK.git","ssh_url":"git@github.com:cojoj/XcodeServerSDK.git","clone_url":"https://github.com/cojoj/XcodeServerSDK.git","svn_url":"https://github.com/cojoj/XcodeServerSDK","homepage":null,"size":436,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"czechboy0:swift-2","ref":"swift-2","sha":"9f54f31ceffc89ddf735be250e911238631494aa","user":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"repo":{"id":37303571,"name":"XcodeServerSDK","full_name":"czechboy0/XcodeServerSDK","owner":{"login":"czechboy0","id":2182121,"avatar_url":"https://avatars.githubusercontent.com/u/2182121?v=3","gravatar_id":"","url":"https://api.github.com/users/czechboy0","html_url":"https://github.com/czechboy0","followers_url":"https://api.github.com/users/czechboy0/followers","following_url":"https://api.github.com/users/czechboy0/following{/other_user}","gists_url":"https://api.github.com/users/czechboy0/gists{/gist_id}","starred_url":"https://api.github.com/users/czechboy0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czechboy0/subscriptions","organizations_url":"https://api.github.com/users/czechboy0/orgs","repos_url":"https://api.github.com/users/czechboy0/repos","events_url":"https://api.github.com/users/czechboy0/events{/privacy}","received_events_url":"https://api.github.com/users/czechboy0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/czechboy0/XcodeServerSDK","description":"Access Xcode Server API with native Swift objects. Supports Xcode Server API of Xcode 6 and 7.","fork":false,"url":"https://api.github.com/repos/czechboy0/XcodeServerSDK","forks_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/forks","keys_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/teams","hooks_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/hooks","issue_events_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/events{/number}","events_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/events","assignees_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/assignees{/user}","branches_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/branches{/branch}","tags_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/tags","blobs_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/languages","stargazers_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/stargazers","contributors_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/contributors","subscribers_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/subscribers","subscription_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/subscription","commits_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/contents/{+path}","compare_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/merges","archive_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/downloads","issues_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues{/number}","pulls_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/labels{/name}","releases_url":"https://api.github.com/repos/czechboy0/XcodeServerSDK/releases{/id}","created_at":"2015-06-12T05:22:23Z","updated_at":"2015-07-19T23:49:54Z","pushed_at":"2015-07-20T10:32:16Z","git_url":"git://github.com/czechboy0/XcodeServerSDK.git","ssh_url":"git@github.com:czechboy0/XcodeServerSDK.git","clone_url":"https://github.com/czechboy0/XcodeServerSDK.git","svn_url":"https://github.com/czechboy0/XcodeServerSDK","homepage":"","size":909,"stargazers_count":211,"watchers_count":211,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":211,"default_branch":"swift-2"}},"_links":{"self":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75"},"html":{"href":"https://github.com/czechboy0/XcodeServerSDK/pull/75"},"issue":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/75"},"comments":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/czechboy0/XcodeServerSDK/statuses/149a59d68b709b65dc34739826e58dd47d05fea4"}}}}