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

FM-8219 - Convert to litmus #855

Merged
merged 16 commits into from
Oct 3, 2019
Merged

Conversation

lionce
Copy link
Contributor

@lionce lionce commented Sep 12, 2019

https://tickets.puppetlabs.com/browse/FM-8219
we encountered some issues during our convertion to litmus

using provisioner docker_exp -> some setups were missing.
(iptables is not installed. root profile should be updated. missing folder /lib/modules/uname -r)

1. applying manifest containing inverted rule is returning error
pp.pp
class

{ '::firewall': }
firewall

{ '603 drop 80,443 traffic': chain => 'INPUT', action => 'drop', proto => 'tcp', sport => ['! http', '443'], }
Error: Parameter sport failed on Firewall[603 drop 80,443 traffic]: Munging failed for value "! http" in class sport: no such service http/tcp

2. testing ct_target_zone disconnected the machine
spec/acceptance/firewall_attributes_ipv6_happy_path_spec.rb
spec/acceptance/firewall_attributes_happy_path_spec.rb

describe 'test CT target attributes which are not available on some OS', unless:

3. connlimit not available on some operating systems
removed them from the manifest.

@lionce lionce force-pushed the convert_to_litmus branch 9 times, most recently from 12ae32a to 9867560 Compare September 17, 2019 11:09
@lionce lionce requested a review from a team as a code owner September 18, 2019 13:16
Copy link
Contributor

@tphoney tphoney left a comment

Choose a reason for hiding this comment

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

Overall great, a few changes to use litmus's helper methods. and to move the local fix out of this module. into litmus as a helper function

.rubocop.yml Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
appveyor.yml Outdated Show resolved Hide resolved
provision.yaml Outdated Show resolved Hide resolved
spec/acceptance/class_spec.rb Outdated Show resolved Hide resolved
spec/acceptance/firewallchain_spec.rb Outdated Show resolved Hide resolved
spec/acceptance/firewallchain_spec.rb Outdated Show resolved Hide resolved
shell("sed -i -e \'s/^templatedir.*$//\' #{config}")
config = run_shell('puppet config print config').stdout
run_shell("sed -i -e \'s/^templatedir.*$//\' #{config}")
run_shell('echo export LC_ALL=C > ~/.bashrc')
Copy link
Contributor

Choose a reason for hiding this comment

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

should this live somewhere else ? other modules likely need this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was needed for el platforms provisioned with docker

spec/acceptance/standard_usage_spec.rb Outdated Show resolved Hide resolved
spec/acceptance/rules_spec.rb Outdated Show resolved Hide resolved
@lionce lionce force-pushed the convert_to_litmus branch 9 times, most recently from b0934d8 to 6422370 Compare September 26, 2019 10:38
@lionce lionce changed the title WIP - Convert to litmus FM-8219 - WIP - Convert to litmus Sep 26, 2019
@lionce lionce force-pushed the convert_to_litmus branch 2 times, most recently from 1d8cc70 to 3769eab Compare September 27, 2019 14:08
@lionce lionce changed the title FM-8219 - WIP - Convert to litmus FM-8219 - Convert to litmus Oct 1, 2019
@lionce lionce force-pushed the convert_to_litmus branch from a3823c7 to eb46238 Compare October 2, 2019 09:40
@tphoney tphoney merged commit c5f2f22 into puppetlabs:master Oct 3, 2019
@tphoney tphoney added the feature label Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants