{"action":"created","issue":{"url":"https://api.github.com/repos/defunctzombie/zuul/issues/139","labels_url":"https://api.github.com/repos/defunctzombie/zuul/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/defunctzombie/zuul/issues/139/comments","events_url":"https://api.github.com/repos/defunctzombie/zuul/issues/139/events","html_url":"https://github.com/defunctzombie/zuul/issues/139","id":56904314,"number":139,"title":"Is there a way to know what the ZUUL_PORT is from the tests?","user":{"login":"Bockit","id":167362,"avatar_url":"https://avatars.githubusercontent.com/u/167362?v=3","gravatar_id":"","url":"https://api.github.com/users/Bockit","html_url":"https://github.com/Bockit","followers_url":"https://api.github.com/users/Bockit/followers","following_url":"https://api.github.com/users/Bockit/following{/other_user}","gists_url":"https://api.github.com/users/Bockit/gists{/gist_id}","starred_url":"https://api.github.com/users/Bockit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bockit/subscriptions","organizations_url":"https://api.github.com/users/Bockit/orgs","repos_url":"https://api.github.com/users/Bockit/repos","events_url":"https://api.github.com/users/Bockit/events{/privacy}","received_events_url":"https://api.github.com/users/Bockit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T09:04:12Z","updated_at":"2015-02-11T20:00:38Z","closed_at":null,"body":"I have some tests that require some requests to be crossdomain. I am using a support server written to listen on ZUUL_PORT and that works fine. If I log the port and set my tests to use that port for the crossdomain requests after the server starts they work.\r\n\r\nIs this exposed at all in the tests so that I don't have that manual step of getting the port number and putting it into my tests?"},"comment":{"url":"https://api.github.com/repos/defunctzombie/zuul/issues/comments/73953283","html_url":"https://github.com/defunctzombie/zuul/issues/139#issuecomment-73953283","issue_url":"https://api.github.com/repos/defunctzombie/zuul/issues/139","id":73953283,"user":{"login":"defunctzombie","id":84792,"avatar_url":"https://avatars.githubusercontent.com/u/84792?v=3","gravatar_id":"","url":"https://api.github.com/users/defunctzombie","html_url":"https://github.com/defunctzombie","followers_url":"https://api.github.com/users/defunctzombie/followers","following_url":"https://api.github.com/users/defunctzombie/following{/other_user}","gists_url":"https://api.github.com/users/defunctzombie/gists{/gist_id}","starred_url":"https://api.github.com/users/defunctzombie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defunctzombie/subscriptions","organizations_url":"https://api.github.com/users/defunctzombie/orgs","repos_url":"https://api.github.com/users/defunctzombie/repos","events_url":"https://api.github.com/users/defunctzombie/events{/privacy}","received_events_url":"https://api.github.com/users/defunctzombie/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T20:00:38Z","updated_at":"2015-02-11T20:00:38Z","body":"What I have done in the past if needed, is create an endpoint on my support server `/port` and just fetched that in a `before` hook using basic ajax.\r\n\r\nI think we could expose this and other zuul configs via a ZUUL global without much fuss tho so you wouldn't need to have the above hack."}}