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

Release 1.4.3 #37

Merged
merged 55 commits into from
Feb 18, 2022
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
63cf1d3
Added setup.py file for legacy support and commandline building
rad10 Jan 27, 2022
6696f67
Added section to build rpm packages
rad10 Jan 27, 2022
4e50bd3
Made setup.py better in terms of imports
rad10 Jan 27, 2022
a973a8c
Added a provides for main python wheel
rad10 Jan 27, 2022
65fc17e
Added PKGBUILD file for use on arch systems (#19)
rad10 Jan 27, 2022
05cd6b0
Merge pull request #32 from rad10/distro-setup
rad10 Jan 27, 2022
eb5829f
Merge branch 'master' into dev
rad10 Jan 27, 2022
873cb79
Added code of conduct (#25)
rad10 Jan 27, 2022
f593362
Added issue for bug reporting
rad10 Jan 27, 2022
984332c
Added issue for feature requests
rad10 Jan 27, 2022
8349848
Added security policy
rad10 Jan 27, 2022
4cfb7a1
Added contributions policy
rad10 Jan 27, 2022
a0ea772
Moved contribution docs to doc folder
rad10 Jan 27, 2022
5f4f3d7
Added shields to README (#23)
rad10 Jan 27, 2022
61fd274
Added contributing to readme.md
rad10 Jan 27, 2022
9daaac9
Removed colons from links
rad10 Jan 27, 2022
40325b4
Added placeholders for headers
rad10 Jan 27, 2022
4f46c63
Added table of contents (#23)
rad10 Jan 28, 2022
c75f09c
Added guidance for installing on distros (#23)
rad10 Jan 28, 2022
733a00b
Missed closing tag for yum command
rad10 Jan 28, 2022
dd822fa
Added description on what brutesleuth is.
rad10 Jan 28, 2022
f9e5e10
Added reason to use BruteSleuth
rad10 Jan 28, 2022
f9b6b17
Removed format guidelines in root readme and moved it into docs
rad10 Jan 28, 2022
f0d9e3e
lowered name in brutesleuth
rad10 Jan 28, 2022
5295aac
Merge pull request #34 from rad10/documentation
rad10 Jan 28, 2022
99c2d7a
Added deb_dist to ignores for deb creation
rad10 Jan 28, 2022
e9d4f75
Fixed error in PKGBUILD
rad10 Jan 28, 2022
963ddb5
Upped version to 1.4.2
rad10 Jan 28, 2022
40404bb
Properly grouped tests fro basechain
rad10 Jan 29, 2022
a39d4a4
Added test for init_formatting
rad10 Jan 29, 2022
8caaf3a
Added tests for minor functions in library
rad10 Jan 29, 2022
95885d8
Added tests for application on console
rad10 Jan 30, 2022
ee2e541
Fixed issue with string_variation test not working with one variation
rad10 Jan 30, 2022
edb5ccc
Added tests for remaining framework functions
rad10 Jan 30, 2022
082d045
Added pytest settings to vscode settings
rad10 Feb 18, 2022
fbc4f3d
Made application tests call to python rather than script directly
rad10 Feb 18, 2022
8d7ba67
Added section to package workflow to test installing package manually
rad10 Feb 18, 2022
8545243
Made package workflor test itself by installing package
rad10 Feb 18, 2022
1d56a3a
Merge branch 'dev' into testing-framework
rad10 Feb 18, 2022
bf64b4a
Added line to package pylint to add root to pythonpath
rad10 Feb 18, 2022
3dbcceb
Merge branch 'dev' into testing-framework
rad10 Feb 18, 2022
1517876
Revert "Made application tests call to python rather than script dire…
rad10 Feb 18, 2022
c023960
Added skip to testing bin application
rad10 Feb 18, 2022
456bbab
Added more test modules for remaining classes
rad10 Feb 18, 2022
51f37cf
Fixed formatting problem for basechains
rad10 Feb 18, 2022
5c82358
Added functions to other basechains for getting a random value
rad10 Feb 18, 2022
e42ff1d
Added tests for basechains random methods
rad10 Feb 18, 2022
5749759
Made index setting include base for main program
rad10 Feb 18, 2022
5b1c193
Fixed a bug that prevented single proper fstrings from working properly
rad10 Feb 18, 2022
6a830ef
Reclaimed some tests for setting position
rad10 Feb 18, 2022
bab8ef8
Removed unneeded marker
rad10 Feb 18, 2022
80388b1
Merge pull request #35 from rad10/testing-framework
rad10 Feb 18, 2022
cb68eae
Merge pull request #36 from rad10/bug-fixes
rad10 Feb 18, 2022
6346094
Added minor pipenv file to make dev work slightly easier
rad10 Feb 18, 2022
fc34516
Bumped to 1.4.3
rad10 Feb 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Made application tests call to python rather than script dire…
…ctly"

This reverts commit fbc4f3d.
  • Loading branch information
rad10 committed Feb 18, 2022
commit 151787624597f6b51b076624b23d73275ce7e3b6
16 changes: 8 additions & 8 deletions test/test_app_brutesleuth.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ def test_bin_basecase():
format_string = "{4d}"
result = "\n".join([f"{a:04d}" for a in range(10 ** 4)])+"\n"
assert result == subprocess.check_output(
["/usr/bin/python3", bin_location, format_string]).decode("utf-8")
[bin_location, format_string]).decode("utf-8")


def test_bin_length():
length = 20
format_string = "SKY-{4a}-{4d}"
result = "\n".join([f"SKY-aaaa-{a:04d}" for a in range(length)])+"\n"
assert result == subprocess.check_output(
["/usr/bin/python3", bin_location, format_string, "-l", str(length)]).decode("utf-8")
[bin_location, format_string, "-l", str(length)]).decode("utf-8")


def test_bin_setpoint():
Expand All @@ -29,31 +29,31 @@ def test_bin_setpoint():
result = "\n".join([format_string.format(start_num + a)
for a in range(length)])+"\n"
assert result == subprocess.check_output(
["/usr/bin/python3", bin_location, "SKY-{4a}-{4d}", "-l", str(length), "-s",
[bin_location, "SKY-{4a}-{4d}", "-l", str(length), "-s",
format_string.format(start_num)]).decode("utf-8")


def test_bin_random():
format_string = "SKY-{4aA}-{4d}"
internal_format = brutesleuth.init_formatting(format_string)[0]
tool_output = subprocess.check_output(
["/usr/bin/python3", bin_location, format_string, "--random"]).decode("utf-8").rstrip()
[bin_location, format_string, "--random"]).decode("utf-8").rstrip()
brutesleuth.get_string_variations(internal_format, tool_output)


def test_bin_mask():
format_string = "SKY-{4aA}-{4d}"
mask = "?l?u,SKY-?1?1?1?1-?d?d?d?d"
tool_output = subprocess.check_output(
["/usr/bin/python3", bin_location, format_string, "--mask"]).decode("utf-8").rstrip()
[bin_location, format_string, "--mask"]).decode("utf-8").rstrip()
assert tool_output == mask


def test_root_basecase():
format_string = "{4d}"
result = "\n".join([f"{a:04d}" for a in range(10 ** 4)])+"\n"
assert result == subprocess.check_output(
["/usr/bin/python3", root_location, format_string]).decode("utf-8")
[root_location, format_string]).decode("utf-8")


def test_root_length():
Expand All @@ -79,13 +79,13 @@ def test_root_random():
format_string = "SKY-{4aA}-{4d}"
internal_format = brutesleuth.init_formatting(format_string)[0]
tool_output = subprocess.check_output(
["/usr/bin/python3", root_location, format_string, "--random"]).decode("utf-8").rstrip()
[root_location, format_string, "--random"]).decode("utf-8").rstrip()
brutesleuth.get_string_variations(internal_format, tool_output)


def test_root_mask():
format_string = "SKY-{4aA}-{4d}"
mask = "?l?u,SKY-?1?1?1?1-?d?d?d?d"
tool_output = subprocess.check_output(
["/usr/bin/python3", root_location, format_string, "--mask"]).decode("utf-8").rstrip()
[root_location, format_string, "--mask"]).decode("utf-8").rstrip()
assert tool_output == mask