-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed some tests (bsc#983486). #66
Conversation
Josef Reidinger fixed the ntp lense in this commit: hercules-team/augeas@01e4c42 Basically before the fix it doesn't expect to have restrict records with IPv4 explicitly, as for example: restrict -4 default So before the fix "-4" was treated as an "address" and "default" as an option what is wrong. With the new lense CFA will read the ip version correctly.
@@ -359,13 +359,13 @@ def ntp_conf(file) | |||
|
|||
describe "#options" do | |||
it "obtains the options of the record" do | |||
expect(record.options).to eq(%w(default notrap nomodify nopeer)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default is not an option but an address
@@ -679,7 +683,7 @@ | |||
end | |||
|
|||
it "initializes restrict records" do | |||
expect(subject.restrict_map.size).to eql(4) | |||
expect(subject.restrict_map.size).to eql(3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically it only reads 3 restrict records because they are indexed by the "address" and
restrict -4 default
restrict -6 default
are indexed by the "default" key. With the older lense there was an error which added "-4" as an address that is the reason of having 4 entries previously.
@@ -65,9 +65,9 @@ rake install DESTDIR="%{buildroot}" | |||
%files | |||
%defattr(-,root,root) | |||
%dir %{yast_yncludedir}/ntp-client | |||
%{yast_dir}/clients/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be %{yast_clientdir}/*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
LGTM. regarding failing travis only option I see is to install somehow new lense ( from some ubuntu repo or manually ) or wait when @lslezak POC with docker will be used more widely. |
It's green now! The Docker rocks! 👍 |
Cool!!, thnx @lslezak for make our lives better!! well at least more green ;) and thnx @jreidinger for review!! |
Just fixed some tests that does not allow to build the package correctly. Travis does not complain because it uses the old ntp.lense
Josef Reidinger fixed the ntp lense in this commit:
hercules-team/augeas@01e4c42
Basically before the fix it doesn't expect to have restrict records with IPv4 explicitly, as for example:
restrict -4 default
So before the fix
-4
was treated as an address anddefault
as an *option what is wrong.With the new lense, cfa will read the IP version correctly.
IN PROCCESS
We need updated packages.