{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2440","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2440/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2440/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2440/events","html_url":"https://github.com/SatelliteQE/robottelo/pull/2440","id":87830721,"number":2440,"title":"[Do Not Merge] Add initial RHCI tests","user":{"login":"JacobCallahan","id":6618303,"avatar_url":"https://avatars.githubusercontent.com/u/6618303?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobCallahan","html_url":"https://github.com/JacobCallahan","followers_url":"https://api.github.com/users/JacobCallahan/followers","following_url":"https://api.github.com/users/JacobCallahan/following{/other_user}","gists_url":"https://api.github.com/users/JacobCallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobCallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobCallahan/subscriptions","organizations_url":"https://api.github.com/users/JacobCallahan/orgs","repos_url":"https://api.github.com/users/JacobCallahan/repos","events_url":"https://api.github.com/users/JacobCallahan/events{/privacy}","received_events_url":"https://api.github.com/users/JacobCallahan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SatelliteQE/robottelo/labels/API","name":"API","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-12T19:42:45Z","updated_at":"2015-06-25T14:16:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2440","html_url":"https://github.com/SatelliteQE/robottelo/pull/2440","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2440.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2440.patch"},"body":"These tests cover some of the basic functionality for creating, modifying, and deleting RHCI deployments\r\n\r\n$ nosetests -v tests/foreman/api/test_rhci.py\r\n@Test: Create a simple deployment. ... ok\r\n@Test: Create a simple deployment. ... ok\r\n@Test: Create a simple deployment. ... ok\r\n@Test: Create a simple deployment. ... ok\r\n@Test: Create and delete a simple deployment. ... ok\r\n@Test: Update a deployment's name. ... ok\r\n@Test: Update a deployment's name. ... ok\r\n@Test: Update a deployment's name. ... ok\r\n@Test: Update a deployment's name. ... ok\r\n\r\nRan 9 tests in 2.196s\r\n\r\nOK"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments/115272557","html_url":"https://github.com/SatelliteQE/robottelo/pull/2440#issuecomment-115272557","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2440","id":115272557,"user":{"login":"JacobCallahan","id":6618303,"avatar_url":"https://avatars.githubusercontent.com/u/6618303?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobCallahan","html_url":"https://github.com/JacobCallahan","followers_url":"https://api.github.com/users/JacobCallahan/followers","following_url":"https://api.github.com/users/JacobCallahan/following{/other_user}","gists_url":"https://api.github.com/users/JacobCallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobCallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobCallahan/subscriptions","organizations_url":"https://api.github.com/users/JacobCallahan/orgs","repos_url":"https://api.github.com/users/JacobCallahan/repos","events_url":"https://api.github.com/users/JacobCallahan/events{/privacy}","received_events_url":"https://api.github.com/users/JacobCallahan/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T14:16:30Z","updated_at":"2015-06-25T14:16:30Z","body":"I'm still waiting on some dev responses associated with workarounds in this PR. However, I've decided to update it and let you guys see what it looks like right now. \r\n\r\nThe major changes are:\r\n- creating an org and lifecycle environment\r\n- adding better assertions for test_positive_create_deployment\r\n- introducing a tearDownClass that cleans up the created deployments\r\n\r\nThe way I've implemented the tearDown is to only add the entity after all assertions have passed, that way if the test fails, they aren't deleted. This will help for inspecting things in the event of a failure."}}