Skip to content

Commit 42fdb08

Browse files
committed
test
1 parent 5c145f4 commit 42fdb08

File tree

5 files changed

+51
-8
lines changed

5 files changed

+51
-8
lines changed

Examples/runtimes/java/DynamoDbEncryption/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repositories {
5656
}
5757

5858
dependencies {
59-
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:1.0-SNAPSHOT")
59+
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:3.0.0-preview-1")
6060
implementation("software.amazon.cryptography:aws-cryptographic-material-providers:1.0.0-preview-1")
6161

6262
implementation(platform("software.amazon.awssdk:bom:2.19.1"))

Examples/runtimes/java/Migration/DDBECToAWSDBE/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repositories {
5656
}
5757

5858
dependencies {
59-
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:1.0-SNAPSHOT")
59+
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:3.0.0-preview-1")
6060
implementation("software.amazon.cryptography:aws-cryptographic-material-providers:1.0.0-preview-1")
6161

6262
implementation(platform("software.amazon.awssdk:bom:2.19.1"))

Examples/runtimes/java/Migration/PlaintextToAWSDBE/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repositories {
5656
}
5757

5858
dependencies {
59-
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:1.0-SNAPSHOT")
59+
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:3.0.0-preview-1")
6060
implementation("software.amazon.cryptography:aws-cryptographic-material-providers:1.0.0-preview-1")
6161

6262
implementation(platform("software.amazon.awssdk:bom:2.19.1"))

TestVectors/runtimes/java/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ val dynamodb by configurations.creating
4848
dependencies {
4949
implementation("org.dafny:DafnyRuntime:4.0.0")
5050
implementation("software.amazon.smithy.dafny:conversion:0.1")
51-
implementation("software.amazon.cryptography:StandardLibrary:1.0-SNAPSHOT")
52-
implementation("software.amazon.cryptography:AwsCryptographyPrimitives:1.0-SNAPSHOT")
5351
implementation("software.amazon.cryptography:aws-cryptographic-material-providers:1.0.0-preview-1")
54-
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:1.0-SNAPSHOT")
55-
implementation("software.amazon.cryptography:ComAmazonawsDynamodb:1.0-SNAPSHOT")
56-
implementation("software.amazon.cryptography:ComAmazonawsKms:1.0-SNAPSHOT")
52+
implementation("software.amazon.cryptography:aws-database-encryption-sdk-dynamodb:3.0.0-preview-1")
5753
implementation("software.amazon.cryptography:TestAwsCryptographicMaterialProviders:1.0-SNAPSHOT")
5854

5955
implementation(platform("software.amazon.awssdk:bom:2.19.1"))
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
3+
4+
version: 0.2
5+
6+
env:
7+
variables:
8+
REGION: us-east-1
9+
DOMAIN: crypto-tools-internal
10+
REPOSITORY: java-dbesdk-ddb-staging
11+
parameter-store:
12+
ACCOUNT: /CodeBuild/AccountId
13+
14+
phases:
15+
install:
16+
runtime-versions:
17+
java: $JAVA_ENV_VERSION
18+
commands:
19+
- cd ..
20+
# Get Dafny
21+
- curl https://github.com/dafny-lang/dafny/releases/download/v4.1.0/dafny-4.1.0-x64-ubuntu-20.04.zip -L -o dafny.zip
22+
- unzip -qq dafny.zip && rm dafny.zip
23+
- export PATH="$PWD/dafny:$PATH"
24+
# Get Gradle 7.6
25+
- curl https://services.gradle.org/distributions/gradle-7.6-all.zip -L -o gradle.zip
26+
- unzip -qq gradle.zip && rm gradle.zip
27+
- export PATH="$PWD/gradle-7.6/bin:$PATH"
28+
- cd aws-database-encryption-sdk-dynamodb-java/
29+
pre_build:
30+
commands:
31+
# Get published CA DBESDK jar
32+
- export CODEARTIFACT_TOKEN=$(aws codeartifact get-authorization-token --domain crypto-tools-internal --domain-owner 587316601012 --region us-east-1 --query authorizationToken --output text`)
33+
- export CODEARTIFACT_REPO_URL=https://crypto-tools-internal-587316601012.d.codeartifact.us-east-1.amazonaws.com/maven/java-dbesdk-ddb-staging/
34+
# Get CI Creds to be able to call MPL TestVectors
35+
- TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-DDBEC-Dafny-Role-us-west-2" --role-session-name "CB-TestVectorResources")
36+
- export TMP_ROLE
37+
- export AWS_ACCESS_KEY_ID=$(echo "${TMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
38+
- export AWS_SECRET_ACCESS_KEY=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
39+
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
40+
- aws sts get-caller-identity
41+
build:
42+
commands:
43+
- cd TestVectorsAwsCryptographicMaterialProviders/
44+
# transpile the code only for this project
45+
- make transpile_implementation_java
46+
- make transpile_test_java
47+
- make test_java

0 commit comments

Comments
 (0)