Skip to content

Commit d94095e

Browse files
committed
apm-2006: status endpoint with security in apim now
1 parent 9ebab1f commit d94095e

27 files changed

Lines changed: 3222 additions & 1740 deletions

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.8.2

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ clean: clean-build clean-dist clean-reports
2727
done; \
2828
wait
2929

30-
install:
30+
install: install-python
3131
@for dir in $(modules); do \
3232
make --no-print-directory -C docker/$${dir} install & \
3333
done; \
3434
wait
3535

36+
install-python:
37+
poetry install
38+
3639
update:
3740
@for dir in $(modules); do \
3841
make --no-print-directory -C docker/$${dir} update & \
@@ -50,6 +53,7 @@ clean-dist:
5053
clean-reports:
5154
rm -rf ./reports || true
5255

56+
5357
build: clean-build
5458
@for dir in $(modules); do \
5559
make --no-print-directory -C docker/$${dir} build & \
@@ -61,14 +65,15 @@ build: clean-build
6165

6266
build-proxy: build
6367

68+
_dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. e2e"
69+
6470
dist: clean-dist build
65-
mkdir -p dist/proxies
66-
cp -R build/. dist/proxies
67-
cp -R e2e/. dist/e2e
68-
# cp -R utils dist
69-
# rm -rf dist/utils/.git
71+
mkdir -p dist
72+
for f in $(_dist_include); do cp -r $$f dist; done
7073
cp ecs-proxies-deploy.yml dist/ecs-deploy-all.yml
7174

75+
release: dist
76+
7277
test: clean-reports
7378
@for dir in $(modules); do \
7479
make --no-print-directory -C docker/$${dir} test;\
@@ -96,4 +101,4 @@ pass:
96101
check-licenses: pass
97102
publish: pass
98103

99-
release: dist
104+

azure/azure-build-pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,28 @@ extends:
2828
parameters:
2929
service_name: ${{ variables.service_name }}
3030
short_service_name: ${{ variables.short_service_name }}
31+
cache_steps:
32+
- task: s3-cache-action@1
33+
inputs:
34+
key: 'node modules | ${{ variables.service_name }}/docker/async-slowapp/package-lock.json'
35+
location: '${{ variables.service_name }}/docker/async-slowapp/node_modules'
36+
debug: true
37+
alias: "node-async-slowapp"
38+
displayName: cache async-slowapp node modules
39+
- task: s3-cache-action@1
40+
inputs:
41+
key: 'node modules | ${{ variables.service_name }}/docker/sync-wrap/package-lock.json'
42+
location: '${{ variables.service_name }}/docker/sync-wrap/node_modules'
43+
alias: "node-sync-wrap"
44+
debug: true
45+
displayName: cache sync-wrap node modules
46+
- task: s3-cache-action@1
47+
inputs:
48+
key: 'poetry | ${{ variables.service_name }}/poetry.lock'
49+
location: '${{ variables.service_name }}/.venv'
50+
alias: "py-sync-wrap"
51+
debug: true
52+
displayName: cache python dependencies
3153
test_steps:
3254
- bash: "make test-report"
3355
displayName: run tests

azure/templates/e2e.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ parameters:
22
- name: test_type
33

44
steps:
5+
6+
- task: s3-cache-action@1
7+
inputs:
8+
key: 'poetry | $(SERVICE_DIR)/poetry.lock'
9+
location: '$(SERVICE_DIR)/.venv'
10+
debug: true
11+
alias: "py-sync-wrap"
12+
displayName: cache python dependencies
13+
514
- bash: |
6-
make -C e2e install
15+
make install-python
716
workingDirectory: $(SERVICE_DIR)
817
displayName: Setup e2e tests
918
@@ -12,6 +21,7 @@ steps:
1221
export SOURCE_COMMIT_ID=$(Build.SourceVersion)
1322
export APIGEE_ENVIRONMENT="$(APIGEE_ENVIRONMENT)"
1423
export SERVICE_BASE_PATH="$(SERVICE_BASE_PATH)"
24+
export STATUS_ENDPOINT_API_KEY="$(status-endpoint-api-key)"
1525
make -C e2e ${{ parameters.test_type }}
1626
1727
workingDirectory: $(SERVICE_DIR)

docker/_shared/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ clean:
1111
rm -rf ./node_modules
1212

1313
install:
14-
npm install --dev
14+
npm install --include=dev
1515

1616
update:
1717
npm update

0 commit comments

Comments
 (0)