{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/connect/issues/215","labels_url":"https://api.github.com/repos/SUSE/connect/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/connect/issues/215/comments","events_url":"https://api.github.com/repos/SUSE/connect/issues/215/events","html_url":"https://github.com/SUSE/connect/pull/215","id":97407215,"number":215,"title":"YaST integration test","user":{"login":"lslezak","id":907998,"avatar_url":"https://avatars.githubusercontent.com/u/907998?v=3","gravatar_id":"","url":"https://api.github.com/users/lslezak","html_url":"https://github.com/lslezak","followers_url":"https://api.github.com/users/lslezak/followers","following_url":"https://api.github.com/users/lslezak/following{/other_user}","gists_url":"https://api.github.com/users/lslezak/gists{/gist_id}","starred_url":"https://api.github.com/users/lslezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lslezak/subscriptions","organizations_url":"https://api.github.com/users/lslezak/orgs","repos_url":"https://api.github.com/users/lslezak/repos","events_url":"https://api.github.com/users/lslezak/events{/privacy}","received_events_url":"https://api.github.com/users/lslezak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T08:04:15Z","updated_at":"2015-11-19T16:41:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SUSE/connect/pulls/215","html_url":"https://github.com/SUSE/connect/pull/215","diff_url":"https://github.com/SUSE/connect/pull/215.diff","patch_url":"https://github.com/SUSE/connect/pull/215.patch"},"body":"This is a new integration test for testing the YaST API.\r\n\r\nIt's not a full integration testing, it's only a partial test. It does not use the YaST UI, it uses the functions from the [`registration/registration.rb` file] (https://github.com/yast/yast-registration/blob/master/src/lib/registration/registration.rb), thus it does not cover all YaST code. But this file is the core part for the communication with the registration server. \r\n\r\n(A complete testing including UI would be too complex, so at least we have some YaST tests now...)\r\n\r\nNotes\r\n=====\r\n\r\n- You have to install the latest YaST code from https://github.com/yast/yast-registration (`master` branch is for SLE12-SP1, `SLE-12-GA` is for SLE12 maintenance - you should probably run the test for each branch). Install it via `rake install` (you need `yast-rake` Ruby gem with the rake tasks)\r\n- Make sure the needed YaST packages are installed (see https://github.com/yast/yast-registration/blob/master/package/yast2-registration.spec#L30-L38)\r\n- Unfortunately once YaST loads the libzypp library it holds the lock and the other tests which use `zypper` fail. Therefore I introduced `@yast` tag in the test, you should run the YaST test via `REGCODE=<YOUR_TESTING_REGCODE> bundle exec cucumber --tags \"@yast\"`. (The test has to be started under the `root` user.)  See https://github.com/cucumber/cucumber/wiki/Tags#running-a-subset-of-scenarios for more details\r\n- The tests expect clean (unregistered system), make sure you remove all artifacts from the previous tests (credentials, zypp services). There are explicit checks in the tests to make sure the system was really registered by YaST and not by something else before.\r\n\r\nYou might need to tune your scripts for starting the tests, just ask me if you need help..."},"comment":{"url":"https://api.github.com/repos/SUSE/connect/issues/comments/158113092","html_url":"https://github.com/SUSE/connect/pull/215#issuecomment-158113092","issue_url":"https://api.github.com/repos/SUSE/connect/issues/215","id":158113092,"user":{"login":"suse-tests-pass","id":1838449,"avatar_url":"https://avatars.githubusercontent.com/u/1838449?v=3","gravatar_id":"","url":"https://api.github.com/users/suse-tests-pass","html_url":"https://github.com/suse-tests-pass","followers_url":"https://api.github.com/users/suse-tests-pass/followers","following_url":"https://api.github.com/users/suse-tests-pass/following{/other_user}","gists_url":"https://api.github.com/users/suse-tests-pass/gists{/gist_id}","starred_url":"https://api.github.com/users/suse-tests-pass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suse-tests-pass/subscriptions","organizations_url":"https://api.github.com/users/suse-tests-pass/orgs","repos_url":"https://api.github.com/users/suse-tests-pass/repos","events_url":"https://api.github.com/users/suse-tests-pass/events{/privacy}","received_events_url":"https://api.github.com/users/suse-tests-pass/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T16:41:01Z","updated_at":"2015-11-19T16:41:01Z","body":"Well Done! Your tests are still passing.\nhttp://river.suse.de/job/scc-connect-prophet/22792/console\nIf the given link has expired,you can force a Prophet rerun by just deleting this comment.\n( Success: Merged a84f6cb78c645067271b046214c281f92dd28896 into 399ef48bd77c2074b2fda08f8eaf3f37bc6efb60 )"}}