Skip to content

Commit

Permalink
use main, black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethhealy committed Nov 4, 2024
1 parent 5b749e8 commit fb16af7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/xtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
contents: read
packages: read
env:
PLATFORM_REF: "${{ inputs.platform-ref || 'fix-kas-rewrap-error-handling' }}"
JS_REF: "${{ inputs.js-ref || 'fix-rewrap-response-typo' }}"
PLATFORM_REF: "${{ inputs.platform-ref || 'main' }}"
JS_REF: "${{ inputs.js-ref || 'main' }}"
OTDFCTL_REF: "${{ inputs.otdfctl-ref || 'main' }}"
JAVA_REF: "${{ inputs.java-ref || 'main' }}"
steps:
Expand Down
6 changes: 3 additions & 3 deletions xtest/test_tdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_tdf_with_unbound_policy(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
assert False, "decrypt succeeded unexpectedly"
except subprocess.CalledProcessError as exc:
assert b"wrap" in exc.output
assert (b"tamper" in exc.output or b"InvalidFileError" in exc.output)
assert b"tamper" in exc.output or b"InvalidFileError" in exc.output


def test_tdf_with_altered_root_sig(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
Expand All @@ -136,7 +136,7 @@ def test_tdf_with_altered_root_sig(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
assert False, "decrypt succeeded unexpectedly"
except subprocess.CalledProcessError as exc:
assert b"root" in exc.output
assert (b"tamper" in exc.output or b"IntegrityError" in exc.output)
assert b"tamper" in exc.output or b"IntegrityError" in exc.output


def test_tdf_with_altered_seg_sig(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
Expand All @@ -150,7 +150,7 @@ def test_tdf_with_altered_seg_sig(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
assert False, "decrypt succeeded unexpectedly"
except subprocess.CalledProcessError as exc:
assert b"signature" in exc.output
assert (b"tamper" in exc.output or b"IntegrityError" in exc.output)
assert b"tamper" in exc.output or b"IntegrityError" in exc.output


def test_tdf_assertions(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir):
Expand Down

0 comments on commit fb16af7

Please sign in to comment.