{"action":"created","issue":{"url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/209","labels_url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/209/comments","events_url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/209/events","html_url":"https://github.com/dice-cyfronet/atmosphere/pull/209","id":94942804,"number":209,"title":"Fix fund selection for appliance.","user":{"login":"nowakowski","id":4568385,"avatar_url":"https://avatars.githubusercontent.com/u/4568385?v=3","gravatar_id":"","url":"https://api.github.com/users/nowakowski","html_url":"https://github.com/nowakowski","followers_url":"https://api.github.com/users/nowakowski/followers","following_url":"https://api.github.com/users/nowakowski/following{/other_user}","gists_url":"https://api.github.com/users/nowakowski/gists{/gist_id}","starred_url":"https://api.github.com/users/nowakowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowakowski/subscriptions","organizations_url":"https://api.github.com/users/nowakowski/orgs","repos_url":"https://api.github.com/users/nowakowski/repos","events_url":"https://api.github.com/users/nowakowski/events{/privacy}","received_events_url":"https://api.github.com/users/nowakowski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dice-cyfronet/atmosphere/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mkasztelnik","id":1265430,"avatar_url":"https://avatars.githubusercontent.com/u/1265430?v=3","gravatar_id":"","url":"https://api.github.com/users/mkasztelnik","html_url":"https://github.com/mkasztelnik","followers_url":"https://api.github.com/users/mkasztelnik/followers","following_url":"https://api.github.com/users/mkasztelnik/following{/other_user}","gists_url":"https://api.github.com/users/mkasztelnik/gists{/gist_id}","starred_url":"https://api.github.com/users/mkasztelnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkasztelnik/subscriptions","organizations_url":"https://api.github.com/users/mkasztelnik/orgs","repos_url":"https://api.github.com/users/mkasztelnik/repos","events_url":"https://api.github.com/users/mkasztelnik/events{/privacy}","received_events_url":"https://api.github.com/users/mkasztelnik/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-14T13:14:49Z","updated_at":"2015-07-14T19:03:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dice-cyfronet/atmosphere/pulls/209","html_url":"https://github.com/dice-cyfronet/atmosphere/pull/209","diff_url":"https://github.com/dice-cyfronet/atmosphere/pull/209.diff","patch_url":"https://github.com/dice-cyfronet/atmosphere/pull/209.patch"},"body":"Updates appliance fund selection logic to acknowledge the contents of appliance.tenants and also the list of funds available to the appliance's owner."},"comment":{"url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/comments/121343586","html_url":"https://github.com/dice-cyfronet/atmosphere/pull/209#issuecomment-121343586","issue_url":"https://api.github.com/repos/dice-cyfronet/atmosphere/issues/209","id":121343586,"user":{"login":"nowakowski","id":4568385,"avatar_url":"https://avatars.githubusercontent.com/u/4568385?v=3","gravatar_id":"","url":"https://api.github.com/users/nowakowski","html_url":"https://github.com/nowakowski","followers_url":"https://api.github.com/users/nowakowski/followers","following_url":"https://api.github.com/users/nowakowski/following{/other_user}","gists_url":"https://api.github.com/users/nowakowski/gists{/gist_id}","starred_url":"https://api.github.com/users/nowakowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nowakowski/subscriptions","organizations_url":"https://api.github.com/users/nowakowski/orgs","repos_url":"https://api.github.com/users/nowakowski/repos","events_url":"https://api.github.com/users/nowakowski/events{/privacy}","received_events_url":"https://api.github.com/users/nowakowski/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T19:03:33Z","updated_at":"2015-07-14T19:03:33Z","body":"@mkasztelnik I know this will feel suspicious but I am deleting the failing test for two reasons:\r\n- The test is bogus. It creates an `Appliance` object, then creates some additional tenants and VMTs and expects the appliance's fund to change. An appliance's fund is determined upon creation and there is no code in Atmosphere which would automatically swap it for another fund.\r\n- My newly added test ('does not assign a fund which is incompatible with selected tenants') checks for exactly the same behavior (except it's correctly written). ;)"}}