{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5","id":215122027,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MTIyMDI3","html_url":"https://github.com/manorrock/jakartaee-examples/pull/5","diff_url":"https://github.com/manorrock/jakartaee-examples/pull/5.diff","patch_url":"https://github.com/manorrock/jakartaee-examples/pull/5.patch","issue_url":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/5","number":5,"state":"open","locked":false,"title":"Use arquillian-chamaleon for tests","user":{"login":"rmpestano","id":1592273,"node_id":"MDQ6VXNlcjE1OTIyNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1592273?v=4","gravatar_id":"","url":"https://api.github.com/users/rmpestano","html_url":"https://github.com/rmpestano","followers_url":"https://api.github.com/users/rmpestano/followers","following_url":"https://api.github.com/users/rmpestano/following{/other_user}","gists_url":"https://api.github.com/users/rmpestano/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpestano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpestano/subscriptions","organizations_url":"https://api.github.com/users/rmpestano/orgs","repos_url":"https://api.github.com/users/rmpestano/repos","events_url":"https://api.github.com/users/rmpestano/events{/privacy}","received_events_url":"https://api.github.com/users/rmpestano/received_events","type":"User","site_admin":false},"body":"## Introduction\r\nThe idea of this PR is to use [arquillian-chameleon](https://github.com/arquillian/arquillian-container-chameleon/) in order to make it easier to add new test containers as well as selecting the container where the tests will run. \r\n\r\n## How it works\r\nChameleon holds test container configuration such as it's adapter and it's download maven coordinate ([see supported containers here](https://github.com/arquillian/arquillian-container-chameleon/#supported-containers)) so after selecting a container chameleon will download (and cache) and run the test on top of it.\r\n\r\n##  Selecting a container\r\n\r\n- To tell chameleon which container the test will run we use @ChameleonTarget annotation:\r\n```\r\n@ChameleonTarget(\"payara:5.182:managed\")\r\n``` \r\n- The value of the annotation must match a container `name` and `versionExpression` specified in [chameleon default configuration file](https://github.com/arquillian/arquillian-container-chameleon/blob/master/arquillian-chameleon-container-model/src/main/resources/chameleon/default/containers.yaml).\r\n- The `name`, `versionExpression` and `run mode` are specified via system property in maven surefire-plugin ([see here](https://github.com/rmpestano/jakartaee-examples/blob/bb65e75d319781315ae95ad89e1a1b3ff0fa6c1f/pom.xml#L27-L30))\r\n- Test profiles now only have `arquillian.container` property ([see here](https://github.com/rmpestano/jakartaee-examples/blob/bb65e75d319781315ae95ad89e1a1b3ff0fa6c1f/pom.xml#L138-L173)).\r\n- Tests now use `ArquillianChameleon` runner\r\n```\r\n@RunWith(ArquillianChameleon.class)\r\n@JakartaEEServer\r\npublic class JsonParserTest {\r\n``` \r\n- `JakartaEEServer` annotation is a (typesafe) meta-annotation which holds `@ChameleonTarget` configuration ([see here](https://github.com/rmpestano/jakartaee-examples/blob/bde84af617d47c96a1c40b654c31c168298e1be0/test-commons/src/main/java/jakartaee/examples/test/commons/JakartaEEServer.java#L24)) \r\n- JakartaEEServer annotation resides in [test-commons module](https://github.com/rmpestano/jakartaee-examples/tree/master/test-commons)\r\n\r\nFixes #2 ","created_at":"2018-09-12T23:13:12Z","updated_at":"2018-09-12T23:13:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5/commits","review_comments_url":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5/comments","review_comment_url":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/5/comments","statuses_url":"https://api.github.com/repos/manorrock/jakartaee-examples/statuses/a25c35655dc351aa3fc050102b8a96520bf47c2d","head":{"label":"rmpestano:master","ref":"master","sha":"a25c35655dc351aa3fc050102b8a96520bf47c2d","user":{"login":"rmpestano","id":1592273,"node_id":"MDQ6VXNlcjE1OTIyNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1592273?v=4","gravatar_id":"","url":"https://api.github.com/users/rmpestano","html_url":"https://github.com/rmpestano","followers_url":"https://api.github.com/users/rmpestano/followers","following_url":"https://api.github.com/users/rmpestano/following{/other_user}","gists_url":"https://api.github.com/users/rmpestano/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpestano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpestano/subscriptions","organizations_url":"https://api.github.com/users/rmpestano/orgs","repos_url":"https://api.github.com/users/rmpestano/repos","events_url":"https://api.github.com/users/rmpestano/events{/privacy}","received_events_url":"https://api.github.com/users/rmpestano/received_events","type":"User","site_admin":false},"repo":{"id":146129647,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxMjk2NDc=","name":"jakartaee-examples","full_name":"rmpestano/jakartaee-examples","owner":{"login":"rmpestano","id":1592273,"node_id":"MDQ6VXNlcjE1OTIyNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1592273?v=4","gravatar_id":"","url":"https://api.github.com/users/rmpestano","html_url":"https://github.com/rmpestano","followers_url":"https://api.github.com/users/rmpestano/followers","following_url":"https://api.github.com/users/rmpestano/following{/other_user}","gists_url":"https://api.github.com/users/rmpestano/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpestano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpestano/subscriptions","organizations_url":"https://api.github.com/users/rmpestano/orgs","repos_url":"https://api.github.com/users/rmpestano/repos","events_url":"https://api.github.com/users/rmpestano/events{/privacy}","received_events_url":"https://api.github.com/users/rmpestano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmpestano/jakartaee-examples","description":"Jakarta EE Examples","fork":true,"url":"https://api.github.com/repos/rmpestano/jakartaee-examples","forks_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/forks","keys_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/teams","hooks_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/hooks","issue_events_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/issues/events{/number}","events_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/events","assignees_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/assignees{/user}","branches_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/branches{/branch}","tags_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/tags","blobs_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/languages","stargazers_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/stargazers","contributors_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/contributors","subscribers_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/subscribers","subscription_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/subscription","commits_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/contents/{+path}","compare_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/merges","archive_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/downloads","issues_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/issues{/number}","pulls_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/labels{/name}","releases_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/releases{/id}","deployments_url":"https://api.github.com/repos/rmpestano/jakartaee-examples/deployments","created_at":"2018-08-25T21:06:47Z","updated_at":"2018-09-12T19:43:46Z","pushed_at":"2018-09-12T19:43:44Z","git_url":"git://github.com/rmpestano/jakartaee-examples.git","ssh_url":"git@github.com:rmpestano/jakartaee-examples.git","clone_url":"https://github.com/rmpestano/jakartaee-examples.git","svn_url":"https://github.com/rmpestano/jakartaee-examples","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"manorrock:master","ref":"master","sha":"5aec252dd953d9c4f1d8132b5a97ad373ee97eb0","user":{"login":"manorrock","id":22894110,"node_id":"MDQ6VXNlcjIyODk0MTEw","avatar_url":"https://avatars2.githubusercontent.com/u/22894110?v=4","gravatar_id":"","url":"https://api.github.com/users/manorrock","html_url":"https://github.com/manorrock","followers_url":"https://api.github.com/users/manorrock/followers","following_url":"https://api.github.com/users/manorrock/following{/other_user}","gists_url":"https://api.github.com/users/manorrock/gists{/gist_id}","starred_url":"https://api.github.com/users/manorrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manorrock/subscriptions","organizations_url":"https://api.github.com/users/manorrock/orgs","repos_url":"https://api.github.com/users/manorrock/repos","events_url":"https://api.github.com/users/manorrock/events{/privacy}","received_events_url":"https://api.github.com/users/manorrock/received_events","type":"User","site_admin":false},"repo":{"id":133872607,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM4NzI2MDc=","name":"jakartaee-examples","full_name":"manorrock/jakartaee-examples","owner":{"login":"manorrock","id":22894110,"node_id":"MDQ6VXNlcjIyODk0MTEw","avatar_url":"https://avatars2.githubusercontent.com/u/22894110?v=4","gravatar_id":"","url":"https://api.github.com/users/manorrock","html_url":"https://github.com/manorrock","followers_url":"https://api.github.com/users/manorrock/followers","following_url":"https://api.github.com/users/manorrock/following{/other_user}","gists_url":"https://api.github.com/users/manorrock/gists{/gist_id}","starred_url":"https://api.github.com/users/manorrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manorrock/subscriptions","organizations_url":"https://api.github.com/users/manorrock/orgs","repos_url":"https://api.github.com/users/manorrock/repos","events_url":"https://api.github.com/users/manorrock/events{/privacy}","received_events_url":"https://api.github.com/users/manorrock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manorrock/jakartaee-examples","description":"Jakarta EE Examples","fork":false,"url":"https://api.github.com/repos/manorrock/jakartaee-examples","forks_url":"https://api.github.com/repos/manorrock/jakartaee-examples/forks","keys_url":"https://api.github.com/repos/manorrock/jakartaee-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manorrock/jakartaee-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manorrock/jakartaee-examples/teams","hooks_url":"https://api.github.com/repos/manorrock/jakartaee-examples/hooks","issue_events_url":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/events{/number}","events_url":"https://api.github.com/repos/manorrock/jakartaee-examples/events","assignees_url":"https://api.github.com/repos/manorrock/jakartaee-examples/assignees{/user}","branches_url":"https://api.github.com/repos/manorrock/jakartaee-examples/branches{/branch}","tags_url":"https://api.github.com/repos/manorrock/jakartaee-examples/tags","blobs_url":"https://api.github.com/repos/manorrock/jakartaee-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manorrock/jakartaee-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manorrock/jakartaee-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/manorrock/jakartaee-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manorrock/jakartaee-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/manorrock/jakartaee-examples/languages","stargazers_url":"https://api.github.com/repos/manorrock/jakartaee-examples/stargazers","contributors_url":"https://api.github.com/repos/manorrock/jakartaee-examples/contributors","subscribers_url":"https://api.github.com/repos/manorrock/jakartaee-examples/subscribers","subscription_url":"https://api.github.com/repos/manorrock/jakartaee-examples/subscription","commits_url":"https://api.github.com/repos/manorrock/jakartaee-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/manorrock/jakartaee-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/manorrock/jakartaee-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/manorrock/jakartaee-examples/contents/{+path}","compare_url":"https://api.github.com/repos/manorrock/jakartaee-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manorrock/jakartaee-examples/merges","archive_url":"https://api.github.com/repos/manorrock/jakartaee-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manorrock/jakartaee-examples/downloads","issues_url":"https://api.github.com/repos/manorrock/jakartaee-examples/issues{/number}","pulls_url":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/manorrock/jakartaee-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/manorrock/jakartaee-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manorrock/jakartaee-examples/labels{/name}","releases_url":"https://api.github.com/repos/manorrock/jakartaee-examples/releases{/id}","deployments_url":"https://api.github.com/repos/manorrock/jakartaee-examples/deployments","created_at":"2018-05-17T21:59:14Z","updated_at":"2018-09-12T16:28:04Z","pushed_at":"2018-09-12T19:43:45Z","git_url":"git://github.com/manorrock/jakartaee-examples.git","ssh_url":"git@github.com:manorrock/jakartaee-examples.git","clone_url":"https://github.com/manorrock/jakartaee-examples.git","svn_url":"https://github.com/manorrock/jakartaee-examples","homepage":null,"size":285,"stargazers_count":53,"watchers_count":53,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":13,"open_issues":2,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5"},"html":{"href":"https://github.com/manorrock/jakartaee-examples/pull/5"},"issue":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/5"},"comments":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/manorrock/jakartaee-examples/statuses/a25c35655dc351aa3fc050102b8a96520bf47c2d"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":16,"additions":271,"deletions":214,"changed_files":30}}
{"actor":{"display_login":"rmpestano"}}