{"action":"created","comment":{"url":"https://api.github.com/repos/adrianpietka/larmo/pulls/comments/34233186","id":34233186,"diff_hunk":"@@ -0,0 +1,99 @@\n+# Behat cheatsheet for Larmo tests\n+\n+## Agent Packet Context\n+\n+###### @beforeScenario\n+\n+A new *Agent Packet Fixture Provider* instance is created.\n+\n+#### Well formed packet\n+```\n+@Given /^A well formed packet coming from an agent$/\n+```\n+\n+Builds a well formed agent packet fixture.\n+\n+#### Wrong formed packet\n+```\n+@Given /^A packet coming from an agent with the following \"([^\"]*)\" wrong:$/\n+```\n+\n+Builds a wrong formed agent packet with option to specify a `key` where wrong fields will be applied. A `TableNode` object is used to apply the desired wrong fields.\n+\n+```\n+    Given A packet coming from an agent with the following \"metadata\" wrong:\n+      | auth | invalidAuthKey |\n+```\n+\n+If you want to apply multiple wrong fields:\n+\n+```\n+    Given A packet coming from an agent with the following \"metadata\" wrong:\n+      | auth | invalidAuthKey |\n+      | source | nonValidSource |\n+      | anotherField | anotherWrongField |\n+```\n+\n+If the desired field we want to modify does not exist, this will not modify anything.\n+\n+## Domain Packet Context\n+\n+#### Decoding a packet coming from an agent\n+\n+```\n+@When /^I decode a packet coming from an agent into an array$/\n+```\n+\n+Note that this step **requires** a previously well formed packet. Otherwise the step will be marked as failed.\n+\n+#### Create a domain packet\n+\n+```\n+@Then /^The system can create a packet in the domain$/\n+```\n+\n+It creates a Domain Packet with using data provided from an Agent Fixture Provider\n+\n+Note that this step **requires** a previously well formed packet. Otherwise the step will be marked as failed.\n+\n+## Plugin Service Context\n+\n+###### @beforeScenario\n+\n+A new *Packet Validation Service* instance is created.\n+\n+#### Prepare a packet to be verified against a schema\n+\n+```\n+@When /^The packet is prepared to be verified against a schema$/\n+```\n+\n+It prepares the agent packet and the validation schema.\n+\n+Note that this step **requires** a previously well||wrong formed packet. Otherwise the step will be marked as failed.\n+\n+#### Plugin service validation successes\n+\n+```\n+@Then /^The plugin service success to validate$/\n+```\n+\n+Checks if the plugin service validation has been completed successfully\n+\n+#### Plugin service validation fails\n+\n+```\n+@Then /^The plugin service fails to validate$/\n+```\n+\n+Checks if the plugin service validation has been failed\n+\n+#### Packet is rejected with a particular reason\n+\n+```\n+@Given /^The packet is rejected with reason \"([^\"]*)\"$/\n+```\n+\n+Checks the failed validation reasons from Plugin Validation Services.","path":"hub/tests/features/README.md","position":97,"original_position":97,"commit_id":"5752c159b4cb4d77058f974e2ea2e5a091b23bfa","original_commit_id":"5752c159b4cb4d77058f974e2ea2e5a091b23bfa","user":{"login":"zeulus","id":476491,"avatar_url":"https://avatars.githubusercontent.com/u/476491?v=3","gravatar_id":"","url":"https://api.github.com/users/zeulus","html_url":"https://github.com/zeulus","followers_url":"https://api.github.com/users/zeulus/followers","following_url":"https://api.github.com/users/zeulus/following{/other_user}","gists_url":"https://api.github.com/users/zeulus/gists{/gist_id}","starred_url":"https://api.github.com/users/zeulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeulus/subscriptions","organizations_url":"https://api.github.com/users/zeulus/orgs","repos_url":"https://api.github.com/users/zeulus/repos","events_url":"https://api.github.com/users/zeulus/events{/privacy}","received_events_url":"https://api.github.com/users/zeulus/received_events","type":"User","site_admin":false},"body":"reason of failure, or fail message, or reason why validation failed","created_at":"2015-07-09T08:25:41Z","updated_at":"2015-07-09T08:25:41Z","html_url":"https://github.com/adrianpietka/larmo/pull/62#discussion_r34233186","pull_request_url":"https://api.github.com/repos/adrianpietka/larmo/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/comments/34233186"},"html":{"href":"https://github.com/adrianpietka/larmo/pull/62#discussion_r34233186"},"pull_request":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/adrianpietka/larmo/pulls/62","id":39556564,"html_url":"https://github.com/adrianpietka/larmo/pull/62","diff_url":"https://github.com/adrianpietka/larmo/pull/62.diff","patch_url":"https://github.com/adrianpietka/larmo/pull/62.patch","issue_url":"https://api.github.com/repos/adrianpietka/larmo/issues/62","number":62,"state":"open","locked":false,"title":"Behat tests updates","user":{"login":"dalailomo","id":6674841,"avatar_url":"https://avatars.githubusercontent.com/u/6674841?v=3","gravatar_id":"","url":"https://api.github.com/users/dalailomo","html_url":"https://github.com/dalailomo","followers_url":"https://api.github.com/users/dalailomo/followers","following_url":"https://api.github.com/users/dalailomo/following{/other_user}","gists_url":"https://api.github.com/users/dalailomo/gists{/gist_id}","starred_url":"https://api.github.com/users/dalailomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalailomo/subscriptions","organizations_url":"https://api.github.com/users/dalailomo/orgs","repos_url":"https://api.github.com/users/dalailomo/repos","events_url":"https://api.github.com/users/dalailomo/events{/privacy}","received_events_url":"https://api.github.com/users/dalailomo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-09T07:53:52Z","updated_at":"2015-07-09T08:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c215ed057ab880c820c7b727023277386044a96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adrianpietka/larmo/pulls/62/commits","review_comments_url":"https://api.github.com/repos/adrianpietka/larmo/pulls/62/comments","review_comment_url":"https://api.github.com/repos/adrianpietka/larmo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adrianpietka/larmo/issues/62/comments","statuses_url":"https://api.github.com/repos/adrianpietka/larmo/statuses/5752c159b4cb4d77058f974e2ea2e5a091b23bfa","head":{"label":"adrianpietka:behatTestsUpdates","ref":"behatTestsUpdates","sha":"5752c159b4cb4d77058f974e2ea2e5a091b23bfa","user":{"login":"adrianpietka","id":10552422,"avatar_url":"https://avatars.githubusercontent.com/u/10552422?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianpietka","html_url":"https://github.com/adrianpietka","followers_url":"https://api.github.com/users/adrianpietka/followers","following_url":"https://api.github.com/users/adrianpietka/following{/other_user}","gists_url":"https://api.github.com/users/adrianpietka/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianpietka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianpietka/subscriptions","organizations_url":"https://api.github.com/users/adrianpietka/orgs","repos_url":"https://api.github.com/users/adrianpietka/repos","events_url":"https://api.github.com/users/adrianpietka/events{/privacy}","received_events_url":"https://api.github.com/users/adrianpietka/received_events","type":"User","site_admin":false},"repo":{"id":37317385,"name":"larmo","full_name":"adrianpietka/larmo","owner":{"login":"adrianpietka","id":10552422,"avatar_url":"https://avatars.githubusercontent.com/u/10552422?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianpietka","html_url":"https://github.com/adrianpietka","followers_url":"https://api.github.com/users/adrianpietka/followers","following_url":"https://api.github.com/users/adrianpietka/following{/other_user}","gists_url":"https://api.github.com/users/adrianpietka/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianpietka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianpietka/subscriptions","organizations_url":"https://api.github.com/users/adrianpietka/orgs","repos_url":"https://api.github.com/users/adrianpietka/repos","events_url":"https://api.github.com/users/adrianpietka/events{/privacy}","received_events_url":"https://api.github.com/users/adrianpietka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adrianpietka/larmo","description":"Central hub that stores information from many data feeds - CVS, CI, Skype, IRC etc.","fork":false,"url":"https://api.github.com/repos/adrianpietka/larmo","forks_url":"https://api.github.com/repos/adrianpietka/larmo/forks","keys_url":"https://api.github.com/repos/adrianpietka/larmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adrianpietka/larmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adrianpietka/larmo/teams","hooks_url":"https://api.github.com/repos/adrianpietka/larmo/hooks","issue_events_url":"https://api.github.com/repos/adrianpietka/larmo/issues/events{/number}","events_url":"https://api.github.com/repos/adrianpietka/larmo/events","assignees_url":"https://api.github.com/repos/adrianpietka/larmo/assignees{/user}","branches_url":"https://api.github.com/repos/adrianpietka/larmo/branches{/branch}","tags_url":"https://api.github.com/repos/adrianpietka/larmo/tags","blobs_url":"https://api.github.com/repos/adrianpietka/larmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adrianpietka/larmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adrianpietka/larmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/adrianpietka/larmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adrianpietka/larmo/statuses/{sha}","languages_url":"https://api.github.com/repos/adrianpietka/larmo/languages","stargazers_url":"https://api.github.com/repos/adrianpietka/larmo/stargazers","contributors_url":"https://api.github.com/repos/adrianpietka/larmo/contributors","subscribers_url":"https://api.github.com/repos/adrianpietka/larmo/subscribers","subscription_url":"https://api.github.com/repos/adrianpietka/larmo/subscription","commits_url":"https://api.github.com/repos/adrianpietka/larmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/adrianpietka/larmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/adrianpietka/larmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/adrianpietka/larmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/adrianpietka/larmo/contents/{+path}","compare_url":"https://api.github.com/repos/adrianpietka/larmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adrianpietka/larmo/merges","archive_url":"https://api.github.com/repos/adrianpietka/larmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adrianpietka/larmo/downloads","issues_url":"https://api.github.com/repos/adrianpietka/larmo/issues{/number}","pulls_url":"https://api.github.com/repos/adrianpietka/larmo/pulls{/number}","milestones_url":"https://api.github.com/repos/adrianpietka/larmo/milestones{/number}","notifications_url":"https://api.github.com/repos/adrianpietka/larmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adrianpietka/larmo/labels{/name}","releases_url":"https://api.github.com/repos/adrianpietka/larmo/releases{/id}","created_at":"2015-06-12T11:02:04Z","updated_at":"2015-06-24T06:42:40Z","pushed_at":"2015-07-09T07:53:53Z","git_url":"git://github.com/adrianpietka/larmo.git","ssh_url":"git@github.com:adrianpietka/larmo.git","clone_url":"https://github.com/adrianpietka/larmo.git","svn_url":"https://github.com/adrianpietka/larmo","homepage":"http://www.future-processing.com/","size":917,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"adrianpietka:master","ref":"master","sha":"b2a8b7049647b1d55b3cc93d4285db85cbe32024","user":{"login":"adrianpietka","id":10552422,"avatar_url":"https://avatars.githubusercontent.com/u/10552422?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianpietka","html_url":"https://github.com/adrianpietka","followers_url":"https://api.github.com/users/adrianpietka/followers","following_url":"https://api.github.com/users/adrianpietka/following{/other_user}","gists_url":"https://api.github.com/users/adrianpietka/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianpietka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianpietka/subscriptions","organizations_url":"https://api.github.com/users/adrianpietka/orgs","repos_url":"https://api.github.com/users/adrianpietka/repos","events_url":"https://api.github.com/users/adrianpietka/events{/privacy}","received_events_url":"https://api.github.com/users/adrianpietka/received_events","type":"User","site_admin":false},"repo":{"id":37317385,"name":"larmo","full_name":"adrianpietka/larmo","owner":{"login":"adrianpietka","id":10552422,"avatar_url":"https://avatars.githubusercontent.com/u/10552422?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianpietka","html_url":"https://github.com/adrianpietka","followers_url":"https://api.github.com/users/adrianpietka/followers","following_url":"https://api.github.com/users/adrianpietka/following{/other_user}","gists_url":"https://api.github.com/users/adrianpietka/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianpietka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianpietka/subscriptions","organizations_url":"https://api.github.com/users/adrianpietka/orgs","repos_url":"https://api.github.com/users/adrianpietka/repos","events_url":"https://api.github.com/users/adrianpietka/events{/privacy}","received_events_url":"https://api.github.com/users/adrianpietka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adrianpietka/larmo","description":"Central hub that stores information from many data feeds - CVS, CI, Skype, IRC etc.","fork":false,"url":"https://api.github.com/repos/adrianpietka/larmo","forks_url":"https://api.github.com/repos/adrianpietka/larmo/forks","keys_url":"https://api.github.com/repos/adrianpietka/larmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adrianpietka/larmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adrianpietka/larmo/teams","hooks_url":"https://api.github.com/repos/adrianpietka/larmo/hooks","issue_events_url":"https://api.github.com/repos/adrianpietka/larmo/issues/events{/number}","events_url":"https://api.github.com/repos/adrianpietka/larmo/events","assignees_url":"https://api.github.com/repos/adrianpietka/larmo/assignees{/user}","branches_url":"https://api.github.com/repos/adrianpietka/larmo/branches{/branch}","tags_url":"https://api.github.com/repos/adrianpietka/larmo/tags","blobs_url":"https://api.github.com/repos/adrianpietka/larmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adrianpietka/larmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adrianpietka/larmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/adrianpietka/larmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adrianpietka/larmo/statuses/{sha}","languages_url":"https://api.github.com/repos/adrianpietka/larmo/languages","stargazers_url":"https://api.github.com/repos/adrianpietka/larmo/stargazers","contributors_url":"https://api.github.com/repos/adrianpietka/larmo/contributors","subscribers_url":"https://api.github.com/repos/adrianpietka/larmo/subscribers","subscription_url":"https://api.github.com/repos/adrianpietka/larmo/subscription","commits_url":"https://api.github.com/repos/adrianpietka/larmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/adrianpietka/larmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/adrianpietka/larmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/adrianpietka/larmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/adrianpietka/larmo/contents/{+path}","compare_url":"https://api.github.com/repos/adrianpietka/larmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adrianpietka/larmo/merges","archive_url":"https://api.github.com/repos/adrianpietka/larmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adrianpietka/larmo/downloads","issues_url":"https://api.github.com/repos/adrianpietka/larmo/issues{/number}","pulls_url":"https://api.github.com/repos/adrianpietka/larmo/pulls{/number}","milestones_url":"https://api.github.com/repos/adrianpietka/larmo/milestones{/number}","notifications_url":"https://api.github.com/repos/adrianpietka/larmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adrianpietka/larmo/labels{/name}","releases_url":"https://api.github.com/repos/adrianpietka/larmo/releases{/id}","created_at":"2015-06-12T11:02:04Z","updated_at":"2015-06-24T06:42:40Z","pushed_at":"2015-07-09T07:53:53Z","git_url":"git://github.com/adrianpietka/larmo.git","ssh_url":"git@github.com:adrianpietka/larmo.git","clone_url":"https://github.com/adrianpietka/larmo.git","svn_url":"https://github.com/adrianpietka/larmo","homepage":"http://www.future-processing.com/","size":917,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/62"},"html":{"href":"https://github.com/adrianpietka/larmo/pull/62"},"issue":{"href":"https://api.github.com/repos/adrianpietka/larmo/issues/62"},"comments":{"href":"https://api.github.com/repos/adrianpietka/larmo/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adrianpietka/larmo/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/adrianpietka/larmo/statuses/5752c159b4cb4d77058f974e2ea2e5a091b23bfa"}}}}