{"action":"created","issue":{"url":"https://api.github.com/repos/redhat-developer/rh-che/issues/550","repository_url":"https://api.github.com/repos/redhat-developer/rh-che","labels_url":"https://api.github.com/repos/redhat-developer/rh-che/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/redhat-developer/rh-che/issues/550/comments","events_url":"https://api.github.com/repos/redhat-developer/rh-che/issues/550/events","html_url":"https://github.com/redhat-developer/rh-che/issues/550","id":298957505,"number":550,"title":"Inject \"app.name\" environment variable in Che workspace","user":{"login":"dipak-pawar","id":7941617,"avatar_url":"https://avatars3.githubusercontent.com/u/7941617?v=4","gravatar_id":"","url":"https://api.github.com/users/dipak-pawar","html_url":"https://github.com/dipak-pawar","followers_url":"https://api.github.com/users/dipak-pawar/followers","following_url":"https://api.github.com/users/dipak-pawar/following{/other_user}","gists_url":"https://api.github.com/users/dipak-pawar/gists{/gist_id}","starred_url":"https://api.github.com/users/dipak-pawar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dipak-pawar/subscriptions","organizations_url":"https://api.github.com/users/dipak-pawar/orgs","repos_url":"https://api.github.com/users/dipak-pawar/repos","events_url":"https://api.github.com/users/dipak-pawar/events{/privacy}","received_events_url":"https://api.github.com/users/dipak-pawar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-21T12:49:09Z","updated_at":"2018-02-21T16:29:41Z","closed_at":null,"author_association":"NONE","body":"Boosters have a special profile which [defines system property ](https://github.com/snowdrop/spring-boot-http-booster/blob/master/pom.xml#L105) called `app.name` set for integration tests execution (failsafe). This is customizable, as the user can name his project anyhow he wants while using quickstart wizard. \r\n\r\nThe same property is then used as a service name when injecting [`@RouteUrl`](https://github.com/snowdrop/spring-boot-http-booster/blob/master/src/test/java/io/openshift/booster/OpenShiftIT.java#L33) in the integration test itself. \r\nThis works fine if you are running tests with `maven`. This however, does not work in Che as the property is not recognized, because it's not set as env variable or system property.\r\n\r\nHowever we can get this value by running `mvn help:effective-pom | grep -oPm1 \"(?<=<app.name>)[^<]+\"` from maven project's root dir.\r\n\r\nIf we inject this environment variable in Che workspace while importing project in che workspace,  user can run `openshiftIT` test from Che by running `mvn clean package fabric8:build fabric8:resource` upfront.\r\n\r\nI started thread for renaming `app.name` to `APP_NAME` from all boosters. Once booster guys are agree to rename it, we have to inject `APP_NAME` \r\n\r\nThis needs to be done for https://github.com/arquillian/arquillian-cube/issues/991"},"comment":{"url":"https://api.github.com/repos/redhat-developer/rh-che/issues/comments/367384988","html_url":"https://github.com/redhat-developer/rh-che/issues/550#issuecomment-367384988","issue_url":"https://api.github.com/repos/redhat-developer/rh-che/issues/550","id":367384988,"user":{"login":"ibuziuk","id":1461122,"avatar_url":"https://avatars2.githubusercontent.com/u/1461122?v=4","gravatar_id":"","url":"https://api.github.com/users/ibuziuk","html_url":"https://github.com/ibuziuk","followers_url":"https://api.github.com/users/ibuziuk/followers","following_url":"https://api.github.com/users/ibuziuk/following{/other_user}","gists_url":"https://api.github.com/users/ibuziuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuziuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuziuk/subscriptions","organizations_url":"https://api.github.com/users/ibuziuk/orgs","repos_url":"https://api.github.com/users/ibuziuk/repos","events_url":"https://api.github.com/users/ibuziuk/events{/privacy}","received_events_url":"https://api.github.com/users/ibuziuk/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T16:29:41Z","updated_at":"2018-02-21T16:29:41Z","author_association":"MEMBER","body":"@bartoszmajsak @dipak-pawar am I correct that the issue is about analyzing pom.xml on the fly during project import into Che and setting  env var if property was found? "}}
{"actor":{"display_login":"ibuziuk"}}