Skip to content

(maint) Fix i18n acceptance tests#8340

Merged
mihaibuzgau merged 1 commit intopuppetlabs:mainfrom
luchihoratiu:maint-fix-disable-i18n-acceptance-tests
Oct 1, 2020
Merged

(maint) Fix i18n acceptance tests#8340
mihaibuzgau merged 1 commit intopuppetlabs:mainfrom
luchihoratiu:maint-fix-disable-i18n-acceptance-tests

Conversation

@luchihoratiu
Copy link
Copy Markdown
Contributor

During the change of disable_i18n's default value from false to true there have been reactivated multiple acceptance tests. One of those tests, tests/i18n/modules/puppet_agent.rb, was failing constantly on the first run and passing after. This was due to puppetserver's load of puppet.conf configuration file in memory at the service's startup.

This was fixed by ensuring the desired disable_i18n value before restarting the puppetserver service and doing proper test teardown by reverting it to the original/default value. All i18n acceptance tests have been adapted in the same way.

@luchihoratiu luchihoratiu requested review from a team September 28, 2020 14:56
@luchihoratiu luchihoratiu force-pushed the maint-fix-disable-i18n-acceptance-tests branch from a610b45 to d251c78 Compare September 28, 2020 15:15
@luchihoratiu
Copy link
Copy Markdown
Contributor Author

jenkins please test this with servertests

@luchihoratiu luchihoratiu requested a review from a team September 28, 2020 15:28
@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

@joshcooper
Copy link
Copy Markdown
Contributor

Needs rebase on upstream/main to get the rubocop fix in c3a37a9

@luchihoratiu luchihoratiu force-pushed the maint-fix-disable-i18n-acceptance-tests branch 2 times, most recently from 173f51f to c152b03 Compare September 30, 2020 08:10
During the change of disable_i18n's default value from false to true
there have been reactivated multiple acceptance tests. One of those
tests, tests/i18n/modules/puppet_agent.rb, was failing constantly on the
first run and passing after. This was due to puppetserver's load of
puppet.conf configuration file in memory at the service's startup.

This was fixed by ensuring the desired disable_i18n value before
restarting the puppetserver service and doing proper test teardown by
reverting it to the original/default value. All i18n acceptance tests
have been adapted in the same way.
@luchihoratiu luchihoratiu force-pushed the maint-fix-disable-i18n-acceptance-tests branch from c152b03 to 94990bf Compare September 30, 2020 08:11
@luchihoratiu
Copy link
Copy Markdown
Contributor Author

Rebased to include the Rubocop fix and after discussing with the team, we decided to leave only the acceptance/tests/i18n/modules/puppet_agent.rb acceptance test to run in CI due to the high run time (multiple puppetserver service restarts).

@ciprianbadescu
Copy link
Copy Markdown
Contributor

jenkins please test this with servertests

@gimmyxd gimmyxd requested a review from a team September 30, 2020 12:40
@luchihoratiu luchihoratiu reopened this Sep 30, 2020
@luchihoratiu
Copy link
Copy Markdown
Contributor Author

jenkins please test this with servertests

1 similar comment
@luchihoratiu
Copy link
Copy Markdown
Contributor Author

jenkins please test this with servertests

@luchihoratiu
Copy link
Copy Markdown
Contributor Author

jenkins please test this with servertests

@luchihoratiu luchihoratiu force-pushed the maint-fix-disable-i18n-acceptance-tests branch from d03dba6 to 94990bf Compare October 1, 2020 08:24
@mihaibuzgau mihaibuzgau closed this Oct 1, 2020
@mihaibuzgau mihaibuzgau reopened this Oct 1, 2020
@mihaibuzgau mihaibuzgau merged commit 11b951b into puppetlabs:main Oct 1, 2020
@luchihoratiu luchihoratiu deleted the maint-fix-disable-i18n-acceptance-tests branch October 14, 2020 11:45
@luchihoratiu luchihoratiu restored the maint-fix-disable-i18n-acceptance-tests branch March 18, 2021 10:30
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.

6 participants