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

Undefined external #2

Open
wants to merge 38 commits into
base: undefined_external
Choose a base branch
from

Conversation

richm
Copy link

@richm richm commented Jul 20, 2019

I'll submit a PR against your branch - we'll see how hard it is to merge

nhosoi and others added 30 commits July 12, 2019 06:29
Adding test cases to zzz-rsyslog.sh
Adding the undefined field related env vars to rsyslog/README.md.
Adding multi-container support to the rsyslog logs utility.
Adding undefined test cases 6 & 7 to test/viaq-data-model.sh.
The `if` command itself will return true or false - no need to enclose in `$( ... )`
The undefined_field mmexternal program should be quiet if undefined_debug is not set
@@ -346,11 +346,11 @@ cat > $cfgdir/66-debug.conf << EOF
 ....
-set \$!undefined12 = "True";
+set \$!undefined12 = True;
 ....
-set \$!undefined2!undefined23 = "False";
+set \$!undefined2!undefined23 = False;
remove the check for noaction.  There will always be an "action"
by this command - it will always strip empty fields.
After recursing through nested maps and arrays, check to see if
they are empty after recursing, and remove them if they are now
empty.
If we recursively cleared out a map or an array, only keep the
field if it is in keep_empty.
Only count the field against the max number of undefined fields if
we actually used it in the result.
There is no `arraymap` - it's just an `array`
test improvements - added start_rsyslog, stop_rsyslog to make it
easier and safer to change and restart rsyslog for testing
make rsyslog read from tail to speed up testing
write impstats.json for testing
@nhosoi nhosoi force-pushed the undefined_external branch from 04e09fa to c444db9 Compare July 22, 2019 18:47
@nhosoi
Copy link
Owner

nhosoi commented Jul 22, 2019

@richm, shall I also add some test cases to the unit test if there are some cases you haven't started?

@richm
Copy link
Author

richm commented Jul 22, 2019

@richm, shall I also add some test cases to the unit test if there are some cases you haven't started?

Yes, please. There is currently no test for UndefinedDotReplaceChar, or the simple UseUndefined case. There are also not tests for using all of the parameters at once, or for pathological empty field cases, like deeply nested maps of arrays of maps of arrays that have mostly empty values.

@nhosoi
Copy link
Owner

nhosoi commented Jul 22, 2019

@richm, shall I also add some test cases to the unit test if there are some cases you haven't started?

Yes, please. There is currently no test for UndefinedDotReplaceChar, or the simple UseUndefined case. There are also not tests for using all of the parameters at once, or for pathological empty field cases, like deeply nested maps of arrays of maps of arrays that have mostly empty values.

I go for UndefinedDotReplaceChar and UseUndefined...

@nhosoi nhosoi force-pushed the undefined_external branch 5 times, most recently from 0fd38a5 to ca4c8c0 Compare July 25, 2019 17:54
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.

2 participants