GitHub PullRequestReviewCommentEvent at 2014-04-03 19:47:44
Repository: contrib-python-qubell-client
Actor: vasichkin
Payload: {"comment":{"url":"https://api.github.com/repos/qubell/contrib-python-qubell-client/pulls/comments/11269107","id":11269107,"diff_hunk":"@@ -0,0 +1,36 @@\n+from integration_tests.base import BaseTestCase\n+\n+\n+class ProviderClassTest(BaseTestCase):\n+    cloud_account = lambda self, identity: {\"name\": \"dummy_default\", \"provider\": \"aws-ec2\", \"usedEnvironments\": [],\n+                                            \"ec2SecurityGroup\": \"default\", \"providerCopy\": \"aws-ec2\",\n+                                            \"jcloudsIdentity\": identity, \"jcloudsCredential\": \"secret\",\n+                                            \"jcloudsRegions\": \"us-east-1\"}\n+\n+    def test_provider_crud(self):\n+        # create\n+        provider = self.organization.create_provider(name='crud', parameters=self.cloud_account('abc'))\n+        identity = lambda: [p['value'] for p in provider.json()['params'] if p['param']['param']['name'] == 'jcloudsIdentity'][0]\n+        assert provider.name == 'crud'\n+        assert identity() == 'abc'\n+","path":"integration_tests/test_provider.py","position":16,"original_position":16,"commit_id":"eae31dc542406f941eeaf7881b160ad8bb426528","original_commit_id":"eae31dc542406f941eeaf7881b160ad8bb426528","user":{"login":"vasichkin","id":862127,"avatar_url":"https://avatars.githubusercontent.com/u/862127?","gravatar_id":"808e121e14da3e293b37957c13216ec4","url":"https://api.github.com/users/vasichkin","html_url":"https://github.com/vasichkin","followers_url":"https://api.github.com/users/vasichkin/followers","following_url":"https://api.github.com/users/vasichkin/following{/other_user}","gists_url":"https://api.github.com/users/vasichkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vasichkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasichkin/subscriptions","organizations_url":"https://api.github.com/users/vasichkin/orgs","repos_url":"https://api.github.com/users/vasichkin/repos","events_url":"https://api.github.com/users/vasichkin/events{/privacy}","received_events_url":"https://api.github.com/users/vasichkin/received_events","type":"User","site_admin":false},"body":"assert provider.name == self.organization.providers['crud']","created_at":"2014-04-03T19:47:44Z","updated_at":"2014-04-03T19:47:44Z","html_url":"https://github.com/qubell/contrib-python-qubell-client/pull/24#discussion_r11269107","pull_request_url":"https://api.github.com/repos/qubell/contrib-python-qubell-client/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/qubell/contrib-python-qubell-client/pulls/comments/11269107"},"html":{"href":"https://github.com/qubell/contrib-python-qubell-client/pull/24#discussion_r11269107"},"pull_request":{"href":"https://api.github.com/repos/qubell/contrib-python-qubell-client/pulls/24"}}}}