Skip to content

Added prototype excludedatabases option to mysql::server::backup #461

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

Closed
wants to merge 6 commits into from
Closed

Added prototype excludedatabases option to mysql::server::backup #461

wants to merge 6 commits into from

Conversation

robrwo
Copy link

@robrwo robrwo commented Feb 21, 2014

As per #449

@igalic
Copy link
Contributor

igalic commented Feb 24, 2014

This will need spec/acceptance tests.
It would also be nice if it didn't break the existing spec/classes / spec/defines tests:

https://travis-ci.org/puppetlabs/puppetlabs-mysql/jobs/19483070#L402

Bonus, if it actually extends those tests to test this new functionality.

@@ -40,7 +40,7 @@ cleanup
<% end -%>
<% if @backupdatabases.empty? -%>
<% if @file_per_database -%>
mysql -s -r -N -e 'SHOW DATABASES' | while read dbname
mysql -s -r -N -e 'SHOW DATABASES'<% if [email protected]? %> | grep -v '^\(<%= @excludedatabases.join('\|') %>\)$'<% end %> | while read dbname
Copy link
Contributor

Choose a reason for hiding this comment

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

When you use '', there's no need to escape |, but I think you will have to add a -E option to grep (one way or another, just to be sure ;)

@igalic
Copy link
Contributor

igalic commented Mar 27, 2014

I'm sorry for neglecting this patch for so long :( I've been really busy with $dayjob.

Can you please add spec/classes/mysql_server_backup_spec.rb and spec/acceptance/mysql_bacckup_spec.rb

Once you're think you're done please rebase and squash it down to one or two commits.

@robrwo
Copy link
Author

robrwo commented Mar 27, 2014

I have no idea how to add the specs for it at the moment. Sure I can figure it out, but have been busy a bit so may take a while.

@igalic
Copy link
Contributor

igalic commented Mar 27, 2014

I'd start with rebasing so you have the latest updates to Gemfile, (and installing the latest vagrant and virtualbox), then

% bundle install

To run tests

% bundle exec rspec spec/acceptance

@igalic
Copy link
Contributor

igalic commented Apr 14, 2014

Hey @robrwo!
Any progress with the tests?

@robrwo
Copy link
Author

robrwo commented Apr 18, 2014

Hi @igalic Sorry, I've been very busy with my day job and have had no time to work on the tests.

@underscorgan
Copy link
Contributor

@robrwo thanks for the contribution, but unfortunately at this time this PR is not mergeable without a rebase and the addition of tests. I'm going to close this PR for now, but if someone wants to handle the testing and rebasing we'd be happy to review a new PR.

@robrwo
Copy link
Author

robrwo commented Dec 22, 2014

@mhaskel I'm working for a different company that doesn't use MySQL, so am unable to continue working on this patch now.

HT43-bqxFqB added a commit to ibmix-berlin/puppetlabs-mysql that referenced this pull request Jul 12, 2022
HT43-bqxFqB added a commit to ibmix-berlin/puppetlabs-mysql that referenced this pull request Aug 2, 2022
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