Skip to content

Bad locale environment variables #1473

Closed
@LukasAud

Description

@LukasAud

Describe the Bug

Current Debian 10 and 11 systems seems to interact badly with Puppet 6 as one of the test cases located in 00_mysql_server_spec.rb throws the following error:

1) mysql class advanced config override_options can be set
     On host `35.230.55.81'
     Failure/Error: expect(r.stderr).to be_empty
       expected `"2022-05-24 08:36:31.857002 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C\n".empty?` to be truthy, got false

Expected Behavior

These two specific scenarios should work the same way as all other OS and not require an exception in the code to pass the testing.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Environment

  • Debian 10/11
  • Puppet 6
  • MySQL module v12.0.2
  • GCP cloud testing

Additional Context

In order to avoid red test cases, the current behaviour of the module is to make an exception during the test case. As an additional note, it was expected that the was related to the line of code export locales, present in 00_mysql_server_spec.rb. However, this doesn't seem to be the case as the file itself has very little, if any, impact in the testing runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions