Skip to content

Commit

Permalink
Improved encode test research
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Oct 25, 2022
1 parent 6594b60 commit 4e77dc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion tests/samples/encoded
@@ -1 +1,7 @@
IkF3c0FjY2Vzc0tleSI6ICJBS0lBR0lSRU9HSUFXU0tFWTUzNCIsCg==

XG5naXRfdG9rZW4gPSAiZ2lyZW9naWNyYWNrbGVjcmFja2xlMTIzMTU2NzE5MDEx

MzQxMzk4MSJc

blxuCg==

5 changes: 3 additions & 2 deletions tests/test_main.py
Expand Up @@ -369,8 +369,9 @@ def test_encoded_p(self) -> None:
cred_sweeper = CredSweeper(depth=5)
cred_sweeper.run(content_provider=content_provider)
found_credentials = cred_sweeper.credential_manager.get_credentials()
assert len(found_credentials) == 1
assert found_credentials[0].line_data_list[0].value == "AKIAGIREOGIAWSKEY534"
assert len(found_credentials) == 2
assert {"Token", "Github Old Token"} == set(i.rule_name for i in found_credentials)
assert found_credentials[0].line_data_list[0].value == "gireogicracklecrackle1231567190113413981"

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Expand Down

0 comments on commit 4e77dc9

Please sign in to comment.