Skip to content

Commit 108cd03

Browse files
refactor
1 parent 594f273 commit 108cd03

File tree

7 files changed

+44
-47
lines changed

7 files changed

+44
-47
lines changed

buildspec.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ batch:
1111
buildspec: codebuild/py37/examples.yml
1212
env:
1313
image: aws/codebuild/standard:5.0
14-
# - identifier: py37_awses_local
15-
# buildspec: codebuild/py37/awses_local.yml
16-
# env:
17-
# image: aws/codebuild/standard:5.0
18-
# - identifier: py37_decrypt_dafny_esdk_vectors
19-
# buildspec: codebuild/py37/decrypt_dafny_esdk_vectors.yml
20-
# env:
21-
# image: aws/codebuild/standard:5.0
14+
- identifier: py37_decrypt_dafny_esdk_vectors
15+
buildspec: codebuild/py37/decrypt_dafny_esdk_vectors.yml
16+
env:
17+
image: aws/codebuild/standard:5.0
2218
- identifier: py37_decrypt_net_401_vectors
2319
buildspec: codebuild/py37/decrypt_net_401_vectors.yml
2420
env:
2521
image: aws/codebuild/standard:5.0
26-
- identifier: py37_generate_decrypt_vectors
27-
buildspec: codebuild/py37/generate_decrypt_vectors.yml
22+
- identifier: py37_encrypt_masterkey
23+
buildspec: codebuild/py37/encrypt_masterkey.yml
24+
env:
25+
image: aws/codebuild/standard:5.0
26+
- identifier: py37_generate_decrypt_vectors_masterkey
27+
buildspec: codebuild/py37/generate_decrypt_vectors_masterkey.yml
2828
env:
2929
image: aws/codebuild/standard:5.0
3030
- identifier: py37_decrypt_masterkey_with_masterkey

codebuild/py37/encrypt_masterkey.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py37-full_decrypt"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
15+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"
16+
17+
phases:
18+
install:
19+
runtime-versions:
20+
python: 3.7
21+
pre_build:
22+
commands:
23+
# Download generated vectors
24+
# TODO rewrite URL
25+
- aws s3 cp s3://generated-vectors-artifacts-bucket/$CODEBUILD_RESOLVED_SOURCE_VERSION/37_masterkey.zip 37_masterkey.zip
26+
- unzip 37_masterkey.zip
27+
build:
28+
commands:
29+
- pip install "tox < 4.0"
30+
- cd test_vector_handlers
31+
- |
32+
tox -- \
33+
--input ../37_masterkey/manifest.json

test_vector_handlers/test/integration/commands/test_i_full_message_encrypt.py

-37
This file was deleted.

test_vector_handlers/test/mpl/integration/commands/test_i_esdk_dafny_keyrings.py

Whitespace-only changes.

test_vector_handlers/test/mpl/integration/commands/test_i_net_401_keyrings.py

Whitespace-only changes.

test_vector_handlers/tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ commands =
5858
mplvectors: {[testenv:base-command]commands} test/mpl
5959
full_decrypt_generate: awses-full-message-decrypt-generate {posargs}
6060
full_decrypt: awses-full-message-decrypt {posargs}
61+
full_encrypt: awses-full-message-encrypt {posargs}
6162

6263
[testenv:full-encrypt]
6364
basepython = python3

0 commit comments

Comments
 (0)