Skip to content

Commit 41a8db2

Browse files
test: Fix testing infrastructure for Neptune (#2713)
1 parent 495c1ec commit 41a8db2

File tree

4 files changed

+35
-11
lines changed

4 files changed

+35
-11
lines changed

.github/workflows/cfn-nag.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,20 @@ jobs:
4242
npm install -g aws-cdk
4343
cdk --version
4444
- uses: actions/checkout@v4
45-
- name: Set up Python ${{ matrix.python-version }}
45+
- name: Set up Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: ${{ matrix.python-version }}
48+
python-version: 3.11
4949
- name: Install Requirements
50+
run: |
51+
cd test_infra
52+
python -m pip install --upgrade pip
53+
python -m pip install poetry
54+
poetry env use python
55+
poetry env info
56+
source $(poetry env info --path)/bin/activate
57+
poetry install -vvv
58+
- name: Set up cdk.json
5059
run: |
5160
cd test_infra
5261
cat <<EOT >> cdk.context.json
@@ -61,12 +70,8 @@ jobs:
6170
]
6271
}
6372
EOT
64-
python -m pip install --upgrade pip
65-
python -m pip install poetry
66-
poetry env use python
67-
poetry env info
68-
source $(poetry env info --path)/bin/activate
69-
poetry install -vvv
73+
cat cdk.json | jq -r '.context.databases.neptune = true' | jq -r '.context.databases.oracle = true' | jq -r '.context.databases.sqlserver = true' > overwrite.cdk.json
74+
rm cdk.json && mv overwrite.cdk.json cdk.json
7075
- name: CDK Synth
7176
run: |
7277
cd test_infra

test_infra/poetry.lock

Lines changed: 20 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test_infra/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ license = "Apache License 2.0"
99
python = ">=3.8, <4.0"
1010
"aws-cdk-lib" = "^2.128.0"
1111
"aws-cdk.aws-glue-alpha" = "^2.128.0a0"
12+
"aws-cdk.aws-neptune-alpha" = "^2.128.0a0"
1213
"aws-cdk.aws-redshift-alpha" = "^2.128.0a0"

test_infra/stacks/databases_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from aws_cdk import aws_glue_alpha as glue
66
from aws_cdk import aws_iam as iam
77
from aws_cdk import aws_kms as kms
8-
from aws_cdk import aws_neptune as neptune
8+
from aws_cdk import aws_neptune_alpha as neptune
99
from aws_cdk import aws_rds as rds
1010
from aws_cdk import aws_redshift_alpha as redshift
1111
from aws_cdk import aws_redshiftserverless as redshiftserverless

0 commit comments

Comments
 (0)