Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Validator Addition #11

Open
wants to merge 66 commits into
base: terraform
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
baf30bb
Update go version to latest (#1398)
bryan-aguilar Sep 6, 2023
7ada924
Bump the load-gen-gradle-deps group in /load-generator with 2 updates…
dependabot[bot] Sep 6, 2023
0cc3216
Bump the cdk-infra-deps group in /cdk_infra with 11 updates (#1395)
dependabot[bot] Sep 6, 2023
035ad5e
Bump the github-actions-deps group with 2 updates (#1394)
dependabot[bot] Sep 6, 2023
c71d7f8
Bump the root-gradle-deps group with 10 updates
dependabot[bot] Sep 6, 2023
021989a
Improve readability (#1384)
rapphil Sep 6, 2023
ecc7ead
Bump gopkg.in/yaml.v3 in /tools/batchTestGenerator (#1393)
dependabot[bot] Sep 6, 2023
54f412d
[release/v0.33.x] Update statsd + Disabling FeatureGate Test (#1397) …
bryan-aguilar Sep 7, 2023
189189b
Fix syntax after refactoring code
rapphil Sep 8, 2023
e37ee04
Merge pull request #1399 from aws-observability/dependabot/gradle/roo…
rapphil Sep 8, 2023
246b38c
Merge pull request #1401 from aws-observability/rapphil-fix-variables
rapphil Sep 8, 2023
c08d8b2
Bump the cdk-infra-deps group in /cdk_infra with 6 updates (#1407)
dependabot[bot] Sep 18, 2023
46493d5
Bump the root-gradle-deps group with 5 updates (#1405)
dependabot[bot] Sep 18, 2023
b04c2a2
Bump the mocked-server-grpc-metric-deps group (#1402)
dependabot[bot] Sep 18, 2023
acd4362
Bump the mocked-server-grpc-race-deps group (#1404)
dependabot[bot] Sep 18, 2023
e7fcb66
Bump the github-actions-deps group with 4 updates (#1408)
dependabot[bot] Sep 18, 2023
aaff265
Bump the mocked-server-grpc-metric-deps group
dependabot[bot] Sep 19, 2023
de1c694
Bump the mocked-server-grpc-race-deps group
dependabot[bot] Sep 19, 2023
565a510
Bump the root-gradle-deps group with 2 updates
dependabot[bot] Sep 19, 2023
b567d25
Bump the cdk-infra-deps group in /cdk_infra with 8 updates
dependabot[bot] Sep 19, 2023
47d854b
Merge pull request #1412 from aws-observability/dependabot/npm_and_ya…
rapphil Sep 25, 2023
df07024
Merge pull request #1411 from aws-observability/dependabot/gradle/roo…
rapphil Sep 25, 2023
23e3694
Merge pull request #1410 from aws-observability/dependabot/go_modules…
rapphil Sep 25, 2023
831b94e
Merge pull request #1409 from aws-observability/dependabot/go_modules…
rapphil Sep 25, 2023
825328b
Bump the mocked-server-grpc-metric-deps group
dependabot[bot] Sep 26, 2023
41b1024
Bump the github-actions-deps group with 1 update
dependabot[bot] Oct 3, 2023
5d7a6ce
Bump the cdk-infra-deps group in /cdk_infra with 7 updates
dependabot[bot] Oct 10, 2023
677525b
Bump io.opentelemetry:opentelemetry-bom from 1.30.1 to 1.31.0
dependabot[bot] Oct 10, 2023
e3c7c4f
Add Integration Tests for the Log components (#1426)
vasireddy99 Oct 10, 2023
a5c6298
Merge pull request #1433 from aws-observability/dependabot/gradle/io.…
humivo Oct 11, 2023
d8509af
Merge pull request #1416 from aws-observability/dependabot/go_modules…
humivo Oct 11, 2023
a39224c
Bump the load-gen-gradle-deps group in /load-generator with 2 updates
dependabot[bot] Oct 11, 2023
e51a84b
Bump golang.org/x/net in /mocked_servers/grpc_trace
dependabot[bot] Oct 11, 2023
0d452bb
Bump golang.org/x/net in /mocked_servers/grpc_metrics
dependabot[bot] Oct 11, 2023
a18835a
Bump the mocked-server-grpc-race-deps group
dependabot[bot] Oct 11, 2023
1e9c772
Merge pull request #1420 from aws-observability/dependabot/github_act…
humivo Oct 11, 2023
2c8eea7
Merge pull request #1430 from aws-observability/dependabot/npm_and_ya…
humivo Oct 11, 2023
90a7443
Merge pull request #1435 from aws-observability/dependabot/gradle/loa…
humivo Oct 11, 2023
ae056a9
Merge pull request #1436 from aws-observability/dependabot/go_modules…
humivo Oct 11, 2023
5e2e8b5
Merge pull request #1437 from aws-observability/dependabot/go_modules…
humivo Oct 11, 2023
4c8315b
Bump the root-gradle-deps group with 10 updates
dependabot[bot] Oct 11, 2023
dfd33bc
Merge pull request #1439 from aws-observability/dependabot/go_modules…
humivo Oct 11, 2023
e97320d
Merge pull request #1438 from aws-observability/dependabot/gradle/roo…
humivo Oct 11, 2023
c688310
Add Tests for Storage Extension and File Rotation (#1427)
vasireddy99 Oct 13, 2023
055be33
Add required wrapper files (#1440)
bryan-aguilar Oct 15, 2023
bc54408
Add step to remove cache in workflow
humivo Oct 16, 2023
209a44e
Merge pull request #1441 from humivo/RemoveCache
humivo Oct 16, 2023
5a0284a
[cdk_infra] Update clusters for EKS Supported Versions (#1447)
bryan-aguilar Oct 18, 2023
965ec7b
Initial commit, Add base for testcase
vasireddy99 Oct 18, 2023
3ba9457
Changes to validator
Danielzolty Oct 25, 2023
56a2fc2
CWLogsValidator implemets IValidator instead
Danielzolty Oct 26, 2023
4b9dccf
Expected template changes
Danielzolty Oct 26, 2023
b9ce051
Added space end of file
Danielzolty Oct 26, 2023
a19a1a4
cleaned up code
Danielzolty Oct 26, 2023
0366eab
got rid of file
Danielzolty Oct 26, 2023
2e9a5c1
changed log group name format
Danielzolty Oct 26, 2023
90657d5
Remove no-cache
Danielzolty Oct 31, 2023
9409631
changed callSampleApp location and removed no-cache
Danielzolty Oct 31, 2023
67c606d
Merge branch 'addotlplogs' of https://github.com/Danielzolty/aws-otel…
Danielzolty Oct 31, 2023
c00ee0a
updated taskdef
Danielzolty Oct 31, 2023
46dde41
added test + changed schema
Danielzolty Oct 31, 2023
63fab6e
added space end of schema
Danielzolty Oct 31, 2023
6407aa0
Added exception to validation and tests
Danielzolty Oct 31, 2023
8ea2781
PR fixes
Danielzolty Nov 1, 2023
f9d1193
did spotlessApply
Danielzolty Nov 1, 2023
1d5da21
removed logging from testcases
Danielzolty Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cdk-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
run-cdk-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TEST_FW_ASSUMABLE_ROLE_ARN }}
aws-region: us-west-2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Format Terraform
run: cd terraform && make check-fmt

Expand All @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.INTEG_TEST_TFW_ROLE_ARN }}
role-duration-seconds: 1200
aws-region: us-east-1
- name: Login to ECR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: public.ecr.aws
- name: Push validator docker image
Expand Down
31 changes: 23 additions & 8 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
validator-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
Expand All @@ -26,11 +26,11 @@ jobs:
validator-image-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build validator image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./validator
push: false
Expand All @@ -44,16 +44,16 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: '~1.18.6'
go-version: '~1.21.1'
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Unit test
run: make go-test
cdk-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
Expand All @@ -68,8 +68,23 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: test
- name: Test CDK
working-directory: cdk_infra/
run: |
npm install
npm run test
adot-testbed:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: adot-testbed build
working-directory: adot-testbed/
run: gradle build -x test
6 changes: 3 additions & 3 deletions .github/workflows/update-load-generator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TEST_FW_ASSUMABLE_ROLE_ARN }}
aws-region: us-east-1
role-duration-seconds: 7200
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
- name: Set up Java
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-test-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:
run-image-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Remove cache
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TEST_FW_ASSUMABLE_ROLE_ARN }}
aws-region: us-west-2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ override.tf.json
terraform.rc

!gradle/wrapper/gradle-wrapper.jar
!adot-testbed/gradle/wrapper/gradle-wrapper.jar

**/.DS_Store

Expand Down
12 changes: 12 additions & 0 deletions adot-testbed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Introduction

The tests require that AWS credentials are sent to the container under test. Please follow this procedure.


```
export AWS_REGION=us-west-2
export AWS_ACCESS_KEY_ID=<key>
export AWS_SECRET_ACCESS_KEY=<secret>
export AWS_SESSION_TOKEN=<session>
./gradlew test --rerun-tasks --info
```
42 changes: 42 additions & 0 deletions adot-testbed/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.2/userguide/building_java_projects.html in the Gradle documentation.
*/

plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id ("java-library")
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
// Use JUnit Jupiter for testing.
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.testcontainers:testcontainers:1.19.0")
testImplementation("org.testcontainers:junit-jupiter:1.19.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.slf4j:slf4j-simple:1.7.36")
testImplementation(platform("software.amazon.awssdk:bom:2.20.156"))
testImplementation("software.amazon.awssdk:cloudwatchlogs")
testImplementation("com.github.rholder:guava-retrying:2.0.0")
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.13.0")
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

tasks.named<Test>("test") {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
Loading
Loading