See <https://ci.suse.de/job/yast-ntp-client-master/25/display/redirect?page=changes> Changes: [jreidinger] make class backward compatible [jreidinger] extend comment about backward compatibility [jreidinger] fix typo [jreidinger] fix lense typo ------------------------------------------ [...truncated 47.98 KB...] [ 4s] .new_from_augeas [ 4s] creates a record of the correct class [ 4s] creates the record with correct data [ 4s] #value [ 4s] obtains the value of the record [ 4s] #value= [ 4s] sets the value of the record [ 4s] #comment [ 4s] when the record has not comment [ 4s] obtains nil [ 4s] when the record has comment [ 4s] obtains the comment [ 4s] #comment= [ 4s] sets a comment to the record [ 4s] #== [ 4s] returns true for equal records [ 4s] returns false for different records [ 4s] #type [ 4s] obtains the type of the record [ 4s] #raw_options [ 4s] obtains options as string [ 4s] #raw_options= [ 4s] sets options from a string [ 4s] [ 4s] CFA::NtpConf::CommandRecord [ 4s] #options [ 4s] obtains the options of the record [ 4s] #options= [ 4s] sets options to the record [ 4s] [ 4s] CFA::NtpConf::FudgeRecord [ 4s] #options [ 4s] obtains the options of the record [ 4s] #options= [ 4s] sets options to the record [ 4s] #raw_options [ 4s] obtains options as string [ 4s] #raw_options= [ 4s] sets options from a string [ 4s] [ 4s] CFA::NtpConf::RestrictRecord [ 4s] #options [ 4s] obtains the options of the record [ 4s] #options= [ 4s] sets options to the record [ 4s] #raw_options [ 5s] obtains options as string [ 5s] #raw_options= [ 5s] sets options from a string [ 5s] [ 5s] Yast::NtpClientMiscInclude [ 5s] string2opts [ 5s] given a string of options, a list of options with params and other without params [ 5s] returns a hash of parsed and unkown options [ 5s] [ 5s] #<Yast::NtpClientClass:0x000000030bf790> [ 5s] #AutoYaST methods [ 5s] #Import [ 5s] with a correct AutoYaST configuration file [ 5s] reads the list of peers [ 5s] reads the list of restricts [ 5s] reads synchronize flag [ 5s] reads start at boot flag [ 5s] reads start in chroot environment flag [ 5s] reads policy [ 5s] reads sync intervall [ 5s] with an empty AutoYaST configuration [ 5s] sets an empty peer list [ 5s] sets an empty restricts list [ 5s] sets default synchronize flag [ 5s] sets default start at boot flag [ 5s] sets default start in chroot environment flag [ 5s] sets default policy [ 5s] set default sync intervall [ 5s] #Export [ 5s] produces an output equivalent to #Import [ 5s] #Read [ 5s] when config has been read previously [ 5s] returns true [ 5s] when config has not been read [ 5s] returns false if abort is pressed [ 6s] doesn't show progress if it is not in normal Mode [ 6s] reads network interfaces config [ 7s] reads ntp policy [ 8s] loads known ntp servers and known country names [ 8s] checks if ntpd service is enable [ 9s] reads ntp config from /etc/ntp.conf [ 9s] reads synchronization config [ 10s] reads ntpd chroot config [ 10s] returns true if all reads were performed [ 10s] when Mode is not installation [ 10s] returns false if the ntp package neither is installed nor available [ 10s] when active directory's ntp dumped data file exists [ 11s] reads active directory address from file [ 11s] #Write [ 11s] returns false if abort is pressed [ 11s] writes current ntp records to ntp config [ 11s] writes new ntp records to ntp config [ 11s] does not write removed records to ntp config [ 11s] writes ntp policy and updates ntp with netconfig [ 11s] writes chroot ntp config [ 11s] calls SuSEFirewall.Write to check pending changes [ 11s] checks ntp service [ 11s] updates cron settings [ 11s] returns true if not aborted [ 11s] #MakePoolRecord [ 11s] returns a pool ntp record for the given country code and location [ 11s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 11s] #GetNtpServers [ 11s] when ntp servers haven't been read before [ 11s] caches known ntp servers [ 11s] returns known ntp servers [ 11s] when ntp servers have been read before [ 11s] returns known ntp servers [ 11s] #IsRandomServersServiceEnabled [ 11s] returns true if all random pool ntp servers are in use [ 11s] returns false in other case [ 11s] #DeActivateRandomPoolServersFunction [ 11s] removes random pool ntp servers from @ntp_records [ 11s] #GetNtpServersByCountry [ 11s] gets all ntp servers [ 11s] gets all country names if given country name is an empty string [ 11s] returns a list of items with read servers (PENDING: Not yet implemented) [ 11s] #ReadSynchronization [ 11s] reads cron file [ 11s] when cron file does not exist [ 11s] sets synchronize_time as false [ 11s] sets sync interval with default value [ 11s] when cron file exists [ 11s] when there is no cron entry [ 11s] sets synchronize_time as false [ 11s] sets sync interval with default value [ 11s] when there is cron entry [ 11s] sets synchronize time as true if first cron entry is valid [ 11s] sets sync_interval with cron minute interval [ 11s] #reachable_ntp_server? [ 11s] given a server [ 11s] returns true if sntp test passed with IPv4 [ 11s] returns true if sntp test passed with IPv6 [ 11s] returns false if sntp test fails with IPv4 and with IPv6 [ 11s] #sntp_test [ 11s] calls sntp command with ip version 4 by default [ 11s] returns false if server is not reachable [ 11s] returns false if sntp response includes 'no UCST' [ 11s] returns true if sntp command's exit code is 0 [ 11s] #TestNtpServer [ 11s] returns true if ntp server is reachable [ 11s] returns false if ntp server is not reachable [ 11s] when given verbosity is :no_ui [ 11s] doesn't show any dialog [ 11s] when given verbosity is :result_popup [ 11s] shows Feedback Popup [ 11s] notifies with a Popup if success [ 11s] reports with an error if not reachable server [ 11s] when given vervosity is any other argument [ 11s] only shows Feedback Popup [ 11s] #GetUsedNtpServers [ 12s] returns a list of NTP servers used in the current configuration [ 12s] #getSyncRecords [ 12s] returns a map's list with current synchronization related entries with index [ 12s] #selectSyncRecord [ 12s] when given index is not between -1 an ntp_records size [ 12s] returns false [ 12s] sets selected_index as -1 [ 12s] sets selected_record as an empty hash [ 12s] when given index is -1 [ 12s] sets selected_index as -1 [ 12s] sets selected_record as an empty hash [ 12s] returns true [ 12s] when given index is between 0 and ntp_records size [ 12s] sets selected_index as given value [ 12s] sets selected_record as the ntp_records entry for given index [ 12s] returns true [ 12s] #deleteSyncRecord [ 12s] returns false if given index is not in @ntp_records size range [ 13s] returns true otherwise [ 13s] sets modified as true if deleted record [ 13s] removes record entry from ntp records at given index position [ 13s] #ProcessNtpConf [ 13s] returns false if config has been read previously [ 13s] returns false if config doesn't exist [ 13s] sets configuration as read and returns true [ 13s] initializes ntp records excluding restrict and fudge entries [ 13s] initializes restrict records (FAILED - 1) [ 13s] #read_ad_address! [ 13s] when there is an active directory data file [ 13s] reads and sets active directory controller [ 13s] removes data file if controller is read [ 13s] #read_chroot_config! [ 13s] reads sysconfig NTPD_RUN_CHROOTED variable [ 13s] when NTPD_RUN_CHROOTED variable doesn't exist [ 13s] returns false [ 13s] when NTPD_RUN_CHROOTED variable exists [ 13s] returns true [ 13s] sets ntpd as chrooted if variable is 'yes' [ 13s] sets ntpd as no chrooted in any other case [ 13s] #update_ntp_servers! [ 13s] initializes ntp_servers as an empty hash [ 13s] adds known servers to ntp_servers [ 13s] adds ntp pool servers for known countries to ntp_servers [ 13s] [ 13s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 13s] [ 13s] 1) #<Yast::NtpClientClass:0x000000030bf790> #GetNtpServersByCountry returns a list of items with read servers [ 13s] # Not yet implemented [ 13s] # ./test/ntp_client_test.rb:449 [ 13s] [ 13s] Failures: [ 13s] [ 13s] 1) #<Yast::NtpClientClass:0x000000030bf790> #ProcessNtpConf initializes restrict records [ 13s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 13s] [ 13s] expected: 3 [ 13s] got: 4 [ 13s] [ 13s] (compared using eql?) [ 13s] # ./test/ntp_client_test.rb:786:in `block (3 levels) in <top (required)>' [ 13s] # ./test/ntp_client_test.rb:25:in `block (2 levels) in <top (required)>' [ 13s] [ 13s] Finished in 8.87 seconds (files took 0.87654 seconds to load) [ 13s] 136 examples, 1 failure, 1 pending [ 13s] [ 13s] Failed examples: [ 13s] [ 13s] rspec ./test/ntp_client_test.rb:784 # #<Yast::NtpClientClass:0x000000030bf790> #ProcessNtpConf initializes restrict records [ 13s] [ 13s] rake aborted! [ 13s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 13s] [ 13s] Tasks: TOP => test:unit [ 13s] (See full trace by running task with --trace) [ 13s] error: Bad exit status from /var/tmp/rpm-tmp.Ib5qJy (%check) [ 13s] [ 13s] [ 13s] RPM build errors: [ 13s] Bad exit status from /var/tmp/rpm-tmp.Ib5qJy (%check) [ 13s] [ 13s] vm-yast-ci-worker failed "build yast2-ntp-client.spec" at Thu Mar 23 14:45:37 UTC 2017. [ 13s] 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