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

Fix case sensitivity and update unit tests #149

Merged
merged 2 commits into from
Nov 24, 2020

Conversation

mshriver
Copy link
Member

@mshriver mshriver commented Nov 24, 2020

Thanks @mirekdlugosz for the patch suggestion in #148, I've included your change here.

Without the fix commit, you will see the following type of failure when validating the unit tests with config-full.yaml like:
testimony -n --config tests/config-full.yaml validate tests

The failure looks like the following - valid token values fail validation based on case sensitivity.

ConfigurationFileTestCase::test_case_mismatch_case_insensitive_values:221
-------------------------------------------------------------------------

* Tokens with invalid values:
  Caseautomation: Automated (type: 'choice')
  Caseimportance: Critical (type: 'choice')

Fixes #148

This can be observed by running `testimony -n --config tests/config-full.yaml validate tests`

test_case_mismatch_case_insensitive_values will be flagged for the valid, case correct tokens CaseImportance and CaseAutomation
Thanks @mirekdlugosz for the patch in issue SatelliteQE#148
Just me stealing his code and committing it

Resolves validation failing valid token values when case sensitivity is set to true
@mshriver mshriver changed the title Update unit tests to demonstrate #148 Fix case sensitivity and update unit tests Nov 24, 2020
@mshriver mshriver marked this pull request as ready for review November 24, 2020 17:28
@elyezer
Copy link
Collaborator

elyezer commented Nov 24, 2020

Travis is taking to long I will go ahead and merge this one

@elyezer elyezer merged commit 861b92c into SatelliteQE:master Nov 24, 2020
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.

Original intent of case sensitivity for choice type tokens
2 participants