Skip to content
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

tests/kola/chrony: add test to verify the DHCP propagation of NTP servers #569

Merged
merged 2 commits into from
Aug 21, 2020
Merged

tests/kola/chrony: add test to verify the DHCP propagation of NTP servers #569

merged 2 commits into from
Aug 21, 2020

Conversation

sohankunkerkar
Copy link
Member

@sohankunkerkar sohankunkerkar commented Aug 20, 2020

Writing this test to verify #412 to enable the DHCP propagation of NTP servers.
CI won't pass because it needs #412 and #543

@dustymabe
Copy link
Member

2020-08-20T20:52:57Z kola: Found non-executable file with shebang: chronydhcp

Thanks @kelvinfan001 for writing that helpful check.

@sohankunkerkar you need to make the file executable.

@dustymabe
Copy link
Member

dustymabe commented Aug 20, 2020

regarding the files: since we're re-using the chrony directory, let's move the kola.json content (which limits the platforms) into the other file and also rename it to something more appropriate. Maybe coreos-platform-chrony-generator?

If we do this I would do it in a separate commit in this PR before adding your file, which maybe we should just rename to dhcp-propagation, so the name of the test would be ext.config.chrony.dhcp-propagation.

@sohankunkerkar sohankunkerkar changed the title WIP tests/kola/chrony: add test to verify the DHCP propagation of NTP servers tests/kola/chrony: add test to verify the DHCP propagation of NTP servers Aug 20, 2020
@sohankunkerkar sohankunkerkar deleted the chronydhcp-kola-test branch August 20, 2020 22:33
@sohankunkerkar sohankunkerkar restored the chronydhcp-kola-test branch August 20, 2020 22:34
@dustymabe
Copy link
Member

Nice work Sohan! One final thing and then I think this will be ready for merge!

Can you also indent the code within the test_setup() function. The only part of that function that won't be indented is the heredoc; the cat <<EOF >Dockerfile would be indented, but all other lines up to and including the closing EOF would not be indented.

@sohankunkerkar
Copy link
Member Author

the cat <<EOF >Dockerfile would be indented, but all other lines up to and including the closing EOF would not be indented.

Yeah, I was having the same issue yesterday that's why I didn't indent the entire test_setup() function. How about know?
Does that look any better?

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The CI tests are failing (this is a good thing). So I'll focus on review for #412 and #543 and then we'll circle back here for merge.

@dustymabe
Copy link
Member

ok - re-kicked CI now that #412 and #543 are in.

…vers

Writing this test to verify #412 to enable the DHCP propagation
of NTP servers. This will also avoid any regression that might
cause in RHCOS or FCOS whenthe upstream changes come down and
obsolete the temporary work.
@dustymabe
Copy link
Member

From CI:

--- PASS: ext.fedora-coreos-config_PR-569-SVYAZ36FP6NF4RKSEFPAEHHD4SF2WAUCIV2BDXEVQBDY5X7I3W3A.chrony.dhcp-propagation (132.24s)

🎉🎉🎉

@dustymabe dustymabe merged commit 16da480 into coreos:testing-devel Aug 21, 2020
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants