Skip to content

Fix tests#6

Open
n-peugnet wants to merge 5 commits intoDefangLabs:mainfrom
n-peugnet:fix-tests
Open

Fix tests#6
n-peugnet wants to merge 5 commits intoDefangLabs:mainfrom
n-peugnet:fix-tests

Conversation

@n-peugnet
Copy link
Copy Markdown

As said in #5 here are the fixes for the tests. See each commit comment for an explanation.

The tested feature has been disabled in 9c679ce
but the tests were left as is, and thus were failing.
Flatten implementation was changed in fbb2a33,
but the tests were not updated. The new behaviour is expected as seen in the
tests for flatten itself.
HTTP auth has been updated in cc17356
to include base64 validation, the test of this package have been
updated but not the global one.
We are now using values that are expected to be detected also in the
global tests.
Since e4d27d8 (in a change that does
not match the commit name), the private keys detected are returned
completely instead of juste the first line.
So the global tests had to be updated.
This reverts commit 73888f5.

This commit breaks all the TestSingleValue that contain an URL. This is
because the IniTransformer parses a colon as a key-value delimiter.
Prior to this commit the result of the INI parser were always ignored if
it consisted of a single key-value pair, and I think it is better this
way.

I don't really understand the point in trying to parse ini files beofre
looking for secrets in them anyway.
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.

1 participant