Skip to content

Commit ddb76fc

Browse files
Alexey BogoslovskyiCostya-Y
authored andcommitted
Fixed password decryption
1 parent a1a122a commit ddb76fc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

shellfoundry/utilities/modifiers/configuration/password_modification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def normalize(self, value):
2828
)
2929
else:
3030
decoded = self._decode_encode(
31-
str(base64.decodebytes(value.encode())), encryption_key
31+
base64.decodebytes(value.encode()).decode(), encryption_key
3232
)
3333
return decoded
3434
except binascii.Error:

tests/test_models/test_install_config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ def test_two_instances_should_be_equal(self):
1818
host="localhost",
1919
port=9000,
2020
username="username",
21-
password="password",
21+
password="LAUOKwE=",
2222
domain="Global",
2323
author="Quali",
2424
online_mode="Online_mode",
2525
template_location="template_location",
2626
github_login="github_login",
27-
github_password="password",
27+
github_password="LAUOKwE=",
2828
)
2929
config2 = InstallConfig(
3030
host="localhost",
3131
port=9000,
3232
username="username",
33-
password="password",
33+
password="LAUOKwE=",
3434
domain="Global",
3535
author="Quali",
3636
online_mode="Online_mode",
3737
template_location="template_location",
3838
github_login="github_login",
39-
github_password="password",
39+
github_password="LAUOKwE=",
4040
)
4141

4242
self.assertEqual(config1, config2)
@@ -46,13 +46,13 @@ def test_two_instances_should_not_be_equal(self):
4646
"localhost",
4747
9000,
4848
"YOUR_USERNAME",
49-
"YOUR_PASSWORD",
49+
"LAUOKwE=",
5050
"Global",
5151
"author",
5252
"online_mode",
5353
"template_location",
5454
"github_login",
55-
"github_password",
55+
"LAUOKwE=",
5656
)
5757
config2 = InstallConfig(
5858
"remote",

tests/test_utilities/test_shell_installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ def test_when_install_called_it_uploads_package_to_cloudshell(
3535
"localhost",
3636
9000,
3737
"YOUR_USERNAME",
38-
"YOUR_PASSWORD",
38+
"LAUOKwE=",
3939
"Global",
4040
"author",
4141
"online_mode",
4242
"template_location",
4343
"github_login",
44-
"github_password",
44+
"LAUOKwE=",
4545
)
4646

4747
shell_installer = ShellInstaller()

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.19
1+
1.2.20

0 commit comments

Comments
 (0)