[yast-commit] Build failed in Jenkins: yast-ntp-client-master #17
https://ci.suse.de/job/yast-ntp-client-master/17/Changes: [joseivanlopez] Add CFA model for ntp conf [joseivanlopez] Add AttributeRecord and refac [joseivanlopez] Add tests for cfa model of ntp conf [joseivanlopez] Rubocop config [joseivanlopez] Add comments to classes [joseivanlopez] Use alias_method [joseivanlopez] Use private_class_method [joseivanlopez] Fixes for rubocop [joseivanlopez] Refac NtpConf [joseivanlopez] Improve cfa model for ntp [joseivanlopez] Update ntp model tests [joseivanlopez] Update ntp client to use cfa model [joseivanlopez] Improve cfa model [joseivanlopez] Document cfa model [joseivanlopez] Add cfa to travis [joseivanlopez] Add libaugeas-dev to travis [joseivanlopez] Work around for augeas error in travis [joseivanlopez] Fixes for rubocop [joseivanlopez] Fix ntp client test [joseivanlopez] Improve cfa model for ntp [joseivanlopez] Improve tests [joseivanlopez] Use RecordCollection#<< [joseivanlopez] Log exception message [joseivanlopez] Improve cfa model for ntp [joseivanlopez] Add comments to CollectionRecord [joseivanlopez] Use FileUtils [joseivanlopez] Use delete_if [joseivanlopez] Comment yield params [joseivanlopez] Bump version [joseivanlopez] Update spec ------------------------------------------ [...truncated 7.95 KB...] mkdir -p package/yast2-ntp-client-3.2.2/./test/data/scr_root/usr/share/YaST2/data rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root/usr/share/YaST2/data/country.ycp ln ./test/data/scr_root/usr/share/YaST2/data/country.ycp package/yast2-ntp-client-3.2.2/./test/data/scr_root/usr/share/YaST2/data/country.ycp rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root/usr/share/YaST2/data/ntp_servers.yml ln ./test/data/scr_root/usr/share/YaST2/data/ntp_servers.yml package/yast2-ntp-client-3.2.2/./test/data/scr_root/usr/share/YaST2/data/ntp_servers.yml mkdir -p package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/ntp.conf ln ./test/data/scr_root_read/etc/ntp.conf package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/ntp.conf rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/ntp.conf.original ln ./test/data/scr_root_read/etc/ntp.conf.original package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/ntp.conf.original mkdir -p package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/sysconfig/network/config rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/sysconfig/network/config/config ln ./test/data/scr_root_read/etc/sysconfig/network/config/config package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/sysconfig/network/config/config rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/sysconfig/ntp ln ./test/data/scr_root_read/etc/sysconfig/ntp package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/etc/sysconfig/ntp mkdir -p package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/ad_ntp_data.ycp ln ./test/data/scr_root_read/usr/share/YaST2/data/ad_ntp_data.ycp package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/ad_ntp_data.ycp rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/country.ycp ln ./test/data/scr_root_read/usr/share/YaST2/data/country.ycp package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/country.ycp rm -f package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/ntp_servers.yml ln ./test/data/scr_root_read/usr/share/YaST2/data/ntp_servers.yml package/yast2-ntp-client-3.2.2/./test/data/scr_root_read/usr/share/YaST2/data/ntp_servers.yml mkdir -p package/yast2-ntp-client-3.2.2/./test/fixtures/cfa rm -f package/yast2-ntp-client-3.2.2/./test/fixtures/cfa/ntp.conf ln ./test/fixtures/cfa/ntp.conf package/yast2-ntp-client-3.2.2/./test/fixtures/cfa/ntp.conf rm -f package/yast2-ntp-client-3.2.2/./test/misc_test.rb ln ./test/misc_test.rb package/yast2-ntp-client-3.2.2/./test/misc_test.rb rm -f package/yast2-ntp-client-3.2.2/./test/ntp_client_test.rb ln ./test/ntp_client_test.rb package/yast2-ntp-client-3.2.2/./test/ntp_client_test.rb rm -f package/yast2-ntp-client-3.2.2/./test/test_helper.rb ln ./test/test_helper.rb package/yast2-ntp-client-3.2.2/./test/test_helper.rb cd package tar jcvf yast2-ntp-client-3.2.2.tar.bz2 yast2-ntp-client-3.2.2 yast2-ntp-client-3.2.2/ yast2-ntp-client-3.2.2/README.md yast2-ntp-client-3.2.2/src/ yast2-ntp-client-3.2.2/src/lib/ yast2-ntp-client-3.2.2/src/lib/cfa/ yast2-ntp-client-3.2.2/src/lib/cfa/ntp_conf.rb yast2-ntp-client-3.2.2/src/clients/ yast2-ntp-client-3.2.2/src/clients/ntp-client_finish.rb yast2-ntp-client-3.2.2/src/clients/ntp-client_proposal.rb yast2-ntp-client-3.2.2/src/clients/ntp-client.rb yast2-ntp-client-3.2.2/src/clients/ntp-client_auto.rb yast2-ntp-client-3.2.2/src/modules/ yast2-ntp-client-3.2.2/src/modules/NtpClient.rb yast2-ntp-client-3.2.2/src/scrconf/ yast2-ntp-client-3.2.2/src/scrconf/etc_ntp.scr yast2-ntp-client-3.2.2/src/scrconf/cfg_ntp.scr yast2-ntp-client-3.2.2/src/autoyast-rnc/ yast2-ntp-client-3.2.2/src/autoyast-rnc/ntpclient.rnc yast2-ntp-client-3.2.2/src/desktop/ yast2-ntp-client-3.2.2/src/desktop/ntp-client.desktop yast2-ntp-client-3.2.2/src/data/ yast2-ntp-client-3.2.2/src/data/ntp_servers.yml yast2-ntp-client-3.2.2/src/include/ yast2-ntp-client-3.2.2/src/include/ntp-client/ yast2-ntp-client-3.2.2/src/include/ntp-client/widgets.rb yast2-ntp-client-3.2.2/src/include/ntp-client/clocktypes.rb yast2-ntp-client-3.2.2/src/include/ntp-client/helps.rb yast2-ntp-client-3.2.2/src/include/ntp-client/commandline.rb yast2-ntp-client-3.2.2/src/include/ntp-client/dialogs.rb yast2-ntp-client-3.2.2/src/include/ntp-client/wizards.rb yast2-ntp-client-3.2.2/src/include/ntp-client/misc.rb yast2-ntp-client-3.2.2/MAINTAINER yast2-ntp-client-3.2.2/package/ yast2-ntp-client-3.2.2/package/yast2-ntp-client.changes yast2-ntp-client-3.2.2/package/yast2-ntp-client.spec yast2-ntp-client-3.2.2/RPMNAME yast2-ntp-client-3.2.2/doc/ yast2-ntp-client-3.2.2/doc/TODO yast2-ntp-client-3.2.2/doc/spec.txt yast2-ntp-client-3.2.2/doc/ntp.conf_agent.txt yast2-ntp-client-3.2.2/.coveralls.yml yast2-ntp-client-3.2.2/test/ yast2-ntp-client-3.2.2/test/cfa/ yast2-ntp-client-3.2.2/test/cfa/ntp_conf_test.rb yast2-ntp-client-3.2.2/test/test_helper.rb yast2-ntp-client-3.2.2/test/misc_test.rb yast2-ntp-client-3.2.2/test/ntp_client_test.rb yast2-ntp-client-3.2.2/test/fixtures/ yast2-ntp-client-3.2.2/test/fixtures/cfa/ yast2-ntp-client-3.2.2/test/fixtures/cfa/ntp.conf yast2-ntp-client-3.2.2/test/data/ yast2-ntp-client-3.2.2/test/data/scr_root/ yast2-ntp-client-3.2.2/test/data/scr_root/etc/ yast2-ntp-client-3.2.2/test/data/scr_root/etc/ntp.conf.original yast2-ntp-client-3.2.2/test/data/scr_root/usr/ yast2-ntp-client-3.2.2/test/data/scr_root/usr/share/ yast2-ntp-client-3.2.2/test/data/scr_root/usr/share/YaST2/ yast2-ntp-client-3.2.2/test/data/scr_root/usr/share/YaST2/data/ yast2-ntp-client-3.2.2/test/data/scr_root/usr/share/YaST2/data/country.ycp yast2-ntp-client-3.2.2/test/data/scr_root/usr/share/YaST2/data/ntp_servers.yml yast2-ntp-client-3.2.2/test/data/ntp_servers.yml yast2-ntp-client-3.2.2/test/data/scr_root_read/ yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/ yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/sysconfig/ yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/sysconfig/network/ yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/sysconfig/network/config/ yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/sysconfig/network/config/config yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/sysconfig/ntp yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/ntp.conf yast2-ntp-client-3.2.2/test/data/scr_root_read/etc/ntp.conf.original yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/ yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/ yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/YaST2/ yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/YaST2/data/ yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/YaST2/data/country.ycp yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/YaST2/data/ntp_servers.yml yast2-ntp-client-3.2.2/test/data/scr_root_read/usr/share/YaST2/data/ad_ntp_data.ycp yast2-ntp-client-3.2.2/.rubocop.yml yast2-ntp-client-3.2.2/.travis.yml yast2-ntp-client-3.2.2/CONTRIBUTING.md yast2-ntp-client-3.2.2/Rakefile yast2-ntp-client-3.2.2/COPYING cd - rm -rf package/yast2-ntp-client-3.2.2 osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-ntp-client Skipped files: .coveralls.yml: skipped by name match (configuration file) .gitignore: skipped by name match (version system file) .rubocop.yml: skipped by name match (configuration file) .travis.yml: skipped by name match (configuration file) CONTRIBUTING.md: skipped by name match (documentation file) COPYING: skipped by name match (already contain license) MAINTAINER: skipped by name match (configuration regex) README.md: skipped by name match (README file) RPMNAME: skipped by name match (configuration regex) Rakefile: skipped by name match (configuration regex) doc/TODO: skipped by name match (configuration regex) doc/ntp.conf_agent.txt: skipped by name match (documentation file) doc/spec.txt: skipped by name match (documentation file) package/yast2-ntp-client.changes: skipped by name match (changes file) package/yast2-ntp-client.spec: skipped by name match (configuration regex) src/autoyast-rnc/ntpclient.rnc: skipped by name match (configuration regex) src/clients/ntp-client.rb: skipped by name match (configuration regex) src/clients/ntp-client_auto.rb: skipped by name match (configuration regex) src/clients/ntp-client_finish.rb: skipped by name match (configuration regex) src/clients/ntp-client_proposal.rb: skipped by name match (configuration regex) src/data/ntp_servers.yml: skipped by name match (configuration file) src/desktop/ntp-client.desktop: skipped by name match (configuration regex) src/include/ntp-client/clocktypes.rb: skipped by name match (configuration regex) src/include/ntp-client/commandline.rb: skipped by name match (configuration regex) src/include/ntp-client/dialogs.rb: skipped by name match (configuration regex) src/include/ntp-client/helps.rb: skipped by name match (configuration regex) src/include/ntp-client/misc.rb: skipped by name match (configuration regex) src/include/ntp-client/widgets.rb: skipped by name match (configuration regex) src/include/ntp-client/wizards.rb: skipped by name match (configuration regex) src/lib/cfa/ntp_conf.rb: skipped by name match (configuration regex) src/modules/NtpClient.rb: skipped by name match (configuration regex) src/scrconf/cfg_ntp.scr: skipped by name match (configuration regex) src/scrconf/etc_ntp.scr: skipped by name match (configuration regex) test/cfa/ntp_conf_test.rb: skipped by name match (configuration regex) test/data/ntp_servers.yml: skipped by name match (configuration file) test/data/scr_root/etc/ntp.conf.original: skipped by name match (configuration regex) test/data/scr_root/usr/share/YaST2/data/country.ycp: skipped by name match (configuration regex) test/data/scr_root/usr/share/YaST2/data/ntp_servers.yml: skipped by name match (configuration file) test/data/scr_root_read/etc/ntp.conf: skipped by name match (configuration file) test/data/scr_root_read/etc/ntp.conf.original: skipped by name match (configuration regex) test/data/scr_root_read/etc/sysconfig/network/config/config: skipped by name match (configuration regex) test/data/scr_root_read/etc/sysconfig/ntp: skipped by name match (configuration regex) test/data/scr_root_read/usr/share/YaST2/data/ad_ntp_data.ycp: skipped by name match (configuration regex) test/data/scr_root_read/usr/share/YaST2/data/country.ycp: skipped by name match (configuration regex) test/data/scr_root_read/usr/share/YaST2/data/ntp_servers.yml: skipped by name match (configuration file) test/fixtures/cfa/ntp.conf: skipped by name match (configuration file) test/misc_test.rb: skipped by name match (configuration regex) test/ntp_client_test.rb: skipped by name match (configuration regex) test/test_helper.rb: skipped by name match (configuration regex) Copyright found in these files: Copyright detected as not needed in these files: All files have proper license reference. makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-ntp-client makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client-3.2.1.tar.bz2'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client-3.2.1.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client.changes'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client.spec'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', '_meta'] {} At revision 57. rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client-3.2.1.tar.bz2 rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client.changes rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client.spec cp package/yast2-ntp-client.changes <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client cp package/yast2-ntp-client.spec <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client cp package/yast2-ntp-client-3.2.2.tar.bz2 <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client osc -A 'https://api.suse.de/' addremove D yast2-ntp-client-3.2.1.tar.bz2 A yast2-ntp-client-3.2.2.tar.bz2 osc -A 'https://api.suse.de/' cat 'SUSE:SLE-12-SP3:GA' 'yast2-ntp-client' 'yast2-ntp-client.spec' > /tmp/yast-rake20161202-31917-z49abd Checking IDs in *.changes file Version has been changed in *.spec file osc -A 'https://api.suse.de/' cat 'SUSE:SLE-12-SP3:GA' 'yast2-ntp-client' 'yast2-ntp-client.changes' | diff - 'yast2-ntp-client.changes' rm -rf Devel:YaST:Head cleaning * Starting osc check... osc -A 'https://api.suse.de/' --traceback --verbose checkout 'Devel:YaST:Head' yast2-ntp-client * Done. Everything looks good. makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', '_meta'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client'] {'rev': 'latest'} A Devel:YaST:Head makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} A Devel:YaST:Head/yast2-ntp-client makeurl: https://api.suse.de ['source', 'Devel:YaST:Head'] {} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client'] {'rev': 'latest'} makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client-3.2.1.tar.bz2'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client-3.2.1.tar.bz2 makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client.changes'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client.changes makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', 'yast2-ntp-client.spec'] {'rev': '57'} A Devel:YaST:Head/yast2-ntp-client/yast2-ntp-client.spec makeurl: https://api.suse.de ['source', 'Devel:YaST:Head', 'yast2-ntp-client', '_meta'] {} At revision 57. rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client-3.2.1.tar.bz2 rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client.changes rm <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client/yast2-ntp-client.spec cp package/yast2-ntp-client.changes <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client cp package/yast2-ntp-client.spec <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client cp package/yast2-ntp-client-3.2.2.tar.bz2 <https://ci.suse.de/job/yast-ntp-client-master/ws/Devel>:YaST:Head/yast2-ntp-client osc -A 'https://api.suse.de/' addremove D yast2-ntp-client-3.2.1.tar.bz2 A yast2-ntp-client-3.2.2.tar.bz2 mkdir -p /var/tmp/Devel:YaST:Head/sle12_sp3 yes | osc -A 'https://api.suse.de/' build --no-verify --release=1 --root=/var/tmp/build-root-sle12_sp3 --keep-pkgs=/var/tmp/Devel:YaST:Head/sle12_sp3 sle12_sp3 Building package yast2-ntp-client from project Devel:YaST:Head building package... buildinfo is broken... it says: unresolvable: nothing provides rubygem(ruby:2.1.0:cfa) >= 0.4.2 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 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
https://ci.suse.de/job/yast-ntp-client-master/18/---------------------------... [...truncated 45.73 KB...] [ 8s] #raw_options [ 8s] obtains options as string [ 8s] #raw_options= [ 8s] sets options from a string [ 8s] [ 8s] CFA::NtpConf::CommandRecord [ 8s] #options [ 8s] obtains the options of the record [ 8s] #options= [ 8s] sets options to the record [ 8s] [ 8s] CFA::NtpConf::FudgeRecord [ 8s] #options [ 8s] obtains the options of the record [ 8s] #options= [ 8s] sets options to the record [ 8s] #raw_options [ 8s] obtains options as string [ 8s] #raw_options= [ 8s] sets options from a string [ 8s] [ 8s] CFA::NtpConf::RestrictRecord [ 8s] #options [ 8s] obtains the options of the record [ 8s] #options= [ 8s] sets options to the record [ 8s] #raw_options [ 8s] obtains options as string [ 8s] #raw_options= [ 8s] sets options from a string [ 8s] [ 8s] Yast::NtpClientMiscInclude [ 8s] string2opts [ 8s] given a string of options, a list of options with params and other without params [ 8s] returns a hash of parsed and unkown options [ 8s] [ 8s] #<Yast::NtpClientClass:0x00000001415590> [ 8s] #Read [ 8s] when config has been read previously [ 8s] returns true [ 8s] when config has not been read [ 9s] returns false if abort is pressed [ 9s] doesn't show progress if it is not in normal Mode [ 10s] reads network interfaces config [ 11s] reads ntp policy [ 11s] loads known ntp servers and known country names [ 12s] checks if ntpd service is enable [ 12s] reads ntp config from /etc/ntp.conf [ 13s] reads synchronization config [ 13s] reads ntpd chroot config [ 14s] returns true if all reads were performed [ 14s] when Mode is not installation [ 14s] returns false if the ntp package neither is installed nor available [ 14s] when active directory's ntp dumped data file exists [ 14s] reads active directory address from file [ 14s] #Write [ 14s] returns false if abort is pressed [ 14s] writes current ntp records to ntp config [ 14s] writes ntp policy and updates ntp with netconfig [ 14s] writes chroot ntp config [ 14s] calls SuSEFirewall.Write to check pending changes [ 14s] checks ntp service [ 14s] updates cron settings [ 14s] returns true if not aborted [ 14s] #MakePoolRecord [ 14s] returns a pool ntp record for the given country code and location [ 14s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 14s] #GetNtpServers [ 14s] when ntp servers haven't been read before [ 14s] caches known ntp servers [ 14s] returns known ntp servers [ 14s] when ntp servers have been read before [ 14s] returns known ntp servers [ 14s] #IsRandomServersServiceEnabled [ 14s] returns true if all random pool ntp servers are in use [ 14s] returns false in other case [ 14s] #DeActivateRandomPoolServersFunction [ 14s] removes random pool ntp servers from @ntp_records (FAILED - 1) [ 14s] #GetNtpServersByCountry [ 14s] gets all ntp servers [ 14s] gets all country names if given country name is an empty string [ 14s] returns a list of items with read servers (PENDING: Not yet implemented) [ 14s] #ReadSynchronization [ 14s] reads cron file [ 14s] when cron file does not exist [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when cron file exists [ 14s] when there is no cron entry [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when there is cron entry [ 14s] sets synchronize time as true if first cron entry is valid [ 14s] sets sync_interval with cron minute interval [ 14s] #reachable_ntp_server? [ 14s] given a server [ 14s] returns true if sntp test passed with IPv4 [ 14s] returns true if sntp test passed with IPv6 [ 14s] returns false if sntp test fails with IPv4 and with IPv6 [ 14s] #sntp_test [ 14s] calls sntp command with ip version 4 by default [ 14s] returns false if server is not reachable [ 14s] returns false if sntp response includes 'no UCST' [ 14s] returns true if sntp command's exit code is 0 [ 14s] #TestNtpServer [ 14s] returns true if ntp server is reachable [ 14s] returns false if ntp server is not reachable [ 14s] when given verbosity is :no_ui [ 14s] doesn't show any dialog [ 14s] when given verbosity is :result_popup [ 14s] shows Feedback Popup [ 14s] notifies with a Popup if success [ 14s] reports with an error if not reachable server [ 14s] when given vervosity is any other argument [ 14s] only shows Feedback Popup [ 14s] #GetUsedNtpServers [ 14s] returns a list of NTP servers used in the current configuration (FAILED - 2) [ 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 (FAILED - 3) [ 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 (FAILED - 4) [ 14s] initializes ntp records excluding restrict and fudge entries [ 14s] initializes restrict records [ 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 [ 15s] adds known servers to ntp_servers [ 15s] adds ntp pool servers for known countries to ntp_servers [ 15s] [ 15s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 15s] [ 15s] 1) #<Yast::NtpClientClass:0x00000001415590> #GetNtpServersByCountry returns a list of items with read servers [ 15s] # Not yet implemented [ 15s] # ./test/ntp_client_test.rb:328 [ 15s] [ 15s] Failures: [ 15s] [ 15s] 1) #<Yast::NtpClientClass:0x00000001415590> #DeActivateRandomPoolServersFunction removes random pool ntp servers from @ntp_records [ 15s] Failure/Error: expect(subject.GetUsedNtpServers.size).to eql(4) [ 15s] [ 15s] expected: 4 [ 15s] got: 0 [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:300:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 2) #<Yast::NtpClientClass:0x00000001415590> #GetUsedNtpServers returns a list of NTP servers used in the current configuration [ 15s] Failure/Error: expect(subject.GetUsedNtpServers).to eql(used_ntp_servers) [ 15s] [ 15s] expected: ["0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org", "3.pool.ntp.org"] [ 15s] got: [] [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:530:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 3) #<Yast::NtpClientClass:0x00000001415590> #deleteSyncRecord removes record entry from ntp records at given index position [ 15s] Failure/Error: expect(subject.ntp_records.size).to eql(5) [ 15s] [ 15s] expected: 5 [ 15s] got: 3 [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:650:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 4) #<Yast::NtpClientClass:0x00000001415590> #ProcessNtpConf sets configuration as read and returns true [ 15s] Failure/Error: expect(subject.ProcessNtpConf).to eql(true) [ 15s] [ 15s] expected: true [ 15s] got: false [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:671:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] Finished in 6.73 seconds (files took 1.28 seconds to load) [ 15s] 117 examples, 4 failures, 1 pending [ 15s] [ 15s] Failed examples: [ 15s] [ 15s] rspec ./test/ntp_client_test.rb:295 # #<Yast::NtpClientClass:0x00000001415590> #DeActivateRandomPoolServersFunction removes random pool ntp servers from @ntp_records [ 15s] rspec ./test/ntp_client_test.rb:525 # #<Yast::NtpClientClass:0x00000001415590> #GetUsedNtpServers returns a list of NTP servers used in the current configuration [ 15s] rspec ./test/ntp_client_test.rb:644 # #<Yast::NtpClientClass:0x00000001415590> #deleteSyncRecord removes record entry from ntp records at given index position [ 15s] rspec ./test/ntp_client_test.rb:670 # #<Yast::NtpClientClass:0x00000001415590> #ProcessNtpConf sets configuration as read and returns true [ 15s] [ 15s] rake aborted! [ 15s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 15s] [ 15s] Tasks: TOP => test:unit [ 15s] (See full trace by running task with --trace) [ 15s] error: Bad exit status from /var/tmp/rpm-tmp.kgXygm (%check) [ 15s] [ 15s] [ 15s] RPM build errors: [ 15s] Bad exit status from /var/tmp/rpm-tmp.kgXygm (%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 3.0% cache miss. 191/197 dependencies cached. 1/6 (Devel:YaST:Head) yast2-3.2.7-1.2.x86_64.rpm 2/6 (Devel:YaST:Head) yast2-country-data-3.1.30-1.35.x86_64.rpm 3/6 (Devel:YaST:Head) yast2-hardware-detection-3.1.8-1.3.x86_64.rpm 4/6 (Devel:YaST:Head) ruby2.1-rubygem-cfa-0.4.2-1.1.x86_64.rpm 5/6 (Devel:YaST:Head) ruby2.1-rubygem-yast-rake-0.2.13-2.1.x86_64.rpm 6/6 (SUSE:SLE-12-SP3:GA) hwinfo-21.37-1.1.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
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
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
https://ci.suse.de/job/yast-ntp-client-master/21/Changes: [noreply] Use the shared Docker image, update Rubocop (#68) ------------------------------------------ [...truncated 58.78 KB...] [ 8s] #raw_options= [ 8s] sets options from a string [ 8s] [ 8s] CFA::NtpConf::RestrictRecord [ 8s] #options [ 8s] obtains the options of the record (FAILED - 1) [ 8s] #options= [ 8s] sets options to the record (FAILED - 2) [ 8s] #raw_options [ 8s] obtains options as string (FAILED - 3) [ 8s] #raw_options= [ 8s] sets options from a string (FAILED - 4) [ 8s] [ 8s] Yast::NtpClientMiscInclude [ 8s] string2opts [ 8s] given a string of options, a list of options with params and other without params [ 8s] returns a hash of parsed and unkown options [ 8s] [ 8s] #<Yast::NtpClientClass:0x00000002239248> [ 8s] #AutoYaST methods [ 8s] #Import [ 8s] with a correct AutoYaST configuration file [ 8s] reads the list of peers [ 8s] reads the list of restricts [ 8s] reads synchronize flag [ 8s] reads start at boot flag [ 8s] reads start in chroot environment flag [ 8s] reads policy [ 8s] reads sync intervall [ 8s] with an empty AutoYaST configuration [ 8s] sets an empty peer list [ 8s] sets an empty restricts list [ 8s] sets default synchronize flag [ 8s] sets default start at boot flag [ 8s] sets default start in chroot environment flag [ 8s] sets default policy [ 8s] set default sync intervall [ 8s] #Export [ 8s] produces an output equivalent to #Import [ 8s] #Read [ 8s] when config has been read previously [ 8s] returns true [ 8s] when config has not been read [ 9s] returns false if abort is pressed [ 9s] doesn't show progress if it is not in normal Mode [ 10s] reads network interfaces config [ 10s] reads ntp policy [ 11s] loads known ntp servers and known country names [ 11s] checks if ntpd service is enable [ 12s] reads ntp config from /etc/ntp.conf [ 13s] reads synchronization config [ 13s] reads ntpd chroot config [ 14s] returns true if all reads were performed [ 14s] when Mode is not installation [ 14s] returns false if the ntp package neither is installed nor available [ 14s] when active directory's ntp dumped data file exists [ 14s] reads active directory address from file [ 14s] #Write [ 14s] returns false if abort is pressed [ 14s] writes current ntp records to ntp config [ 14s] writes ntp policy and updates ntp with netconfig [ 14s] writes chroot ntp config [ 14s] calls SuSEFirewall.Write to check pending changes [ 14s] checks ntp service [ 14s] updates cron settings [ 14s] returns true if not aborted [ 14s] #MakePoolRecord [ 14s] returns a pool ntp record for the given country code and location [ 14s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 14s] #GetNtpServers [ 14s] when ntp servers haven't been read before [ 14s] caches known ntp servers [ 14s] returns known ntp servers [ 14s] when ntp servers have been read before [ 14s] returns known ntp servers [ 14s] #IsRandomServersServiceEnabled [ 14s] returns true if all random pool ntp servers are in use [ 14s] returns false in other case [ 14s] #DeActivateRandomPoolServersFunction [ 14s] removes random pool ntp servers from @ntp_records [ 14s] #GetNtpServersByCountry [ 14s] gets all ntp servers [ 14s] gets all country names if given country name is an empty string [ 14s] returns a list of items with read servers (PENDING: Not yet implemented) [ 14s] #ReadSynchronization [ 14s] reads cron file [ 14s] when cron file does not exist [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when cron file exists [ 14s] when there is no cron entry [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when there is cron entry [ 14s] sets synchronize time as true if first cron entry is valid [ 14s] sets sync_interval with cron minute interval [ 14s] #reachable_ntp_server? [ 14s] given a server [ 14s] returns true if sntp test passed with IPv4 [ 14s] returns true if sntp test passed with IPv6 [ 14s] returns false if sntp test fails with IPv4 and with IPv6 [ 14s] #sntp_test [ 14s] calls sntp command with ip version 4 by default [ 14s] returns false if server is not reachable [ 14s] returns false if sntp response includes 'no UCST' [ 14s] returns true if sntp command's exit code is 0 [ 14s] #TestNtpServer [ 14s] returns true if ntp server is reachable [ 14s] returns false if ntp server is not reachable [ 14s] when given verbosity is :no_ui [ 14s] doesn't show any dialog [ 14s] when given verbosity is :result_popup [ 14s] shows Feedback Popup [ 14s] notifies with a Popup if success [ 14s] reports with an error if not reachable server [ 14s] when given vervosity is any other argument [ 14s] only shows Feedback Popup [ 14s] #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 [ 15s] removes record entry from ntp records at given index position [ 15s] #ProcessNtpConf [ 15s] returns false if config has been read previously [ 15s] returns false if config doesn't exist [ 15s] sets configuration as read and returns true [ 15s] initializes ntp records excluding restrict and fudge entries [ 15s] initializes restrict records (FAILED - 5) [ 15s] #read_ad_address! [ 15s] when there is an active directory data file [ 15s] reads and sets active directory controller [ 15s] removes data file if controller is read [ 15s] #read_chroot_config! [ 15s] reads sysconfig NTPD_RUN_CHROOTED variable [ 15s] when NTPD_RUN_CHROOTED variable doesn't exist [ 15s] returns false [ 15s] when NTPD_RUN_CHROOTED variable exists [ 15s] returns true [ 15s] sets ntpd as chrooted if variable is 'yes' [ 15s] sets ntpd as no chrooted in any other case [ 15s] #update_ntp_servers! [ 15s] initializes ntp_servers as an empty hash [ 15s] adds known servers to ntp_servers [ 15s] adds ntp pool servers for known countries to ntp_servers [ 15s] [ 15s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 15s] [ 15s] 1) #<Yast::NtpClientClass:0x00000002239248> #GetNtpServersByCountry returns a list of items with read servers [ 15s] # Not yet implemented [ 15s] # ./test/ntp_client_test.rb:427 [ 15s] [ 15s] Failures: [ 15s] [ 15s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 15s] [ 15s] expected: ["notrap", "nomodify", "nopeer"] [ 15s] got: ["default", "notrap", "nomodify", "nopeer"] [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:362:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:372:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 15s] [ 15s] expected: "notrap nomodify nopeer" [ 15s] got: "default notrap nomodify nopeer" [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:378:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:387:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 5) #<Yast::NtpClientClass:0x00000002239248> #ProcessNtpConf initializes restrict records [ 15s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 15s] [ 15s] expected: 3 [ 15s] got: 4 [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:784:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] Finished in 7.07 seconds (files took 1.07 seconds to load) [ 15s] 132 examples, 5 failures, 1 pending [ 15s] [ 15s] Failed examples: [ 15s] [ 15s] rspec ./test/cfa/ntp_conf_test.rb:361 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:367 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:377 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] rspec ./test/cfa/ntp_conf_test.rb:383 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] rspec ./test/ntp_client_test.rb:783 # #<Yast::NtpClientClass:0x00000002239248> #ProcessNtpConf initializes restrict records [ 15s] [ 15s] rake aborted! [ 15s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 15s] [ 15s] Tasks: TOP => test:unit [ 15s] (See full trace by running task with --trace) [ 15s] error: Bad exit status from /var/tmp/rpm-tmp.iDRB8i (%check) [ 15s] [ 15s] [ 15s] RPM build errors: [ 15s] Bad exit status from /var/tmp/rpm-tmp.iDRB8i (%check) [ 15s] [ 15s] vm-yast-ci-worker failed "build yast2-ntp-client.spec" at Wed Jan 4 09:50:44 UTC 2017. [ 15s] 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
https://ci.suse.de/job/yast-ntp-client-master/22/Changes: [lslezak] Use new Docker image at Travis ------------------------------------------ [...truncated 61.32 KB...] [ 8s] #raw_options= [ 8s] sets options from a string [ 8s] [ 8s] CFA::NtpConf::RestrictRecord [ 8s] #options [ 8s] obtains the options of the record (FAILED - 1) [ 8s] #options= [ 8s] sets options to the record (FAILED - 2) [ 8s] #raw_options [ 8s] obtains options as string (FAILED - 3) [ 8s] #raw_options= [ 8s] sets options from a string (FAILED - 4) [ 8s] [ 8s] Yast::NtpClientMiscInclude [ 8s] string2opts [ 8s] given a string of options, a list of options with params and other without params [ 8s] returns a hash of parsed and unkown options [ 8s] [ 8s] #<Yast::NtpClientClass:0x0000000342e840> [ 8s] #AutoYaST methods [ 8s] #Import [ 8s] with a correct AutoYaST configuration file [ 8s] reads the list of peers [ 8s] reads the list of restricts [ 8s] reads synchronize flag [ 8s] reads start at boot flag [ 8s] reads start in chroot environment flag [ 8s] reads policy [ 8s] reads sync intervall [ 8s] with an empty AutoYaST configuration [ 8s] sets an empty peer list [ 8s] sets an empty restricts list [ 8s] sets default synchronize flag [ 8s] sets default start at boot flag [ 8s] sets default start in chroot environment flag [ 8s] sets default policy [ 8s] set default sync intervall [ 8s] #Export [ 8s] produces an output equivalent to #Import [ 8s] #Read [ 8s] when config has been read previously [ 8s] returns true [ 8s] when config has not been read [ 9s] returns false if abort is pressed [ 9s] doesn't show progress if it is not in normal Mode [ 10s] reads network interfaces config [ 10s] reads ntp policy [ 11s] loads known ntp servers and known country names [ 12s] checks if ntpd service is enable [ 12s] reads ntp config from /etc/ntp.conf [ 13s] reads synchronization config [ 13s] reads ntpd chroot config [ 14s] returns true if all reads were performed [ 14s] when Mode is not installation [ 14s] returns false if the ntp package neither is installed nor available [ 14s] when active directory's ntp dumped data file exists [ 14s] reads active directory address from file [ 14s] #Write [ 14s] returns false if abort is pressed [ 14s] writes current ntp records to ntp config [ 14s] writes ntp policy and updates ntp with netconfig [ 14s] writes chroot ntp config [ 14s] calls SuSEFirewall.Write to check pending changes [ 14s] checks ntp service [ 14s] updates cron settings [ 14s] returns true if not aborted [ 14s] #MakePoolRecord [ 14s] returns a pool ntp record for the given country code and location [ 14s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 14s] #GetNtpServers [ 14s] when ntp servers haven't been read before [ 14s] caches known ntp servers [ 14s] returns known ntp servers [ 14s] when ntp servers have been read before [ 14s] returns known ntp servers [ 14s] #IsRandomServersServiceEnabled [ 14s] returns true if all random pool ntp servers are in use [ 14s] returns false in other case [ 14s] #DeActivateRandomPoolServersFunction [ 15s] removes random pool ntp servers from @ntp_records [ 15s] #GetNtpServersByCountry [ 15s] gets all ntp servers [ 15s] gets all country names if given country name is an empty string [ 15s] returns a list of items with read servers (PENDING: Not yet implemented) [ 15s] #ReadSynchronization [ 15s] reads cron file [ 15s] when cron file does not exist [ 15s] sets synchronize_time as false [ 15s] sets sync interval with default value [ 15s] when cron file exists [ 15s] when there is no cron entry [ 15s] sets synchronize_time as false [ 15s] sets sync interval with default value [ 15s] when there is cron entry [ 15s] sets synchronize time as true if first cron entry is valid [ 15s] sets sync_interval with cron minute interval [ 15s] #reachable_ntp_server? [ 15s] given a server [ 15s] returns true if sntp test passed with IPv4 [ 15s] returns true if sntp test passed with IPv6 [ 15s] returns false if sntp test fails with IPv4 and with IPv6 [ 15s] #sntp_test [ 15s] calls sntp command with ip version 4 by default [ 15s] returns false if server is not reachable [ 15s] returns false if sntp response includes 'no UCST' [ 15s] returns true if sntp command's exit code is 0 [ 15s] #TestNtpServer [ 15s] returns true if ntp server is reachable [ 15s] returns false if ntp server is not reachable [ 15s] when given verbosity is :no_ui [ 15s] doesn't show any dialog [ 15s] when given verbosity is :result_popup [ 15s] shows Feedback Popup [ 15s] notifies with a Popup if success [ 15s] reports with an error if not reachable server [ 15s] when given vervosity is any other argument [ 15s] only shows Feedback Popup [ 15s] #GetUsedNtpServers [ 15s] returns a list of NTP servers used in the current configuration [ 15s] #getSyncRecords [ 15s] returns a map's list with current synchronization related entries with index [ 15s] #selectSyncRecord [ 15s] when given index is not between -1 an ntp_records size [ 15s] returns false [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] when given index is -1 [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] returns true [ 15s] when given index is between 0 and ntp_records size [ 15s] sets selected_index as given value [ 15s] sets selected_record as the ntp_records entry for given index [ 15s] returns true [ 15s] #deleteSyncRecord [ 15s] returns false if given index is not in @ntp_records size range [ 15s] returns true otherwise [ 15s] sets modified as true if deleted record [ 15s] removes record entry from ntp records at given index position [ 15s] #ProcessNtpConf [ 15s] returns false if config has been read previously [ 15s] returns false if config doesn't exist [ 15s] sets configuration as read and returns true [ 15s] initializes ntp records excluding restrict and fudge entries [ 15s] initializes restrict records (FAILED - 5) [ 15s] #read_ad_address! [ 15s] when there is an active directory data file [ 15s] reads and sets active directory controller [ 15s] removes data file if controller is read [ 15s] #read_chroot_config! [ 15s] reads sysconfig NTPD_RUN_CHROOTED variable [ 15s] when NTPD_RUN_CHROOTED variable doesn't exist [ 15s] returns false [ 15s] when NTPD_RUN_CHROOTED variable exists [ 15s] returns true [ 15s] sets ntpd as chrooted if variable is 'yes' [ 15s] sets ntpd as no chrooted in any other case [ 15s] #update_ntp_servers! [ 15s] initializes ntp_servers as an empty hash [ 15s] adds known servers to ntp_servers [ 15s] adds ntp pool servers for known countries to ntp_servers [ 15s] [ 15s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 15s] [ 15s] 1) #<Yast::NtpClientClass:0x0000000342e840> #GetNtpServersByCountry returns a list of items with read servers [ 15s] # Not yet implemented [ 15s] # ./test/ntp_client_test.rb:427 [ 15s] [ 15s] Failures: [ 15s] [ 15s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 15s] [ 15s] expected: ["notrap", "nomodify", "nopeer"] [ 15s] got: ["default", "notrap", "nomodify", "nopeer"] [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:362:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:372:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 15s] [ 15s] expected: "notrap nomodify nopeer" [ 15s] got: "default notrap nomodify nopeer" [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:378:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:387:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 5) #<Yast::NtpClientClass:0x0000000342e840> #ProcessNtpConf initializes restrict records [ 15s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 15s] [ 15s] expected: 3 [ 15s] got: 4 [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:784:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] Finished in 7.4 seconds (files took 1.19 seconds to load) [ 15s] 132 examples, 5 failures, 1 pending [ 15s] [ 15s] Failed examples: [ 15s] [ 15s] rspec ./test/cfa/ntp_conf_test.rb:361 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:367 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:377 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] rspec ./test/cfa/ntp_conf_test.rb:383 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] rspec ./test/ntp_client_test.rb:783 # #<Yast::NtpClientClass:0x0000000342e840> #ProcessNtpConf initializes restrict records [ 15s] [ 15s] rake aborted! [ 15s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 15s] [ 15s] Tasks: TOP => test:unit [ 15s] (See full trace by running task with --trace) [ 15s] error: Bad exit status from /var/tmp/rpm-tmp.6fyipL (%check) [ 15s] [ 15s] [ 15s] RPM build errors: [ 15s] Bad exit status from /var/tmp/rpm-tmp.6fyipL (%check) [ 15s] [ 15s] yast-ci-worker-2 failed "build yast2-ntp-client.spec" at Wed Jan 18 11:31:39 UTC 2017. [ 15s] 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
https://ci.suse.de/job/yast-ntp-client-master/23/Changes: [schubi] AY: fix crash while writing settings [schubi] packaging [schubi] style [schubi] initialize correctly [schubi] style ------------------------------------------ [...truncated 59.21 KB...] [ 9s] #raw_options= [ 9s] sets options from a string [ 9s] [ 9s] CFA::NtpConf::RestrictRecord [ 9s] #options [ 9s] obtains the options of the record (FAILED - 1) [ 9s] #options= [ 9s] sets options to the record (FAILED - 2) [ 9s] #raw_options [ 9s] obtains options as string (FAILED - 3) [ 9s] #raw_options= [ 9s] sets options from a string (FAILED - 4) [ 9s] [ 9s] Yast::NtpClientMiscInclude [ 9s] string2opts [ 9s] given a string of options, a list of options with params and other without params [ 9s] returns a hash of parsed and unkown options [ 9s] [ 9s] #<Yast::NtpClientClass:0x0000000313a6c0> [ 9s] #AutoYaST methods [ 9s] #Import [ 9s] with a correct AutoYaST configuration file [ 9s] reads the list of peers [ 9s] reads the list of restricts [ 9s] reads synchronize flag [ 9s] reads start at boot flag [ 9s] reads start in chroot environment flag [ 9s] reads policy [ 9s] reads sync intervall [ 9s] with an empty AutoYaST configuration [ 9s] sets an empty peer list [ 9s] sets an empty restricts list [ 9s] sets default synchronize flag [ 9s] sets default start at boot flag [ 9s] sets default start in chroot environment flag [ 9s] sets default policy [ 9s] set default sync intervall [ 9s] #Export [ 9s] produces an output equivalent to #Import [ 9s] #Read [ 9s] when config has been read previously [ 9s] returns true [ 9s] when config has not been read [ 10s] returns false if abort is pressed [ 10s] doesn't show progress if it is not in normal Mode [ 11s] reads network interfaces config [ 11s] reads ntp policy [ 12s] loads known ntp servers and known country names [ 12s] checks if ntpd service is enable [ 13s] reads ntp config from /etc/ntp.conf [ 13s] reads synchronization config [ 14s] reads ntpd chroot config [ 14s] returns true if all reads were performed [ 14s] when Mode is not installation [ 14s] returns false if the ntp package neither is installed nor available [ 14s] when active directory's ntp dumped data file exists [ 15s] reads active directory address from file [ 15s] #Write [ 15s] returns false if abort is pressed [ 15s] writes current ntp records to ntp config [ 15s] writes ntp policy and updates ntp with netconfig [ 15s] writes chroot ntp config [ 15s] calls SuSEFirewall.Write to check pending changes [ 15s] checks ntp service [ 15s] updates cron settings [ 15s] returns true if not aborted [ 15s] #MakePoolRecord [ 15s] returns a pool ntp record for the given country code and location [ 15s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 15s] #GetNtpServers [ 15s] when ntp servers haven't been read before [ 15s] caches known ntp servers [ 15s] returns known ntp servers [ 15s] when ntp servers have been read before [ 15s] returns known ntp servers [ 15s] #IsRandomServersServiceEnabled [ 15s] returns true if all random pool ntp servers are in use [ 15s] returns false in other case [ 15s] #DeActivateRandomPoolServersFunction [ 15s] removes random pool ntp servers from @ntp_records [ 15s] #GetNtpServersByCountry [ 15s] gets all ntp servers [ 15s] gets all country names if given country name is an empty string [ 15s] returns a list of items with read servers (PENDING: Not yet implemented) [ 15s] #ReadSynchronization [ 15s] reads cron file [ 15s] when cron file does not exist [ 15s] sets synchronize_time as false [ 15s] sets sync interval with default value [ 15s] when cron file exists [ 15s] when there is no cron entry [ 15s] sets synchronize_time as false [ 15s] sets sync interval with default value [ 15s] when there is cron entry [ 15s] sets synchronize time as true if first cron entry is valid [ 15s] sets sync_interval with cron minute interval [ 15s] #reachable_ntp_server? [ 15s] given a server [ 15s] returns true if sntp test passed with IPv4 [ 15s] returns true if sntp test passed with IPv6 [ 15s] returns false if sntp test fails with IPv4 and with IPv6 [ 15s] #sntp_test [ 15s] calls sntp command with ip version 4 by default [ 15s] returns false if server is not reachable [ 15s] returns false if sntp response includes 'no UCST' [ 15s] returns true if sntp command's exit code is 0 [ 15s] #TestNtpServer [ 15s] returns true if ntp server is reachable [ 15s] returns false if ntp server is not reachable [ 15s] when given verbosity is :no_ui [ 15s] doesn't show any dialog [ 15s] when given verbosity is :result_popup [ 15s] shows Feedback Popup [ 15s] notifies with a Popup if success [ 15s] reports with an error if not reachable server [ 15s] when given vervosity is any other argument [ 15s] only shows Feedback Popup [ 15s] #GetUsedNtpServers [ 15s] returns a list of NTP servers used in the current configuration [ 15s] #getSyncRecords [ 15s] returns a map's list with current synchronization related entries with index [ 15s] #selectSyncRecord [ 15s] when given index is not between -1 an ntp_records size [ 15s] returns false [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] when given index is -1 [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] returns true [ 15s] when given index is between 0 and ntp_records size [ 15s] sets selected_index as given value [ 15s] sets selected_record as the ntp_records entry for given index [ 15s] returns true [ 15s] #deleteSyncRecord [ 15s] returns false if given index is not in @ntp_records size range [ 15s] returns true otherwise [ 15s] sets modified as true if deleted record [ 15s] removes record entry from ntp records at given index position [ 15s] #ProcessNtpConf [ 15s] returns false if config has been read previously [ 15s] returns false if config doesn't exist [ 15s] sets configuration as read and returns true [ 15s] initializes ntp records excluding restrict and fudge entries [ 15s] initializes restrict records (FAILED - 5) [ 15s] #read_ad_address! [ 15s] when there is an active directory data file [ 15s] reads and sets active directory controller [ 15s] removes data file if controller is read [ 15s] #read_chroot_config! [ 15s] reads sysconfig NTPD_RUN_CHROOTED variable [ 15s] when NTPD_RUN_CHROOTED variable doesn't exist [ 15s] returns false [ 15s] when NTPD_RUN_CHROOTED variable exists [ 15s] returns true [ 15s] sets ntpd as chrooted if variable is 'yes' [ 15s] sets ntpd as no chrooted in any other case [ 15s] #update_ntp_servers! [ 15s] initializes ntp_servers as an empty hash [ 15s] adds known servers to ntp_servers [ 15s] adds ntp pool servers for known countries to ntp_servers [ 15s] [ 15s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 15s] [ 15s] 1) #<Yast::NtpClientClass:0x0000000313a6c0> #GetNtpServersByCountry returns a list of items with read servers [ 15s] # Not yet implemented [ 15s] # ./test/ntp_client_test.rb:427 [ 15s] [ 15s] Failures: [ 15s] [ 15s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 15s] [ 15s] expected: ["notrap", "nomodify", "nopeer"] [ 15s] got: ["default", "notrap", "nomodify", "nopeer"] [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:362:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:372:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 15s] [ 15s] expected: "notrap nomodify nopeer" [ 15s] got: "default notrap nomodify nopeer" [ 15s] [ 15s] (compared using ==) [ 15s] # ./test/cfa/ntp_conf_test.rb:378:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 15s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 15s] Diff: [ 15s] @@ -1,2 +1,2 @@ [ 15s] -restrict -4 default notrap\n [ 15s] +restrict -4 notrap [ 15s] # ./test/cfa/ntp_conf_test.rb:387:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] 5) #<Yast::NtpClientClass:0x0000000313a6c0> #ProcessNtpConf initializes restrict records [ 15s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 15s] [ 15s] expected: 3 [ 15s] got: 4 [ 15s] [ 15s] (compared using eql?) [ 15s] # ./test/ntp_client_test.rb:784:in `block (3 levels) in <top (required)>' [ 15s] [ 15s] Finished in 7.09 seconds (files took 1.09 seconds to load) [ 15s] 132 examples, 5 failures, 1 pending [ 15s] [ 15s] Failed examples: [ 15s] [ 15s] rspec ./test/cfa/ntp_conf_test.rb:361 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:367 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 15s] rspec ./test/cfa/ntp_conf_test.rb:377 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 15s] rspec ./test/cfa/ntp_conf_test.rb:383 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 15s] rspec ./test/ntp_client_test.rb:783 # #<Yast::NtpClientClass:0x0000000313a6c0> #ProcessNtpConf initializes restrict records [ 15s] [ 15s] rake aborted! [ 15s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 15s] [ 15s] Tasks: TOP => test:unit [ 15s] (See full trace by running task with --trace) [ 15s] error: Bad exit status from /var/tmp/rpm-tmp.EUCBRd (%check) [ 15s] [ 15s] [ 15s] RPM build errors: [ 15s] Bad exit status from /var/tmp/rpm-tmp.EUCBRd (%check) [ 15s] [ 15s] vm-yast-ci-worker failed "build yast2-ntp-client.spec" at Thu Jan 26 12:11:53 UTC 2017. [ 15s] 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
See <https://ci.suse.de/job/yast-ntp-client-master/24/display/redirect?page=changes> Changes: [jreidinger] adapt to new CFA [jreidinger] changes [jreidinger] fail if write failed [jreidinger] fix writing new records [jreidinger] fix writting new entries [jreidinger] better structure test [jreidinger] rephrase usage note [jreidinger] attempt to write real test for writting [jreidinger] use trick to reinit always module for clean testing [jreidinger] fix wrong order of test [jreidinger] update dependency [jreidinger] fix writing test to really act on changed scr and to not ignore reported [jreidinger] Add test for removing records [jreidinger] add to gitignore result of test [jreidinger] Make test really independent on each run and unify chrooting [jreidinger] make rubocop happy ------------------------------------------ [...truncated 56.18 KB...] [ 7s] CFA::NtpConf::RestrictRecord [ 7s] #options [ 8s] obtains the options of the record (FAILED - 1) [ 8s] #options= [ 8s] sets options to the record (FAILED - 2) [ 8s] #raw_options [ 8s] obtains options as string (FAILED - 3) [ 8s] #raw_options= [ 8s] sets options from a string (FAILED - 4) [ 8s] [ 8s] Yast::NtpClientMiscInclude [ 8s] string2opts [ 8s] given a string of options, a list of options with params and other without params [ 8s] returns a hash of parsed and unkown options [ 8s] [ 8s] #<Yast::NtpClientClass:0x00000001d17aa8> [ 8s] #AutoYaST methods [ 8s] #Import [ 8s] with a correct AutoYaST configuration file [ 8s] reads the list of peers [ 8s] reads the list of restricts [ 8s] reads synchronize flag [ 8s] reads start at boot flag [ 8s] reads start in chroot environment flag [ 8s] reads policy [ 8s] reads sync intervall [ 8s] with an empty AutoYaST configuration [ 8s] sets an empty peer list [ 8s] sets an empty restricts list [ 8s] sets default synchronize flag [ 8s] sets default start at boot flag [ 8s] sets default start in chroot environment flag [ 8s] sets default policy [ 8s] set default sync intervall [ 8s] #Export [ 8s] produces an output equivalent to #Import [ 8s] #Read [ 8s] when config has been read previously [ 8s] returns true [ 8s] 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 [ 10s] reads network interfaces config [ 10s] reads ntp policy [ 11s] loads known ntp servers and known country names [ 11s] checks if ntpd service is enable [ 12s] reads ntp config from /etc/ntp.conf [ 12s] reads synchronization config [ 13s] 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 [ 14s] reads active directory address from file [ 14s] #Write [ 14s] returns false if abort is pressed [ 14s] writes current ntp records to ntp config [ 14s] writes new ntp records to ntp config [ 14s] does not write removed records to ntp config [ 14s] writes ntp policy and updates ntp with netconfig [ 14s] writes chroot ntp config [ 14s] calls SuSEFirewall.Write to check pending changes [ 14s] checks ntp service [ 14s] updates cron settings [ 14s] returns true if not aborted [ 14s] #MakePoolRecord [ 14s] returns a pool ntp record for the given country code and location [ 14s] returns a pool ntp record with 'uk.pool.ntp.org' address if country code is GB [ 14s] #GetNtpServers [ 14s] when ntp servers haven't been read before [ 14s] caches known ntp servers [ 14s] returns known ntp servers [ 14s] when ntp servers have been read before [ 14s] returns known ntp servers [ 14s] #IsRandomServersServiceEnabled [ 14s] returns true if all random pool ntp servers are in use [ 14s] returns false in other case [ 14s] #DeActivateRandomPoolServersFunction [ 14s] removes random pool ntp servers from @ntp_records [ 14s] #GetNtpServersByCountry [ 14s] gets all ntp servers [ 14s] gets all country names if given country name is an empty string [ 14s] returns a list of items with read servers (PENDING: Not yet implemented) [ 14s] #ReadSynchronization [ 14s] reads cron file [ 14s] when cron file does not exist [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when cron file exists [ 14s] when there is no cron entry [ 14s] sets synchronize_time as false [ 14s] sets sync interval with default value [ 14s] when there is cron entry [ 14s] sets synchronize time as true if first cron entry is valid [ 14s] sets sync_interval with cron minute interval [ 14s] #reachable_ntp_server? [ 14s] given a server [ 14s] returns true if sntp test passed with IPv4 [ 14s] returns true if sntp test passed with IPv6 [ 14s] returns false if sntp test fails with IPv4 and with IPv6 [ 14s] #sntp_test [ 14s] calls sntp command with ip version 4 by default [ 14s] returns false if server is not reachable [ 14s] returns false if sntp response includes 'no UCST' [ 14s] returns true if sntp command's exit code is 0 [ 14s] #TestNtpServer [ 15s] returns true if ntp server is reachable [ 15s] returns false if ntp server is not reachable [ 15s] when given verbosity is :no_ui [ 15s] doesn't show any dialog [ 15s] when given verbosity is :result_popup [ 15s] shows Feedback Popup [ 15s] notifies with a Popup if success [ 15s] reports with an error if not reachable server [ 15s] when given vervosity is any other argument [ 15s] only shows Feedback Popup [ 15s] #GetUsedNtpServers [ 15s] returns a list of NTP servers used in the current configuration [ 15s] #getSyncRecords [ 15s] returns a map's list with current synchronization related entries with index [ 15s] #selectSyncRecord [ 15s] when given index is not between -1 an ntp_records size [ 15s] returns false [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] when given index is -1 [ 15s] sets selected_index as -1 [ 15s] sets selected_record as an empty hash [ 15s] returns true [ 15s] when given index is between 0 and ntp_records size [ 15s] sets selected_index as given value [ 15s] sets selected_record as the ntp_records entry for given index [ 15s] returns true [ 15s] #deleteSyncRecord [ 15s] returns false if given index is not in @ntp_records size range [ 16s] returns true otherwise [ 16s] sets modified as true if deleted record [ 16s] removes record entry from ntp records at given index position [ 16s] #ProcessNtpConf [ 16s] returns false if config has been read previously [ 16s] returns false if config doesn't exist [ 16s] sets configuration as read and returns true [ 16s] initializes ntp records excluding restrict and fudge entries [ 16s] initializes restrict records (FAILED - 5) [ 16s] #read_ad_address! [ 16s] when there is an active directory data file [ 16s] reads and sets active directory controller [ 16s] removes data file if controller is read [ 16s] #read_chroot_config! [ 16s] reads sysconfig NTPD_RUN_CHROOTED variable [ 16s] when NTPD_RUN_CHROOTED variable doesn't exist [ 16s] returns false [ 16s] when NTPD_RUN_CHROOTED variable exists [ 16s] returns true [ 16s] sets ntpd as chrooted if variable is 'yes' [ 16s] sets ntpd as no chrooted in any other case [ 16s] #update_ntp_servers! [ 16s] initializes ntp_servers as an empty hash [ 16s] adds known servers to ntp_servers [ 16s] adds ntp pool servers for known countries to ntp_servers [ 16s] [ 16s] Pending: (Failures listed here are expected and do not affect your suite's status) [ 16s] [ 16s] 1) #<Yast::NtpClientClass:0x00000001d17aa8> #GetNtpServersByCountry returns a list of items with read servers [ 16s] # Not yet implemented [ 16s] # ./test/ntp_client_test.rb:449 [ 16s] [ 16s] Failures: [ 16s] [ 16s] 1) CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 16s] Failure/Error: expect(record.options).to eq(%w(notrap nomodify nopeer)) [ 16s] [ 16s] expected: ["notrap", "nomodify", "nopeer"] [ 16s] got: ["default", "notrap", "nomodify", "nopeer"] [ 16s] [ 16s] (compared using ==) [ 16s] # ./test/cfa/ntp_conf_test.rb:381:in `block (3 levels) in <top (required)>' [ 16s] [ 16s] 2) CFA::NtpConf::RestrictRecord#options= sets options to the record [ 16s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 16s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 16s] Diff: [ 16s] @@ -1,2 +1,2 @@ [ 16s] -restrict -4 default notrap\n [ 16s] +restrict -4 notrap [ 16s] # ./test/cfa/ntp_conf_test.rb:391:in `block (3 levels) in <top (required)>' [ 16s] [ 16s] 3) CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 16s] Failure/Error: expect(record.raw_options).to eq("notrap nomodify nopeer") [ 16s] [ 16s] expected: "notrap nomodify nopeer" [ 16s] got: "default notrap nomodify nopeer" [ 16s] [ 16s] (compared using ==) [ 16s] # ./test/cfa/ntp_conf_test.rb:397:in `block (3 levels) in <top (required)>' [ 16s] [ 16s] 4) CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 16s] Failure/Error: expect(file.content).to include("restrict -4 default notrap\n") [ 16s] expected "restrict -4 notrap\n" to include "restrict -4 default notrap\n" [ 16s] Diff: [ 16s] @@ -1,2 +1,2 @@ [ 16s] -restrict -4 default notrap\n [ 16s] +restrict -4 notrap [ 16s] # ./test/cfa/ntp_conf_test.rb:406:in `block (3 levels) in <top (required)>' [ 16s] [ 16s] 5) #<Yast::NtpClientClass:0x00000001d17aa8> #ProcessNtpConf initializes restrict records [ 16s] Failure/Error: expect(subject.restrict_map.size).to eql(3) [ 16s] [ 16s] expected: 3 [ 16s] got: 4 [ 16s] [ 16s] (compared using eql?) [ 16s] # ./test/ntp_client_test.rb:786:in `block (3 levels) in <top (required)>' [ 16s] # ./test/ntp_client_test.rb:25:in `block (2 levels) in <top (required)>' [ 16s] [ 16s] Finished in 8.84 seconds (files took 0.92117 seconds to load) [ 16s] 136 examples, 5 failures, 1 pending [ 16s] [ 16s] Failed examples: [ 16s] [ 16s] rspec ./test/cfa/ntp_conf_test.rb:380 # CFA::NtpConf::RestrictRecord#options obtains the options of the record [ 16s] rspec ./test/cfa/ntp_conf_test.rb:386 # CFA::NtpConf::RestrictRecord#options= sets options to the record [ 16s] rspec ./test/cfa/ntp_conf_test.rb:396 # CFA::NtpConf::RestrictRecord#raw_options obtains options as string [ 16s] rspec ./test/cfa/ntp_conf_test.rb:402 # CFA::NtpConf::RestrictRecord#raw_options= sets options from a string [ 16s] rspec ./test/ntp_client_test.rb:784 # #<Yast::NtpClientClass:0x00000001d17aa8> #ProcessNtpConf initializes restrict records [ 16s] [ 16s] rake aborted! [ 16s] Command failed with status (1): [rspec --color --format doc 'test/cfa/ntp_c...] [ 16s] [ 16s] Tasks: TOP => test:unit [ 16s] (See full trace by running task with --trace) [ 16s] error: Bad exit status from /var/tmp/rpm-tmp.hdDTv2 (%check) [ 16s] [ 16s] [ 16s] RPM build errors: [ 16s] Bad exit status from /var/tmp/rpm-tmp.hdDTv2 (%check) [ 16s] [ 16s] vm-yast-ci-worker failed "build yast2-ntp-client.spec" at Thu Mar 23 12:25:46 UTC 2017. [ 16s] 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
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
participants (1)
-
jenkins@suse.de