https://ci.suse.de/job/yast-ntp-client-master/19/Changes: [teclator] Fix tests that was passing because a old lense. [teclator] Bump version. [lslezak] Use Docker at Travis ------------------------------------------ [...truncated 43.38 KB...] [ 7s] CFA::NtpConf::CommandRecord [ 7s] #options [ 7s] obtains the options of the record [ 7s] #options= [ 7s] sets options to the record [ 7s] [ 7s] CFA::NtpConf::FudgeRecord [ 7s] #options [ 7s] obtains the options of the record [ 7s] #options= [ 7s] sets options to the record [ 7s] #raw_options [ 7s] obtains options as string [ 7s] #raw_options= [ 7s] sets options from a string [ 7s] [ 7s] CFA::NtpConf::RestrictRecord [ 7s] #options [ 7s] obtains the options of the record (FAILED - 1) [ 7s] #options= [ 7s] sets options to the record (FAILED - 2) [ 7s] #raw_options [ 7s] obtains options as string (FAILED - 3) [ 7s] #raw_options= [ 7s] sets options from a string (FAILED - 4) [ 7s] [ 7s] Yast::NtpClientMiscInclude [ 7s] string2opts [ 7s] given a string of options, a list of options with params and other without params [ 7s] returns a hash of parsed and unkown options [ 7s] [ 7s] #<Yast::NtpClientClass:0x00000001cb0d08> [ 7s] #Read [ 7s] when config has been read previously [ 7s] returns true [ 7s] when config has not been read [ 8s] returns false if abort is pressed [ 9s] doesn't show progress if it is not in normal Mode [ 9s] reads network interfaces config [ 10s] reads ntp policy [ 10s] loads known ntp servers and known country names [ 11s] checks if ntpd service is enable [ 11s] reads ntp config from /etc/ntp.conf [ 12s] reads synchronization config [ 12s] reads ntpd chroot config [ 13s] returns true if all reads were performed [ 13s] when Mode is not installation [ 13s] returns false if the ntp package neither is installed nor available [ 13s] when active directory's ntp dumped data file exists [ 13s] reads active directory address from file [ 13s] #Write [ 13s] returns false if abort is pressed [ 13s] writes current ntp records to ntp config [ 13s] writes ntp policy and updates ntp with netconfig [ 13s] writes chroot ntp config [ 13s] calls SuSEFirewall.Write to check pending changes [ 13s] checks ntp service [ 13s] updates cron settings [ 13s] returns true if not aborted [ 13s] #MakePoolRecord [ 13s] returns a pool ntp record for the given country code and location [ 13s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 13s] #GetNtpServers [ 13s] when ntp servers haven't been read before [ 13s] caches known ntp servers [ 13s] returns known ntp servers [ 13s] when ntp servers have been read before [ 13s] returns known ntp servers [ 13s] #IsRandomServersServiceEnabled [ 13s] returns true if all random pool ntp servers are in use [ 13s] returns false in other case [ 13s] #DeActivateRandomPoolServersFunction [ 13s] removes random pool ntp servers from @ntp_records [ 13s] #GetNtpServersByCountry [ 13s] gets all ntp servers [ 13s] gets all country names if given country name is an empty string [ 13s] returns a list of items with read servers (PENDING: Not yet implemented) [ 13s] #ReadSynchronization [ 13s] reads cron file [ 13s] when cron file does not exist [ 13s] sets synchronize_time as false [ 13s] sets sync interval with default value [ 13s] when cron file exists [ 13s] when there is no cron entry [ 13s] sets synchronize_time as false [ 13s] sets sync interval with default value [ 13s] when there is cron entry [ 13s] sets synchronize time as true if first cron entry is valid [ 13s] sets sync_interval with cron minute interval [ 13s] #reachable_ntp_server? [ 13s] given a server [ 13s] returns true if sntp test passed with IPv4 [ 13s] returns true if sntp test passed with IPv6 [ 13s] returns false if sntp test fails with IPv4 and with IPv6 [ 13s] #sntp_test [ 13s] calls sntp command with ip version 4 by default [ 13s] returns false if server is not reachable [ 13s] returns false if sntp response includes 'no UCST' [ 13s] returns true if sntp command's exit code is 0 [ 13s] #TestNtpServer [ 13s] returns true if ntp server is reachable [ 13s] returns false if ntp server is not reachable [ 13s] when given verbosity is :no_ui [ 13s] doesn't show any dialog [ 13s] when given verbosity is :result_popup [ 13s] shows Feedback Popup [ 13s] notifies with a Popup if success [ 13s] reports with an error if not reachable server [ 13s] when given vervosity is any other argument [ 13s] only shows Feedback Popup [ 13s] #GetUsedNtpServers [ 14s] returns a list of NTP servers used in the current configuration [ 14s] #getSyncRecords [ 14s] returns a map's list with current synchronization related entries with index [ 14s] #selectSyncRecord [ 14s] when given index is not between -1 an ntp_records size [ 14s] returns false [ 14s] sets selected_index as -1 [ 14s] sets selected_record as an empty hash [ 14s] when given index is -1 [ 14s] sets selected_index as -1 [ 14s] sets selected_record as an empty hash [ 14s] returns true [ 14s] when given index is between 0 and ntp_records size [ 14s] sets selected_index as given value [ 14s] sets selected_record as the ntp_records entry for given index [ 14s] returns true [ 14s] #deleteSyncRecord [ 14s] returns false if given index is not in @ntp_records size range [ 14s] returns true otherwise [ 14s] sets modified as true if deleted record [ 14s] removes record entry from ntp records at given index position [ 14s] #ProcessNtpConf [ 14s] returns false if config has been read previously [ 14s] returns false if config doesn't exist [ 14s] sets configuration as read and returns true [ 14s] initializes ntp records excluding restrict and fudge entries [ 14s] initializes restrict records (FAILED - 5) [ 14s] #read_ad_address! [ 14s] when there is an active directory data file [ 14s] reads and sets active directory controller [ 14s] removes data file if controller is read [ 14s] #read_chroot_config! [ 14s] reads sysconfig NTPD_RUN_CHROOTED variable [ 14s] when NTPD_RUN_CHROOTED variable doesn't exist [ 14s] returns false [ 14s] when NTPD_RUN_CHROOTED variable exists [ 14s] returns true [ 14s] sets ntpd as chrooted if variable is 'yes' [ 14s] sets ntpd as no chrooted in any other case [ 14s] #update_ntp_servers! [ 14s] initializes ntp_servers as an empty hash [ 14s] adds known servers to ntp_servers [ 14s] adds ntp pool servers for known countries to ntp_servers [ 14s] [ 14s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 14s] [ 14s] 1) #<Yast::NtpClientClass:0x00000001cb0d08> #GetNtpServersByCountry returns a list of items with read servers [ 14s] # Not yet implemented [ 14s] # ./test/ntp_client_test.rb:329 [ 14s] [ 14s] Failures: [ 14s] [ 14s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 14s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 14s] [ 14s] expected: ["notrap", "nomodify", "nopeer"] [ 14s] got: ["default", "notrap", "nomodify", "nopeer"] [ 14s] [ 14s] (compared using ==) [ 14s] # ./test/cfa/ntp_conf_test.rb:362:in `block (3 levels) in <top (required)>' [ 14s] [ 14s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 14s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 14s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 14s] Diff: [ 14s] @@ -1,2 +1,2 @@ [ 14s] -restrict -4 default notrap\n [ 14s] +restrict -4 notrap [ 14s] # ./test/cfa/ntp_conf_test.rb:372:in `block (3 levels) in <top (required)>' [ 14s] [ 14s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 14s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 14s] [ 14s] expected: "notrap nomodify nopeer" [ 14s] got: "default notrap nomodify nopeer" [ 14s] [ 14s] (compared using ==) [ 14s] # ./test/cfa/ntp_conf_test.rb:378:in `block (3 levels) in <top (required)>' [ 14s] [ 14s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 14s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 14s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 14s] Diff: [ 14s] @@ -1,2 +1,2 @@ [ 14s] -restrict -4 default notrap\n [ 14s] +restrict -4 notrap [ 14s] # ./test/cfa/ntp_conf_test.rb:387:in `block (3 levels) in <top (required)>' [ 14s] [ 14s] 5) #<Yast::NtpClientClass:0x00000001cb0d08> #ProcessNtpConf initializes restrict records [ 14s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 14s] [ 14s] expected: 3 [ 14s] got: 4 [ 14s] [ 14s] (compared using eql?) [ 14s] # ./test/ntp_client_test.rb:686:in `block (3 levels) in <top (required)>' [ 14s] [ 14s] Finished in 7.06 seconds (files took 1.58 seconds to load) [ 14s] 117 examples, 5 failures, 1 pending [ 14s] [ 14s] Failed examples: [ 14s] [ 14s] rspec ./test/cfa/ntp_conf_test.rb:361 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 14s] rspec ./test/cfa/ntp_conf_test.rb:367 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 14s] rspec ./test/cfa/ntp_conf_test.rb:377 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 14s] rspec ./test/cfa/ntp_conf_test.rb:383 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 14s] rspec ./test/ntp_client_test.rb:685 # #<Yast::NtpClientClass:0x00000001cb0d08> #ProcessNtpConf initializes restrict records [ 14s] [ 14s] rake aborted! [ 14s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 14s] [ 14s] Tasks: TOP => test:unit [ 14s] (See full trace by running task with --trace) [ 14s] error: Bad exit status from /var/tmp/rpm-tmp.LwY8IT (%check) [ 14s] [ 14s] [ 14s] RPM build errors: [ 14s] Bad exit status from /var/tmp/rpm-tmp.LwY8IT (%check) Building yast2-ntp-client.spec for sle12_sp3/x86_64 Getting buildinfo from server and store to <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/.osc/_buildinfo-sle12_sp3-x86_64.xml Getting buildconfig from server and store to <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/.osc/_buildconfig-sle12_sp3-x86_64 Updating cache of required packages 0.5% cache miss. 196/197 dependencies cached. 1/1 (Devel:YaST:Head) yast2-country-data-3.1.30-1.38.x86_64.rpm Skipping verification of package signatures Writing build configuration Running build 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