{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/9024","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/9024/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/9024/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/9024/events","html_url":"https://github.com/rancher/rancher/issues/9024","id":234897436,"number":9024,"title":"Webhooks for hosts to start using host templates","user":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars1.githubusercontent.com/u/11410997?v=4","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"labels":[{"id":520365833,"url":"https://api.github.com/repos/rancher/rancher/labels/area/webhooks","name":"area/webhooks","color":"FBCA04","default":false},{"id":145695746,"url":"https://api.github.com/repos/rancher/rancher/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false},{"id":189155298,"url":"https://api.github.com/repos/rancher/rancher/labels/status/resolved","name":"status/resolved","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"cjellick","id":2473240,"avatar_url":"https://avatars1.githubusercontent.com/u/2473240?v=4","gravatar_id":"","url":"https://api.github.com/users/cjellick","html_url":"https://github.com/cjellick","followers_url":"https://api.github.com/users/cjellick/followers","following_url":"https://api.github.com/users/cjellick/following{/other_user}","gists_url":"https://api.github.com/users/cjellick/gists{/gist_id}","starred_url":"https://api.github.com/users/cjellick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjellick/subscriptions","organizations_url":"https://api.github.com/users/cjellick/orgs","repos_url":"https://api.github.com/users/cjellick/repos","events_url":"https://api.github.com/users/cjellick/events{/privacy}","received_events_url":"https://api.github.com/users/cjellick/received_events","type":"User","site_admin":false},"assignees":[{"login":"cjellick","id":2473240,"avatar_url":"https://avatars1.githubusercontent.com/u/2473240?v=4","gravatar_id":"","url":"https://api.github.com/users/cjellick","html_url":"https://github.com/cjellick","followers_url":"https://api.github.com/users/cjellick/followers","following_url":"https://api.github.com/users/cjellick/following{/other_user}","gists_url":"https://api.github.com/users/cjellick/gists{/gist_id}","starred_url":"https://api.github.com/users/cjellick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjellick/subscriptions","organizations_url":"https://api.github.com/users/cjellick/orgs","repos_url":"https://api.github.com/users/cjellick/repos","events_url":"https://api.github.com/users/cjellick/events{/privacy}","received_events_url":"https://api.github.com/users/cjellick/received_events","type":"User","site_admin":false},{"login":"soumyalj","id":18536626,"avatar_url":"https://avatars1.githubusercontent.com/u/18536626?v=4","gravatar_id":"","url":"https://api.github.com/users/soumyalj","html_url":"https://github.com/soumyalj","followers_url":"https://api.github.com/users/soumyalj/followers","following_url":"https://api.github.com/users/soumyalj/following{/other_user}","gists_url":"https://api.github.com/users/soumyalj/gists{/gist_id}","starred_url":"https://api.github.com/users/soumyalj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumyalj/subscriptions","organizations_url":"https://api.github.com/users/soumyalj/orgs","repos_url":"https://api.github.com/users/soumyalj/repos","events_url":"https://api.github.com/users/soumyalj/events{/privacy}","received_events_url":"https://api.github.com/users/soumyalj/received_events","type":"User","site_admin":false},{"login":"carolynhu","id":29208297,"avatar_url":"https://avatars3.githubusercontent.com/u/29208297?v=4","gravatar_id":"","url":"https://api.github.com/users/carolynhu","html_url":"https://github.com/carolynhu","followers_url":"https://api.github.com/users/carolynhu/followers","following_url":"https://api.github.com/users/carolynhu/following{/other_user}","gists_url":"https://api.github.com/users/carolynhu/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynhu/subscriptions","organizations_url":"https://api.github.com/users/carolynhu/orgs","repos_url":"https://api.github.com/users/carolynhu/repos","events_url":"https://api.github.com/users/carolynhu/events{/privacy}","received_events_url":"https://api.github.com/users/carolynhu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/103","html_url":"https://github.com/rancher/rancher/milestone/103","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/103/labels","id":2574203,"number":103,"title":"Wagyu - Alpha","description":"","creator":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars1.githubusercontent.com/u/11410997?v=4","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"open_issues":93,"closed_issues":33,"state":"open","created_at":"2017-06-09T16:39:13Z","updated_at":"2017-07-13T21:43:31Z","due_on":"2017-06-30T07:00:00Z","closed_at":null},"comments":8,"created_at":"2017-06-09T17:55:44Z","updated_at":"2017-07-17T22:12:50Z","closed_at":null,"body":"With the introduction of host templates in 2.0, webhooks should start using them. "},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/315900429","html_url":"https://github.com/rancher/rancher/issues/9024#issuecomment-315900429","issue_url":"https://api.github.com/repos/rancher/rancher/issues/9024","id":315900429,"user":{"login":"carolynhu","id":29208297,"avatar_url":"https://avatars3.githubusercontent.com/u/29208297?v=4","gravatar_id":"","url":"https://api.github.com/users/carolynhu","html_url":"https://github.com/carolynhu","followers_url":"https://api.github.com/users/carolynhu/followers","following_url":"https://api.github.com/users/carolynhu/following{/other_user}","gists_url":"https://api.github.com/users/carolynhu/gists{/gist_id}","starred_url":"https://api.github.com/users/carolynhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carolynhu/subscriptions","organizations_url":"https://api.github.com/users/carolynhu/orgs","repos_url":"https://api.github.com/users/carolynhu/repos","events_url":"https://api.github.com/users/carolynhu/events{/privacy}","received_events_url":"https://api.github.com/users/carolynhu/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T22:12:50Z","updated_at":"2017-07-17T22:12:50Z","body":"I think the test cases should cover the follows:\r\n(1) if hostTemplateId and hostSelector both present, should return an error\r\n(2) if both hostTemplateId and hostSelector not present, should return an error\r\n(3) if hostSelector present, but hostTemplateId not \r\n3.1 action \"up\" + hostSelector is valid, should scale up hosts with specified labels\r\n3.2 action \"down\" + hostSelector is valid, should scale down hosts with specified labels\r\n3.3 action \"up\" + hostSelector is invalid, should return an error\r\n3.4 action \"down\" + hostSelector is invalid, should return an error\r\n(4) if hostTemplateId present, but hostSelector not\r\n4.1 \"up\" + hostTemplateId is valid, should scale up hosts with specified hostTemplateId\r\n4.2 \"down\" + hostTemplateId is valid, should scale down hosts with specified hostTemplateId\r\n4.3 \"up\" + hostTemplateId is invalid, should return an error\r\n4.4 \"down\" + hostTemplateId is invalid, should return an error"}}
{"actor":{"display_login":"carolynhu"}}