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 7783 - Test Audit making testing more efficient #1162

Merged
merged 3 commits into from
Mar 4, 2019

Conversation

lionce
Copy link
Contributor

@lionce lionce commented Feb 27, 2019

  • Idempotent Function
  • removed acceptance tests which are covered by unit tests
  • removed deprecated functions and attached tests
  • added unit tests for edge cases (increased a bit the test coverage)
  • reduced execution time
  • removed fact mysql_plugin_spec.rb, locales_spec.rb,

This effort has been realized by both myself and @Lavinia-Dan

https://jenkins-master-prod-1.delivery.puppetlabs.net/view/modules/view/linux/view/_adhoc/view/mysql/job/forge-module_puppetlabs-mysql_intn-sys_full-pe-current-adhoc/PLATFORM=redhat5-64default.a,WORKER_LABEL=beaker/

@lionce lionce force-pushed the FM-7783 branch 2 times, most recently from 280695b to 5959e5d Compare February 28, 2019 08:30
@lionce lionce force-pushed the FM-7783 branch 4 times, most recently from cf2b58b to dc4b26f Compare February 28, 2019 14:29
@@ -1,7 +1,7 @@
require 'spec_helper_acceptance'
require 'beaker/i18n_helper'

describe 'mysql localization', if: (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') && (Gem::Version.new(puppet_version) >= Gem::Version.new('4.10.5')) do
describe 'mysql localization', if: (fact('osfamily') == 'debian' || fact('osfamily') == 'redhat') && (Gem::Version.new(puppet_version) >= Gem::Version.new('4.10.5')) do
Copy link
Contributor

Choose a reason for hiding this comment

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

fact('osfamily') will need to be changed to: os[:family]
This is removing facter from the codebase and using 'serverspec' instead, serverspec is faster than facter.

@@ -31,20 +45,15 @@
run_puppet_access_login(user: 'admin') if pe_install? && (Gem::Version.new(puppet_version) >= Gem::Version.new('5.0.0'))
hosts.each do |host|
# This will be removed, this is temporary to test localisation.
if (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') &&
Copy link
Contributor

Choose a reason for hiding this comment

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

This localization code may be required, please double check in CI that localization tests run with no issues.

@pmcmaw pmcmaw changed the title FM 7783 - Cleanup mysql FM 7783 - Test Audit making testing more efficient Mar 4, 2019
@pmcmaw pmcmaw merged commit ea12c2e into puppetlabs:master Mar 4, 2019
@@ -1,21 +0,0 @@
# @summary
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed in #1299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants