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

Refs #28720 - move migration params into migration plugin #63

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

wbclark
Copy link
Collaborator

@wbclark wbclark commented Feb 6, 2020

No description provided.

@ehelms
Copy link
Member

ehelms commented Feb 7, 2020

A test for this would be nice to have.

@wbclark
Copy link
Collaborator Author

wbclark commented Feb 7, 2020

A test for this would be nice to have.

Thanks for the comment, @ehelms

The previous commit added a spec test for the migration plugin, https://github.com/theforeman/puppet-pulpcore/blob/master/spec/classes/plugin_migration_spec.rb , which tests the default values of the params.

Is it better to test using non-default instead?

Copy link
Member

@ehelms ehelms left a comment

Choose a reason for hiding this comment

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

Oops, fair point!

@ehelms ehelms merged commit ccdd357 into theforeman:master Feb 7, 2020
"ssl_certfile": "<%= scope['pulpcore::mongo_db_ssl_certfile'] %>",
"verify_ssl": "<%= scope['pulpcore::mongo_db_verify_ssl'] %>",
"ca_path": "<%= scope['pulpcore::mongo_db_ca_path'] %>",
"name": "<%= scope['pulpcore::plugin::migration::mongo_db_name'] %>",
Copy link
Member

Choose a reason for hiding this comment

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

For future reference, these variables are now in scope so you can use @mongodb_db_name

Optional[String] $mongo_db_username = undef,
Optional[String] $mongo_db_password = undef,
Optional[String] $mongo_replica_set = undef,
String $mongo_db_ssl = 'False',
Copy link
Member

Choose a reason for hiding this comment

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

We should be using real booleans and only translate them in the templates. For example here Boolean $mongo_db_ssl = false. Then in the template <%= @mongo_db_ssl ? 'True' : 'False' %>. The same goes for the ssl verify parameter.

String $mongo_db_seeds = 'localhost:27017',
Optional[String] $mongo_db_username = undef,
Optional[String] $mongo_db_password = undef,
Optional[String] $mongo_replica_set = undef,
Copy link
Member

Choose a reason for hiding this comment

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

This parameter doesn't match the documentation which is for mongo_db_replica_set.

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