Skip to content

Commit

Permalink
Merge pull request #107 from muzzammilshahid/adapt-to-latest-wampprot…
Browse files Browse the repository at this point in the history
…ocli

Adapt to latest changes in wampproto-cli
  • Loading branch information
Mahad-10 authored Jun 29, 2024
2 parents af89636 + b44afc7 commit 52df96d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/interoptests/auth_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ async def test_generate_challenge():
challenge = cryptosign_auth.generate_cryptosign_challenge()

signature = await run_command(
f"wampproto auth cryptosign sign-challenge --challenge {challenge} --private-key {TEST_PRIVATE_KEY}"
f"wampproto auth cryptosign sign-challenge {challenge} {TEST_PRIVATE_KEY}"
)

await run_command(
f"wampproto auth cryptosign verify-signature --signature {signature.strip()} --public-key {TEST_PUBLIC_KEY}"
f"wampproto auth cryptosign verify-signature {signature.strip()} {TEST_PUBLIC_KEY}"
)


Expand All @@ -35,7 +35,7 @@ async def test_sign_cryptosign_challenge():
full_signature = signature + challenge

await run_command(
f"wampproto auth cryptosign verify-signature --signature {full_signature} --public-key {TEST_PUBLIC_KEY}"
f"wampproto auth cryptosign verify-signature {full_signature} {TEST_PUBLIC_KEY}"
)


Expand All @@ -44,7 +44,7 @@ async def test_verify_cryptosign_signature():
challenge = await run_command("wampproto auth cryptosign generate-challenge")

signature = await run_command(
f"wampproto auth cryptosign sign-challenge --challenge {challenge.strip()} --private-key {TEST_PRIVATE_KEY}"
f"wampproto auth cryptosign sign-challenge {challenge.strip()} {TEST_PRIVATE_KEY}"
)

public_key_bytes = binascii.unhexlify(TEST_PUBLIC_KEY)
Expand Down

0 comments on commit 52df96d

Please sign in to comment.