https://ci.suse.de/job/yast-ntp-client-master/20/Changes: [schubi] AY: do not export Augeas objects [schubi] using " [schubi] added build requires [schubi] autoyast2-installation [schubi] using dup [schubi] adding autoyast2-installation [schubi] adapted testcases [schubi] rubocop fix ------------------------------------------ [...truncated 69.68 KB...] [ 39s] #raw_options= [ 39s] sets options from a string [ 39s] [ 39s] CFA::NtpConf::RestrictRecord [ 39s] #options [ 39s] obtains the options of the record (FAILED - 1) [ 39s] #options= [ 39s] sets options to the record (FAILED - 2) [ 39s] #raw_options [ 39s] obtains options as string (FAILED - 3) [ 39s] #raw_options= [ 39s] sets options from a string (FAILED - 4) [ 39s] [ 39s] Yast::NtpClientMiscInclude [ 39s] string2opts [ 39s] given a string of options, a list of options with params and other without params [ 39s] returns a hash of parsed and unkown options [ 39s] [ 39s] #<Yast::NtpClientClass:0x00000001e786e0> [ 39s] #AutoYaST methods [ 39s] #Import [ 39s] with a correct AutoYaST configuration file [ 40s] reads the list of peers [ 40s] reads the list of restricts [ 40s] reads synchronize flag [ 40s] reads start at boot flag [ 40s] reads start in chroot environment flag [ 40s] reads policy [ 40s] reads sync intervall [ 40s] with an empty AutoYaST configuration [ 40s] sets an empty peer list [ 40s] sets an empty restricts list [ 40s] sets default synchronize flag [ 40s] sets default start at boot flag [ 40s] sets default start in chroot environment flag [ 40s] sets default policy [ 40s] set default sync intervall [ 40s] #Export [ 40s] produces an output equivalent to #Import [ 40s] #Read [ 40s] when config has been read previously [ 40s] returns true [ 40s] when config has not been read [ 40s] returns false if abort is pressed [ 41s] doesn't show progress if it is not in normal Mode [ 41s] reads network interfaces config [ 42s] reads ntp policy [ 42s] loads known ntp servers and known country names [ 43s] checks if ntpd service is enable [ 43s] reads ntp config from /etc/ntp.conf [ 44s] reads synchronization config [ 44s] reads ntpd chroot config [ 45s] returns true if all reads were performed [ 45s] when Mode is not installation [ 45s] returns false if the ntp package neither is installed nor available [ 45s] when active directory's ntp dumped data file exists [ 45s] reads active directory address from file [ 45s] #Write [ 45s] returns false if abort is pressed [ 45s] writes current ntp records to ntp config [ 45s] writes ntp policy and updates ntp with netconfig [ 45s] writes chroot ntp config [ 45s] calls SuSEFirewall.Write to check pending changes [ 45s] checks ntp service [ 45s] updates cron settings [ 45s] returns true if not aborted [ 45s] #MakePoolRecord [ 45s] returns a pool ntp record for the given country code and location [ 45s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 45s] #GetNtpServers [ 45s] when ntp servers haven't been read before [ 45s] caches known ntp servers [ 45s] returns known ntp servers [ 45s] when ntp servers have been read before [ 45s] returns known ntp servers [ 45s] #IsRandomServersServiceEnabled [ 45s] returns true if all random pool ntp servers are in use [ 45s] returns false in other case [ 45s] #DeActivateRandomPoolServersFunction [ 46s] removes random pool ntp servers from @ntp_records [ 46s] #GetNtpServersByCountry [ 46s] gets all ntp servers [ 46s] gets all country names if given country name is an empty string [ 46s] returns a list of items with read servers (PENDING: Not yet implemented) [ 46s] #ReadSynchronization [ 46s] reads cron file [ 46s] when cron file does not exist [ 46s] sets synchronize_time as false [ 46s] sets sync interval with default value [ 46s] when cron file exists [ 46s] when there is no cron entry [ 46s] sets synchronize_time as false [ 46s] sets sync interval with default value [ 46s] when there is cron entry [ 46s] sets synchronize time as true if first cron entry is valid [ 46s] sets sync_interval with cron minute interval [ 46s] #reachable_ntp_server? [ 46s] given a server [ 46s] returns true if sntp test passed with IPv4 [ 46s] returns true if sntp test passed with IPv6 [ 46s] returns false if sntp test fails with IPv4 and with IPv6 [ 46s] #sntp_test [ 46s] calls sntp command with ip version 4 by default [ 46s] returns false if server is not reachable [ 46s] returns false if sntp response includes 'no UCST' [ 46s] returns true if sntp command's exit code is 0 [ 46s] #TestNtpServer [ 46s] returns true if ntp server is reachable [ 46s] returns false if ntp server is not reachable [ 46s] when given verbosity is :no_ui [ 46s] doesn't show any dialog [ 46s] when given verbosity is :result_popup [ 46s] shows Feedback Popup [ 46s] notifies with a Popup if success [ 46s] reports with an error if not reachable server [ 46s] when given vervosity is any other argument [ 46s] only shows Feedback Popup [ 46s] #GetUsedNtpServers [ 46s] returns a list of NTP servers used in the current configuration [ 46s] #getSyncRecords [ 46s] returns a map's list with current synchronization related entries with index [ 46s] #selectSyncRecord [ 46s] when given index is not between -1 an ntp_records size [ 46s] returns false [ 46s] sets selected_index as -1 [ 46s] sets selected_record as an empty hash [ 46s] when given index is -1 [ 46s] sets selected_index as -1 [ 46s] sets selected_record as an empty hash [ 46s] returns true [ 46s] when given index is between 0 and ntp_records size [ 46s] sets selected_index as given value [ 46s] sets selected_record as the ntp_records entry for given index [ 46s] returns true [ 46s] #deleteSyncRecord [ 46s] returns false if given index is not in @ntp_records size range [ 46s] returns true otherwise [ 46s] sets modified as true if deleted record [ 46s] removes record entry from ntp records at given index position [ 46s] #ProcessNtpConf [ 46s] returns false if config has been read previously [ 46s] returns false if config doesn't exist [ 46s] sets configuration as read and returns true [ 46s] initializes ntp records excluding restrict and fudge entries [ 46s] initializes restrict records (FAILED - 5) [ 46s] #read_ad_address! [ 46s] when there is an active directory data file [ 46s] reads and sets active directory controller [ 46s] removes data file if controller is read [ 46s] #read_chroot_config! [ 46s] reads sysconfig NTPD_RUN_CHROOTED variable [ 46s] when NTPD_RUN_CHROOTED variable doesn't exist [ 46s] returns false [ 46s] when NTPD_RUN_CHROOTED variable exists [ 46s] returns true [ 46s] sets ntpd as chrooted if variable is 'yes' [ 46s] sets ntpd as no chrooted in any other case [ 46s] #update_ntp_servers! [ 46s] initializes ntp_servers as an empty hash [ 46s] adds known servers to ntp_servers [ 46s] adds ntp pool servers for known countries to ntp_servers [ 46s] [ 46s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 46s] [ 46s] 1) #<Yast::NtpClientClass:0x00000001e786e0> #GetNtpServersByCountry returns a list of items with read servers [ 46s] # Not yet implemented [ 46s] # ./test/ntp_client_test.rb:425 [ 46s] [ 46s] Failures: [ 46s] [ 46s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 46s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 46s] [ 46s] expected: ["notrap", "nomodify", "nopeer"] [ 46s] got: ["default", "notrap", "nomodify", "nopeer"] [ 46s] [ 46s] (compared using ==) [ 46s] # ./test/cfa/ntp_conf_test.rb:362:in `block (3 levels) in <top (required)>' [ 46s] [ 46s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 46s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 46s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 46s] Diff: [ 46s] @@ -1,2 +1,2 @@ [ 46s] -restrict -4 default notrap\n [ 46s] +restrict -4 notrap [ 46s] # ./test/cfa/ntp_conf_test.rb:372:in `block (3 levels) in <top (required)>' [ 46s] [ 46s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 46s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 46s] [ 46s] expected: "notrap nomodify nopeer" [ 46s] got: "default notrap nomodify nopeer" [ 46s] [ 46s] (compared using ==) [ 46s] # ./test/cfa/ntp_conf_test.rb:378:in `block (3 levels) in <top (required)>' [ 46s] [ 46s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 46s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 46s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 46s] Diff: [ 46s] @@ -1,2 +1,2 @@ [ 46s] -restrict -4 default notrap\n [ 46s] +restrict -4 notrap [ 46s] # ./test/cfa/ntp_conf_test.rb:387:in `block (3 levels) in <top (required)>' [ 46s] [ 46s] 5) #<Yast::NtpClientClass:0x00000001e786e0> #ProcessNtpConf initializes restrict records [ 46s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 46s] [ 46s] expected: 3 [ 46s] got: 4 [ 46s] [ 46s] (compared using eql?) [ 46s] # ./test/ntp_client_test.rb:782:in `block (3 levels) in <top (required)>' [ 46s] [ 46s] Finished in 7.48 seconds (files took 2.16 seconds to load) [ 46s] 132 examples, 5 failures, 1 pending [ 46s] [ 46s] Failed examples: [ 46s] [ 46s] rspec ./test/cfa/ntp_conf_test.rb:361 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 46s] rspec ./test/cfa/ntp_conf_test.rb:367 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 46s] rspec ./test/cfa/ntp_conf_test.rb:377 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 46s] rspec ./test/cfa/ntp_conf_test.rb:383 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 46s] rspec ./test/ntp_client_test.rb:781 # #<Yast::NtpClientClass:0x00000001e786e0> #ProcessNtpConf initializes restrict records [ 46s] [ 46s] rake aborted! [ 46s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 46s] [ 46s] Tasks: TOP => test:unit [ 46s] (See full trace by running task with --trace) [ 46s] error: Bad exit status from /var/tmp/rpm-tmp.B0GSft (%check) [ 46s] [ 46s] [ 46s] RPM build errors: [ 46s] Bad exit status from /var/tmp/rpm-tmp.B0GSft (%check) [ 46s] [ 46s] vm-yast-ci-worker failed "build yast2-ntp-client.spec" at Mon Jan 2 11:11:30 UTC 2017. [ 46s] The buildroot was: /var/tmp/build-root-sle12_sp3 rm -rf Devel:YaST:Head rake aborted! Command failed with status (1): [yes | osc -A 'https://api.suse.de/' build ...] Tasks: TOP => osc:sr => osc:commit => osc:build (See full trace by running task with --trace) cleaning Build step 'Execute shell' marked build as failure