larrot 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- larrot-1.0.0/.github/workflows/ci.yml +63 -0
- larrot-1.0.0/.gitignore +12 -0
- larrot-1.0.0/API_DOCS_RESEARCH.md +862 -0
- larrot-1.0.0/ARCHITECTURE.docx +0 -0
- larrot-1.0.0/ARCHITECTURE.md +261 -0
- larrot-1.0.0/CONFORMANCE_REPORT.md +199 -0
- larrot-1.0.0/CONTRIBUTING.md +100 -0
- larrot-1.0.0/DECISIONS.docx +0 -0
- larrot-1.0.0/DECISIONS.md +281 -0
- larrot-1.0.0/DEVELOPMENT_PLAN.md +353 -0
- larrot-1.0.0/DEVLOG.md +370 -0
- larrot-1.0.0/Dockerfile +12 -0
- larrot-1.0.0/EMPIRICAL_SPEC.md +83 -0
- larrot-1.0.0/LICENSE +176 -0
- larrot-1.0.0/PKG-INFO +173 -0
- larrot-1.0.0/PROGRESS.md +46 -0
- larrot-1.0.0/README.md +146 -0
- larrot-1.0.0/docker-compose.yml +14 -0
- larrot-1.0.0/docs/EXAMPLES.md +185 -0
- larrot-1.0.0/ims-api-research.md +486 -0
- larrot-1.0.0/larrot/__init__.py +8 -0
- larrot-1.0.0/larrot/__main__.py +39 -0
- larrot-1.0.0/larrot/app.py +241 -0
- larrot-1.0.0/larrot/cli.py +450 -0
- larrot-1.0.0/larrot/core/__init__.py +1 -0
- larrot-1.0.0/larrot/core/envelopes.py +39 -0
- larrot-1.0.0/larrot/core/jobs.py +140 -0
- larrot-1.0.0/larrot/core/profiles.py +15 -0
- larrot-1.0.0/larrot/core/ratelimit.py +57 -0
- larrot-1.0.0/larrot/core/signing.py +263 -0
- larrot-1.0.0/larrot/core/state.py +145 -0
- larrot-1.0.0/larrot/dashboard.py +126 -0
- larrot-1.0.0/larrot/middleware.py +79 -0
- larrot-1.0.0/larrot/persistence.py +63 -0
- larrot-1.0.0/larrot/services/__init__.py +1 -0
- larrot-1.0.0/larrot/services/acl.py +144 -0
- larrot-1.0.0/larrot/services/antiddos.py +23 -0
- larrot-1.0.0/larrot/services/aom.py +27 -0
- larrot-1.0.0/larrot/services/apig.py +47 -0
- larrot-1.0.0/larrot/services/as_.py +58 -0
- larrot-1.0.0/larrot/services/batch.py +59 -0
- larrot-1.0.0/larrot/services/bms.py +39 -0
- larrot-1.0.0/larrot/services/bss.py +21 -0
- larrot-1.0.0/larrot/services/cbr.py +360 -0
- larrot-1.0.0/larrot/services/cce.py +135 -0
- larrot-1.0.0/larrot/services/cci.py +129 -0
- larrot-1.0.0/larrot/services/cdn.py +181 -0
- larrot-1.0.0/larrot/services/ces.py +49 -0
- larrot-1.0.0/larrot/services/cfw.py +164 -0
- larrot-1.0.0/larrot/services/codearts.py +179 -0
- larrot-1.0.0/larrot/services/cse.py +116 -0
- larrot-1.0.0/larrot/services/css.py +159 -0
- larrot-1.0.0/larrot/services/dataarts.py +159 -0
- larrot-1.0.0/larrot/services/dbss.py +65 -0
- larrot-1.0.0/larrot/services/dc.py +168 -0
- larrot-1.0.0/larrot/services/dcs.py +44 -0
- larrot-1.0.0/larrot/services/dcs_extras.py +92 -0
- larrot-1.0.0/larrot/services/ddm.py +93 -0
- larrot-1.0.0/larrot/services/dds.py +43 -0
- larrot-1.0.0/larrot/services/des.py +73 -0
- larrot-1.0.0/larrot/services/dis.py +153 -0
- larrot-1.0.0/larrot/services/dli.py +28 -0
- larrot-1.0.0/larrot/services/dms.py +46 -0
- larrot-1.0.0/larrot/services/dns.py +111 -0
- larrot-1.0.0/larrot/services/dsc.py +101 -0
- larrot-1.0.0/larrot/services/dws.py +150 -0
- larrot-1.0.0/larrot/services/ecs.py +579 -0
- larrot-1.0.0/larrot/services/ecs_extras.py +243 -0
- larrot-1.0.0/larrot/services/ecs_keypairs.py +65 -0
- larrot-1.0.0/larrot/services/ecs_server_groups.py +61 -0
- larrot-1.0.0/larrot/services/elb.py +225 -0
- larrot-1.0.0/larrot/services/eps.py +38 -0
- larrot-1.0.0/larrot/services/er.py +172 -0
- larrot-1.0.0/larrot/services/evs.py +356 -0
- larrot-1.0.0/larrot/services/functiongraph.py +112 -0
- larrot-1.0.0/larrot/services/gaussdb.py +43 -0
- larrot-1.0.0/larrot/services/geminidb.py +72 -0
- larrot-1.0.0/larrot/services/hpc.py +68 -0
- larrot-1.0.0/larrot/services/hss.py +152 -0
- larrot-1.0.0/larrot/services/iam.py +92 -0
- larrot-1.0.0/larrot/services/ief.py +134 -0
- larrot-1.0.0/larrot/services/ims.py +223 -0
- larrot-1.0.0/larrot/services/iotda.py +48 -0
- larrot-1.0.0/larrot/services/kms.py +100 -0
- larrot-1.0.0/larrot/services/lts.py +50 -0
- larrot-1.0.0/larrot/services/modelarts.py +397 -0
- larrot-1.0.0/larrot/services/mrs.py +123 -0
- larrot-1.0.0/larrot/services/nat.py +134 -0
- larrot-1.0.0/larrot/services/obs.py +356 -0
- larrot-1.0.0/larrot/services/oms.py +91 -0
- larrot-1.0.0/larrot/services/peering.py +77 -0
- larrot-1.0.0/larrot/services/rds.py +125 -0
- larrot-1.0.0/larrot/services/rds_extras.py +257 -0
- larrot-1.0.0/larrot/services/routes.py +72 -0
- larrot-1.0.0/larrot/services/servicestage.py +168 -0
- larrot-1.0.0/larrot/services/sfs.py +106 -0
- larrot-1.0.0/larrot/services/smn.py +51 -0
- larrot-1.0.0/larrot/services/sms.py +163 -0
- larrot-1.0.0/larrot/services/swr.py +31 -0
- larrot-1.0.0/larrot/services/tms.py +23 -0
- larrot-1.0.0/larrot/services/vod.py +169 -0
- larrot-1.0.0/larrot/services/vpc.py +491 -0
- larrot-1.0.0/larrot/services/vpn.py +62 -0
- larrot-1.0.0/larrot/services/waf.py +47 -0
- larrot-1.0.0/pyproject.toml +55 -0
- larrot-1.0.0/tests/conftest.py +1 -0
- larrot-1.0.0/tests/test_20_services.py +218 -0
- larrot-1.0.0/tests/test_async_lifecycle.py +289 -0
- larrot-1.0.0/tests/test_compute.py +237 -0
- larrot-1.0.0/tests/test_core.py +201 -0
- larrot-1.0.0/tests/test_cross_service.py +332 -0
- larrot-1.0.0/tests/test_database.py +286 -0
- larrot-1.0.0/tests/test_edge_cases.py +256 -0
- larrot-1.0.0/tests/test_infra.py +331 -0
- larrot-1.0.0/tests/test_networking.py +179 -0
- larrot-1.0.0/tests/test_new_services.py +207 -0
- larrot-1.0.0/tests/test_new_services_v2.py +1096 -0
- larrot-1.0.0/tests/test_pagination_filters.py +204 -0
- larrot-1.0.0/tests/test_services.py +163 -0
- larrot-1.0.0/tools/conformance.py +335 -0
- larrot-1.0.0/tools/negative_tests.py +743 -0
- larrot-1.0.0/tools/smoke.py +232 -0
- larrot-1.0.0/tools/start.sh +14 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.11", "3.12"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: |
|
|
26
|
+
pip install fastapi uvicorn pydantic pytest pytest-asyncio httpx ruff
|
|
27
|
+
|
|
28
|
+
- name: Lint
|
|
29
|
+
run: |
|
|
30
|
+
ruff check larrot/
|
|
31
|
+
|
|
32
|
+
- name: Unit + integration tests
|
|
33
|
+
run: |
|
|
34
|
+
PYTHONPATH=. python -m pytest tests/ -v --tb=short
|
|
35
|
+
|
|
36
|
+
- name: Start server + smoke suite
|
|
37
|
+
run: |
|
|
38
|
+
PYTHONPATH=. python -c "
|
|
39
|
+
import threading, uvicorn, time
|
|
40
|
+
from larrot.app import create_app, create_obs_app
|
|
41
|
+
app = create_app()
|
|
42
|
+
obs_app = create_obs_app()
|
|
43
|
+
threading.Thread(target=lambda: uvicorn.run(app, host='127.0.0.1', port=8200, log_level='error'), daemon=True).start()
|
|
44
|
+
threading.Thread(target=lambda: uvicorn.run(obs_app, host='127.0.0.1', port=8201, log_level='error'), daemon=True).start()
|
|
45
|
+
time.sleep(2)
|
|
46
|
+
print('READY')
|
|
47
|
+
" &
|
|
48
|
+
sleep 4
|
|
49
|
+
python3 tools/smoke.py
|
|
50
|
+
|
|
51
|
+
docker:
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/checkout@v4
|
|
55
|
+
- name: Build Docker image
|
|
56
|
+
run: docker build -t larrot .
|
|
57
|
+
- name: Smoke test in Docker
|
|
58
|
+
run: |
|
|
59
|
+
docker run -d -p 8200:8200 -p 8201:8201 larrot
|
|
60
|
+
sleep 5
|
|
61
|
+
curl -s http://127.0.0.1:8200/v3/projects | grep -q "ap-southeast-1"
|
|
62
|
+
curl -s http://127.0.0.1:8201/ | grep -q "ListAllMyBucketsResult"
|
|
63
|
+
echo "Docker smoke test passed"
|