Skip to content

Commit da378b2

Browse files
committed
Add integration test for AWS ESC
- uses currently an SAP owned AWS ESC IaaS account - plan is to migrate to an CFF owned IaaS account, see proposed RFC cloudfoundry/community#1441 - requires two additional Github action secrets AWS_ESC_ACCESS_KEY_ID AWS_ESC_SECRET_ACCESS_KEY
1 parent 33a928e commit da378b2

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/s3-integration.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,61 @@ jobs:
196196
region_name: ${{ env.REGION_NAME }}
197197
stack_name: ${{ env.STACK_NAME }}
198198

199+
# AWS European Sovereign Cloud Integration
200+
aws-s3-esc-integration:
201+
name: AWS S3 European Sovereign Cloud Integration
202+
runs-on: ubuntu-latest
203+
# Run on push/workflow_dispatch, skip forks and Dependabot on PRs
204+
if: |
205+
github.event_name == 'push' ||
206+
github.event_name == 'workflow_dispatch' ||
207+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
208+
env:
209+
REGION_NAME: eusc-de-east-1
210+
STACK_NAME: s3cli-private-bucket
211+
S3_ENDPOINT_HOST: https://s3.eusc-de-east-1.amazonaws.eu
212+
213+
steps:
214+
- name: Checkout code
215+
uses: actions/checkout@v6
216+
217+
- name: Set up Go
218+
uses: actions/setup-go@v6
219+
with:
220+
go-version-file: go.mod
221+
222+
- name: Install Ginkgo
223+
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
224+
225+
- name: Setup AWS infrastructure
226+
uses: ./.github/actions/s3-integration-setup
227+
with:
228+
access_key_id: ${{ secrets.AWS_ESC_ACCESS_KEY_ID }}
229+
secret_access_key: ${{ secrets.AWS_ESC_SECRET_ACCESS_KEY }}
230+
region_name: ${{ env.REGION_NAME }}
231+
stack_name: ${{ env.STACK_NAME }}
232+
233+
- name: Run AWS ESC region tests
234+
uses: ./.github/actions/s3-integration-run
235+
with:
236+
access_key_id: ${{ secrets.AWS_ESC_ACCESS_KEY_ID }}
237+
secret_access_key: ${{ secrets.AWS_ESC_SECRET_ACCESS_KEY }}
238+
region_name: ${{ env.REGION_NAME }}
239+
stack_name: ${{ env.STACK_NAME }}
240+
s3_endpoint_host: ${{ env.S3_ENDPOINT_HOST }}
241+
focus_regex: 'GENERAL AWS|AWS V4 REGION|AWS V4 ONLY REGION'
242+
test_type: 'aws'
243+
244+
- name: Teardown AWS infrastructure
245+
if: always()
246+
uses: ./.github/actions/s3-integration-teardown
247+
with:
248+
access_key_id: ${{ secrets.AWS_ESC_ACCESS_KEY_ID }}
249+
secret_access_key: ${{ secrets.AWS_ESC_SECRET_ACCESS_KEY }}
250+
region_name: ${{ env.REGION_NAME }}
251+
stack_name: ${{ env.STACK_NAME }}
252+
253+
199254
s3-compatible-integration:
200255
name: S3 Compatible Integration
201256
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)