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

[Request] - define either value or key not existing as expected value #8

Open
acfischer42 opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@acfischer42
Copy link

Is your feature request related to a problem? Please describe.
When there is a key that is requested to be at Default value, there are two possible passing scenarios:

  • either key is not existing, hence default value
  • or key is existing with the setting spelled out.

Example:

2.5.141 AllowPopups None     yes FALSE

AllowPopups should be set to "yes" which is the default value.
if it is set to "no" that should result in FALSE
if it is set to "yes" that should result in TRUE
if it is not existing, that should also result to TRUE

Describe the solution you'd like
I would like to have this automatically detected, but I guess that is unrealistic.
best I can think of is to have another column in the configuration that specifies if expected value is default value and evaluate that in the program - if default expected and key not existing then pass the test with TRUE.
if key exists then evaluate like today.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@acfischer42 acfischer42 added the enhancement New feature or request label Jul 9, 2020
@TheoTechnicguy TheoTechnicguy added the question Further information is requested label Jul 9, 2020
TheoTechnicguy added a commit that referenced this issue Jul 9, 2020
Version 0.1.3
Attempt 1 for #8
@TheoTechnicguy TheoTechnicguy reopened this Jul 9, 2020
TheoTechnicguy added a commit that referenced this issue Jul 9, 2020
Version 0.1.4
Add default to implement #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants