-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'getmoto:master' into path-overlap-check-for-all-types-o…
…f-updates
- Loading branch information
Showing
308 changed files
with
97,508 additions
and
36,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,126 @@ | ||
{ | ||
"name": "moto", | ||
"image": "mcr.microsoft.com/devcontainers/python:0-3.11", | ||
"remoteUser": "root", | ||
"image": "mcr.microsoft.com/devcontainers/python:3.11", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {} | ||
}, | ||
"portsAttributes": { | ||
"5000": { | ||
"onAutoForward": "silent", | ||
"elevateIfNeeded": true, | ||
"protocol": "http", | ||
"requireLocalPort": false | ||
} | ||
}, | ||
"postCreateCommand": "python -m venv .venv", | ||
"postStartCommand": ". .venv/bin/activate && make init", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["ms-vscode.makefile-tools", "ms-python.python", "ms-python.black-formatter"], | ||
"extensions": [ | ||
"ms-vscode.makefile-tools", | ||
"ms-python.python", | ||
"ms-python.black-formatter" | ||
], | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv", | ||
"python.formatting.provider": "none", | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Open Port 5000", | ||
"type": "shell", | ||
"command": "bash", | ||
"args": [ | ||
"-c", | ||
"until gh codespace ports visibility 5000:public --codespace ${CODESPACE_NAME} 2>/dev/null; do sleep 1; done" | ||
], | ||
"presentation": { | ||
"reveal": "silent", | ||
"focus": false | ||
} | ||
}, | ||
{ | ||
"label": "Kill MotoServer", | ||
"type": "shell", | ||
"command": "pkill -f '${workspaceFolder}/moto/server.py'", | ||
"problemMatcher": [], | ||
"presentation": { | ||
"reveal": "silent", | ||
"focus": false | ||
} | ||
} | ||
] | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run MotoServer", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/moto/server.py", | ||
"args": [ | ||
"--reload" | ||
], | ||
"console": "internalConsole", | ||
"presentation": { | ||
"order": 11 | ||
} | ||
}, | ||
{ | ||
"name": "Run MotoServer Tests", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"console": "integratedTerminal", | ||
"preLaunchTask": "Open Port 5000", | ||
"postDebugTask": "Kill MotoServer", | ||
"env": { | ||
"TEST_SERVER_MODE": "true", | ||
"TEST_SERVER_MODE_ENDPOINT": "https://${env:CODESPACE_NAME}-5000.${env:GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" | ||
}, | ||
"presentation": { | ||
"order": 12 | ||
}, | ||
"args": [ | ||
"-sv", | ||
"--cov=moto", | ||
"--cov-report=xml", | ||
"${workspaceFolder}/tests/", | ||
"-k", | ||
"${input:pytestFilter}" | ||
] | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"id": "pytestFilter", | ||
"type": "promptString", | ||
"description": "pytest -k filter (leave empty to run all tests)", | ||
"default": "" | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "MotoServer Tests", | ||
"configurations": [ | ||
"Run MotoServer Tests", | ||
"Run MotoServer" | ||
], | ||
"presentation": { | ||
"order": 1 | ||
}, | ||
"stopAll": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"postCreateCommand": "python -m venv .venv", | ||
"postStartCommand": ". .venv/bin/activate && make init" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: C++ SDK test | ||
on: [workflow_call] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Start MotoServer | ||
run: | | ||
pip install build | ||
python -m build | ||
docker run --rm -t --name motoserver -e TEST_SERVER_MODE=true -e AWS_SECRET_ACCESS_KEY=server_secret -e AWS_ACCESS_KEY_ID=server_key -v `pwd`:/moto -p 5000:5000 -v /var/run/docker.sock:/var/run/docker.sock python:3.10-slim /moto/scripts/ci_moto_server.sh & | ||
python scripts/ci_wait_for_server.py | ||
- name: Check build cache | ||
id: build-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: other_langs/tests_cpp/build/hello_s3 | ||
key: cpp-build-${{ hashFiles('other_langs/tests_cpp/hello_s3.cpp') }} | ||
|
||
- name: Build Project | ||
if: steps.build-cache.outputs.cache-hit != 'true' | ||
working-directory: other_langs/tests_cpp | ||
run: | | ||
make build | ||
- name: Run tests | ||
working-directory: other_langs/tests_cpp | ||
run: | | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.