{"action":"created","issue":{"url":"https://api.github.com/repos/jsr107/jsr107tck/issues/73","labels_url":"https://api.github.com/repos/jsr107/jsr107tck/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/jsr107/jsr107tck/issues/73/comments","events_url":"https://api.github.com/repos/jsr107/jsr107tck/issues/73/events","html_url":"https://github.com/jsr107/jsr107tck/issues/73","id":57604147,"number":73,"title":"add capability to configure network address to use for jsr 107 tck server","user":{"login":"jfialli","id":2933645,"avatar_url":"https://avatars.githubusercontent.com/u/2933645?v=3","gravatar_id":"","url":"https://api.github.com/users/jfialli","html_url":"https://github.com/jfialli","followers_url":"https://api.github.com/users/jfialli/followers","following_url":"https://api.github.com/users/jfialli/following{/other_user}","gists_url":"https://api.github.com/users/jfialli/gists{/gist_id}","starred_url":"https://api.github.com/users/jfialli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfialli/subscriptions","organizations_url":"https://api.github.com/users/jfialli/orgs","repos_url":"https://api.github.com/users/jfialli/repos","events_url":"https://api.github.com/users/jfialli/events{/privacy}","received_events_url":"https://api.github.com/users/jfialli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jfialli","id":2933645,"avatar_url":"https://avatars.githubusercontent.com/u/2933645?v=3","gravatar_id":"","url":"https://api.github.com/users/jfialli","html_url":"https://github.com/jfialli","followers_url":"https://api.github.com/users/jfialli/followers","following_url":"https://api.github.com/users/jfialli/following{/other_user}","gists_url":"https://api.github.com/users/jfialli/gists{/gist_id}","starred_url":"https://api.github.com/users/jfialli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfialli/subscriptions","organizations_url":"https://api.github.com/users/jfialli/orgs","repos_url":"https://api.github.com/users/jfialli/repos","events_url":"https://api.github.com/users/jfialli/events{/privacy}","received_events_url":"https://api.github.com/users/jfialli/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-13T14:23:59Z","updated_at":"2015-10-08T19:02:57Z","closed_at":"2015-10-08T19:02:57Z","body":"A number of jsr107 tck test depended on a callback mechanism so the test could be tested in a distributed environment where the jcache implementation has servers run on other machines in a distributed mode. (See org.jsr107.tck.support.Server for its definition)  To minimize configuration, the org.jsr107tck.support.Server attempted to automatically select a network address based on java properties java.net.preferIPv4Stack and java.net.preferIPv6Addresses.  This technique is quite error prone on machines with multiple network interfaces supporting ipv4 or ipv6 AND there is a requirement to use a specific network interface (due to the other ones being used for special purposes.) \r\n\r\nIt is proposed to introduce to new system properties to provide the ability to run the jsr107 tck test on a specified network address or network interface for the jsr 107 tck server to run from.\r\n\r\nThe proposed system properties are the following:  \r\n\r\norg.jsr107.tck.support.server.address  an ipv4 address unless the default jsr 107 tck system property for java.net.preferIPv4Stack is overridden.\r\n\r\norg.jsr107.tck.support.server.networkinterface  set to an active, running network interface running the jsr 107 tck test (the jsr 107 tck server runs on the client so distributed jcache implementation servers can perform callbacks)\r\n\r\nNote only one of the 2 properties need to be used.  The networkinterface property is provided as a convenience to avoid having to specify precise ip addresses they may differ by machine.\r\n\r\nHere is a demonstration on how to configure the test to run in various ways on a multi-network interface machine supporting both ipv4 and ipv6.\r\n\r\nUsing IPv4\r\n\r\n% mvn -Dorg.jsr107.tck.support.server.address=10.158.11.206 test\r\n% mvn -Dorg.jsr107.tck.support.server.networkinterface=en0 test\r\n\r\nUsing IPv6\r\n\r\n% mvn -Dorg.jsr107.tck.support.server.networkinterface=en0 -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false test\r\n% mvn -Dorg.jsr107.tck.support.server.networkinterface=en1 -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false test\r\n\r\nThis capability is already implemented and tested."},"comment":{"url":"https://api.github.com/repos/jsr107/jsr107tck/issues/comments/146655748","html_url":"https://github.com/jsr107/jsr107tck/issues/73#issuecomment-146655748","issue_url":"https://api.github.com/repos/jsr107/jsr107tck/issues/73","id":146655748,"user":{"login":"jfialli","id":2933645,"avatar_url":"https://avatars.githubusercontent.com/u/2933645?v=3","gravatar_id":"","url":"https://api.github.com/users/jfialli","html_url":"https://github.com/jfialli","followers_url":"https://api.github.com/users/jfialli/followers","following_url":"https://api.github.com/users/jfialli/following{/other_user}","gists_url":"https://api.github.com/users/jfialli/gists{/gist_id}","starred_url":"https://api.github.com/users/jfialli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfialli/subscriptions","organizations_url":"https://api.github.com/users/jfialli/orgs","repos_url":"https://api.github.com/users/jfialli/repos","events_url":"https://api.github.com/users/jfialli/events{/privacy}","received_events_url":"https://api.github.com/users/jfialli/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T19:02:57Z","updated_at":"2015-10-08T19:02:57Z","body":"fixed by https://github.com/jsr107/jsr107tck/commit/b74ff8f4a705fc560fc77cad19078c4fdb8ed7e4"}}