Skip to content

Commit

Permalink
Added support to accept post req for dummy server
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Chub committed Sep 10, 2024
1 parent f6dc612 commit 261966a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/resources/sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ spec:
value: /tmp/
- name: RESOURCE
value: both
- name: REQ_URL
value: http://dummy-server/reload
- name: REQ_ONCE_PER_BATCH
value: "true"
- name: LOG_LEVEL
Expand Down
6 changes: 5 additions & 1 deletion test/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ async def read_secure_data(auth: HTTPBasicCredentials = Depends(basic_auth_schem
detail=f"Incorrect user (${auth.username}) or password (${auth.password})",
headers={"WWW-Authenticate": "Basic"},
)
return 'allowed'
return 'allowed'

@app.post("/reload", status_code=201)
async def read_item():
return 201

0 comments on commit 261966a

Please sign in to comment.