-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into VaultNamespace
- Loading branch information
Showing
117 changed files
with
3,375 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.8" | ||
|
||
services: | ||
localstack: | ||
container_name: "conformance-aws-dynamodb" | ||
image: localstack/localstack:1.4.0 | ||
ports: | ||
- "127.0.0.1:4566:4566" | ||
environment: | ||
- DEBUG=1 | ||
- DOCKER_HOST=unix:///var/run/docker.sock | ||
volumes: | ||
- "${PWD}/.github/scripts/docker-compose-init/init-conformance-state-aws-dynamodb.sh:/etc/localstack/init/ready.d/init-aws.sh" # ready hook | ||
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack" | ||
- "/var/run/docker.sock:/var/run/docker.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3' | ||
services: | ||
pubsub: | ||
image: gcr.io/google.com/cloudsdktool/cloud-sdk:425.0.0-emulators | ||
ports: | ||
- "8432:8432" | ||
container_name: gcpfirestore | ||
entrypoint: gcloud beta emulators datastore start --project conf-test-project --host-port 0.0.0.0:8432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3.8" | ||
|
||
services: | ||
localstack: | ||
container_name: "conformance-aws-s3" | ||
image: localstack/localstack:1.4.0 | ||
ports: | ||
- "127.0.0.1:4566:4566" | ||
environment: | ||
- DEBUG=1 | ||
- DOCKER_HOST=unix:///var/run/docker.sock | ||
volumes: | ||
- "${PWD}/.github/scripts/docker-compose-init/init-conformance-bindings-aws-s3.sh:/etc/localstack/init/ready.d/init-aws.sh" # ready hook | ||
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack" | ||
- "/var/run/docker.sock:/var/run/docker.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
version: '2' | ||
version: "3.8" | ||
|
||
services: | ||
snssqs: | ||
image: localstack/localstack:0.13.3 | ||
container_name: snssqs | ||
environment: | ||
SERVICES: "sns,sqs,sts" | ||
DEBUG: 1 | ||
localstack: | ||
container_name: "conformance-aws-snssqs" | ||
image: localstack/localstack:1.4.0 | ||
ports: | ||
- 4566:4566 | ||
- "127.0.0.1:4566:4566" | ||
environment: | ||
- DEBUG=1 |
45 changes: 45 additions & 0 deletions
45
.github/infrastructure/terraform/certification/bindings/aws/s3/s3.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
terraform { | ||
required_version = ">=0.13" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.0" | ||
} | ||
} | ||
} | ||
|
||
variable "TIMESTAMP" { | ||
type = string | ||
description = "Timestamp of the github worklow run." | ||
} | ||
|
||
variable "UNIQUE_ID" { | ||
type = string | ||
description = "Unique Id of the github worklow run." | ||
} | ||
|
||
provider "aws" { | ||
region = "us-east-1" | ||
default_tags { | ||
tags = { | ||
Purpose = "AutomatedTesting" | ||
Timestamp = "${var.TIMESTAMP}" | ||
} | ||
} | ||
} | ||
|
||
resource "aws_s3_bucket" "dapr_bucket" { | ||
bucket = "dapr-cert-test-${var.UNIQUE_ID}" | ||
force_destroy = true | ||
tags = { | ||
dapr-topic-name = "dapr-cert-test-${var.UNIQUE_ID}" | ||
} | ||
} | ||
|
||
resource "aws_s3_bucket_ownership_controls" "dapr_bucket" { | ||
bucket = aws_s3_bucket.dapr_bucket.id | ||
rule { | ||
object_ownership = "BucketOwnerPreferred" | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
.github/infrastructure/terraform/conformance/bindings/aws/s3/s3.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
terraform { | ||
required_version = ">=0.13" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 4.0" | ||
} | ||
} | ||
} | ||
|
||
variable "TIMESTAMP" { | ||
type = string | ||
description = "Timestamp of the github worklow run." | ||
} | ||
|
||
variable "UNIQUE_ID" { | ||
type = string | ||
description = "Unique Id of the github worklow run." | ||
} | ||
|
||
provider "aws" { | ||
region = "us-east-1" | ||
default_tags { | ||
tags = { | ||
Purpose = "AutomatedTesting" | ||
Timestamp = "${var.TIMESTAMP}" | ||
} | ||
} | ||
} | ||
|
||
resource "aws_s3_bucket" "dapr_bucket" { | ||
bucket = "dapr-conformance-test-${var.UNIQUE_ID}" | ||
force_destroy = true | ||
tags = { | ||
dapr-topic-name = "dapr-conformance-test-${var.UNIQUE_ID}" | ||
} | ||
} | ||
|
||
resource "aws_s3_bucket_ownership_controls" "dapr_bucket" { | ||
bucket = aws_s3_bucket.dapr_bucket.id | ||
rule { | ||
object_ownership = "BucketOwnerPreferred" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
.github/scripts/components-scripts/certification-bindings.aws.s3-destroy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set +e | ||
|
||
# Navigate to the Terraform directory | ||
cd ".github/infrastructure/terraform/certification/bindings/aws/s3" | ||
|
||
# Run Terraform | ||
terraform destroy -auto-approve -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" |
16 changes: 16 additions & 0 deletions
16
.github/scripts/components-scripts/certification-bindings.aws.s3-setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Set variables for GitHub Actions | ||
echo "AWS_REGION=us-east-1" >> $GITHUB_ENV | ||
echo "BINDINGS_AWS_S3_BUCKET=dapr-cert-test-$UNIQUE_ID" >> $GITHUB_ENV | ||
|
||
# Navigate to the Terraform directory | ||
cd ".github/infrastructure/terraform/certification/bindings/aws/s3" | ||
|
||
# Run Terraform | ||
terraform init | ||
terraform validate -no-color | ||
terraform plan -no-color -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" | ||
terraform apply -auto-approve -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" |
7 changes: 7 additions & 0 deletions
7
.github/scripts/components-scripts/certification-state.gcp.firestore-setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Set variables for GitHub Actions | ||
echo "GCP_PROJECT_ID=$GCP_PROJECT" >> $GITHUB_ENV | ||
echo "GCP_FIRESTORE_ENTITY_KIND=CertificationTestEntity-$UNIQUE_ID" >> $GITHUB_ENV |
9 changes: 9 additions & 0 deletions
9
.github/scripts/components-scripts/conformance-bindings.aws.s3.terraform-destroy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
set +e | ||
|
||
# Navigate to the Terraform directory | ||
cd ".github/infrastructure/terraform/conformance/bindings/aws/s3" | ||
|
||
# Run Terraform | ||
terraform destroy -auto-approve -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" |
16 changes: 16 additions & 0 deletions
16
.github/scripts/components-scripts/conformance-bindings.aws.s3.terraform-setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Set variables for GitHub Actions | ||
echo "AWS_REGION=us-east-1" >> $GITHUB_ENV | ||
echo "BINDINGS_AWS_S3_BUCKET=dapr-conformance-test-$UNIQUE_ID" >> $GITHUB_ENV | ||
|
||
# Navigate to the Terraform directory | ||
cd ".github/infrastructure/terraform/conformance/bindings/aws/s3" | ||
|
||
# Run Terraform | ||
terraform init | ||
terraform validate -no-color | ||
terraform plan -no-color -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" | ||
terraform apply -auto-approve -var="UNIQUE_ID=$UNIQUE_ID" -var="TIMESTAMP=$CURRENT_TIME" |
7 changes: 7 additions & 0 deletions
7
.github/scripts/components-scripts/conformance-state.gcp.firestore-setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Set variables for GitHub Actions | ||
echo "GCP_PROJECT_ID=$GCP_PROJECT" >> $GITHUB_ENV | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.github/scripts/docker-compose-init/init-conformance-bindings-aws-s3.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
awslocal s3 mb s3://conformance-test-docker |
7 changes: 7 additions & 0 deletions
7
.github/scripts/docker-compose-init/init-conformance-state-aws-dynamodb.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
awslocal dynamodb create-table \ | ||
--table-name conformance-test-docker \ | ||
--attribute-definitions AttributeName=key,AttributeType=S \ | ||
--key-schema AttributeName=key,KeyType=HASH \ | ||
--provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.