-
-
Notifications
You must be signed in to change notification settings - Fork 28
adding tests for config #562
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
Conversation
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Hi @vsoch . Speaking about settings, here is something that I found a a little bit weird. When writing the tests for #548, to change the In this PR, it looks like I should have been able to put the whole key (joined by a colon) as the first parameter ? |
@muffato I'm glad you brought this up! So my intuition would be to do $ shpc confg set field1:value1 field2:value2 But perhaps we should limit it to setting one thing, and then always require a group of two? $ shpc confg set field1 value1 So then your example would work like: $ shpc config set wrapper_scripts:templates value Would that be a better interaction? |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
okay check out 105747d - it should work for both! Let me know if you want me to add more tests. |
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
I've done some tests. The particular behaviour I was talking about ( https://github.com/singularityhub/singularity-hpc/blob/main/shpc/tests/test_wrappers.py#L45-L48 ) was actually already fixed by 676660a. Besides changing the CLI, 105747d improves the way the changes are reported before:
after:
Regarding the CLI itself,
|
yep on it! |
…t docs Signed-off-by: vsoch <vsoch@users.noreply.github.com>
All set! a335931 I also added tests (for both formats) for add/remove. |
Signed-off-by: vsoch vsoch@users.noreply.github.com