├── .cruft.json ├── .devcontainer ├── Dockerfile_dev ├── devcontainer.json └── docker-compose_dev.yml ├── .gitattributes ├── .github └── workflows │ ├── audit-bicep.yml │ ├── azure-dev.yml │ ├── cruft.yml │ ├── devcontainer-ci.yml │ ├── format.yml │ └── tests.yml ├── .gitignore ├── .markdownlint.json ├── .vscode └── launch.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── azure.yaml ├── infra ├── core │ ├── database │ │ ├── cosmos │ │ │ ├── cosmos-account.bicep │ │ │ ├── cosmos-pg-adapter.bicep │ │ │ ├── mongo │ │ │ │ ├── cosmos-mongo-account.bicep │ │ │ │ └── cosmos-mongo-db.bicep │ │ │ └── sql │ │ │ │ ├── cosmos-sql-account.bicep │ │ │ │ ├── cosmos-sql-db.bicep │ │ │ │ ├── cosmos-sql-role-assign.bicep │ │ │ │ └── cosmos-sql-role-def.bicep │ │ └── postgresql │ │ │ ├── aca-service.bicep │ │ │ └── flexibleserver.bicep │ ├── host │ │ ├── appservice-appsettings.bicep │ │ ├── appservice.bicep │ │ ├── appserviceplan.bicep │ │ ├── container-app-upsert.bicep │ │ ├── container-app.bicep │ │ └── container-apps.bicep │ ├── monitor │ │ ├── applicationinsights-dashboard.bicep │ │ └── monitoring.bicep │ └── security │ │ ├── registry-access.bicep │ │ └── role.bicep ├── db.bicep ├── main.bicep ├── main.parameters.json ├── main.test.bicep └── web.bicep ├── ps-rule.yaml ├── pyproject.toml ├── requirements-dev.txt └── src ├── .dockerignore ├── Dockerfile ├── __init__.py ├── entrypoint.sh ├── fastapi_app ├── __init__.py ├── app.py ├── models.py └── seed_data.py ├── gunicorn.conf.py ├── pyproject.toml ├── requirements.txt ├── seed_data.json ├── static ├── manifest.json ├── res │ ├── css │ │ ├── theme.css │ │ └── theme.css.map │ └── img │ │ ├── astronaut.jpeg │ │ ├── bit_cosmos.png │ │ ├── cosmos-db.jpeg │ │ ├── favicon-120-precomposed.png │ │ ├── favicon-152-precomposed.png │ │ ├── favicon-192.png │ │ ├── favicon.ico │ │ └── small-logo.png └── scss │ └── custom.scss ├── templates ├── about.html ├── base.html ├── cruise_detail.html ├── destination_detail.html ├── destinations.html ├── index.html └── info_request_create.html └── tests ├── __init__.py ├── local ├── __init_.py ├── conftest.py ├── test_gunicorn.py └── test_playwright.py └── smoke ├── README.md ├── __init__.py ├── conftest.py └── smoketests.py /.cruft.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.cruft.json -------------------------------------------------------------------------------- /.devcontainer/Dockerfile_dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.devcontainer/Dockerfile_dev -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.devcontainer/docker-compose_dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.devcontainer/docker-compose_dev.yml -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/audit-bicep.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/audit-bicep.yml -------------------------------------------------------------------------------- /.github/workflows/azure-dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/azure-dev.yml -------------------------------------------------------------------------------- /.github/workflows/cruft.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/cruft.yml -------------------------------------------------------------------------------- /.github/workflows/devcontainer-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/devcontainer-ci.yml -------------------------------------------------------------------------------- /.github/workflows/format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/format.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.gitignore -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD013": false 3 | } 4 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/SECURITY.md -------------------------------------------------------------------------------- /azure.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/azure.yaml -------------------------------------------------------------------------------- /infra/core/database/cosmos/cosmos-account.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/cosmos-account.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/cosmos-pg-adapter.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/cosmos-pg-adapter.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/mongo/cosmos-mongo-account.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/mongo/cosmos-mongo-account.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/mongo/cosmos-mongo-db.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/mongo/cosmos-mongo-db.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/sql/cosmos-sql-account.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/sql/cosmos-sql-account.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/sql/cosmos-sql-db.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/sql/cosmos-sql-db.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/sql/cosmos-sql-role-assign.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/sql/cosmos-sql-role-assign.bicep -------------------------------------------------------------------------------- /infra/core/database/cosmos/sql/cosmos-sql-role-def.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/cosmos/sql/cosmos-sql-role-def.bicep -------------------------------------------------------------------------------- /infra/core/database/postgresql/aca-service.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/postgresql/aca-service.bicep -------------------------------------------------------------------------------- /infra/core/database/postgresql/flexibleserver.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/database/postgresql/flexibleserver.bicep -------------------------------------------------------------------------------- /infra/core/host/appservice-appsettings.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/appservice-appsettings.bicep -------------------------------------------------------------------------------- /infra/core/host/appservice.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/appservice.bicep -------------------------------------------------------------------------------- /infra/core/host/appserviceplan.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/appserviceplan.bicep -------------------------------------------------------------------------------- /infra/core/host/container-app-upsert.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/container-app-upsert.bicep -------------------------------------------------------------------------------- /infra/core/host/container-app.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/container-app.bicep -------------------------------------------------------------------------------- /infra/core/host/container-apps.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/host/container-apps.bicep -------------------------------------------------------------------------------- /infra/core/monitor/applicationinsights-dashboard.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/monitor/applicationinsights-dashboard.bicep -------------------------------------------------------------------------------- /infra/core/monitor/monitoring.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/monitor/monitoring.bicep -------------------------------------------------------------------------------- /infra/core/security/registry-access.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/security/registry-access.bicep -------------------------------------------------------------------------------- /infra/core/security/role.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/core/security/role.bicep -------------------------------------------------------------------------------- /infra/db.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/db.bicep -------------------------------------------------------------------------------- /infra/main.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/main.bicep -------------------------------------------------------------------------------- /infra/main.parameters.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/main.parameters.json -------------------------------------------------------------------------------- /infra/main.test.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/main.test.bicep -------------------------------------------------------------------------------- /infra/web.bicep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/infra/web.bicep -------------------------------------------------------------------------------- /ps-rule.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/ps-rule.yaml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /src/.dockerignore: -------------------------------------------------------------------------------- 1 | .git* 2 | .venv/ 3 | **/*.pyc 4 | -------------------------------------------------------------------------------- /src/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/Dockerfile -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/entrypoint.sh -------------------------------------------------------------------------------- /src/fastapi_app/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/fastapi_app/__init__.py -------------------------------------------------------------------------------- /src/fastapi_app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/fastapi_app/app.py -------------------------------------------------------------------------------- /src/fastapi_app/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/fastapi_app/models.py -------------------------------------------------------------------------------- /src/fastapi_app/seed_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/fastapi_app/seed_data.py -------------------------------------------------------------------------------- /src/gunicorn.conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/gunicorn.conf.py -------------------------------------------------------------------------------- /src/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/pyproject.toml -------------------------------------------------------------------------------- /src/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/requirements.txt -------------------------------------------------------------------------------- /src/seed_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/seed_data.json -------------------------------------------------------------------------------- /src/static/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/manifest.json -------------------------------------------------------------------------------- /src/static/res/css/theme.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/css/theme.css -------------------------------------------------------------------------------- /src/static/res/css/theme.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/css/theme.css.map -------------------------------------------------------------------------------- /src/static/res/img/astronaut.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/astronaut.jpeg -------------------------------------------------------------------------------- /src/static/res/img/bit_cosmos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/bit_cosmos.png -------------------------------------------------------------------------------- /src/static/res/img/cosmos-db.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/cosmos-db.jpeg -------------------------------------------------------------------------------- /src/static/res/img/favicon-120-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/favicon-120-precomposed.png -------------------------------------------------------------------------------- /src/static/res/img/favicon-152-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/favicon-152-precomposed.png -------------------------------------------------------------------------------- /src/static/res/img/favicon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/favicon-192.png -------------------------------------------------------------------------------- /src/static/res/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/favicon.ico -------------------------------------------------------------------------------- /src/static/res/img/small-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/res/img/small-logo.png -------------------------------------------------------------------------------- /src/static/scss/custom.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/static/scss/custom.scss -------------------------------------------------------------------------------- /src/templates/about.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/about.html -------------------------------------------------------------------------------- /src/templates/base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/base.html -------------------------------------------------------------------------------- /src/templates/cruise_detail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/cruise_detail.html -------------------------------------------------------------------------------- /src/templates/destination_detail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/destination_detail.html -------------------------------------------------------------------------------- /src/templates/destinations.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/destinations.html -------------------------------------------------------------------------------- /src/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/index.html -------------------------------------------------------------------------------- /src/templates/info_request_create.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/templates/info_request_create.html -------------------------------------------------------------------------------- /src/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tests/local/__init_.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tests/local/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/local/conftest.py -------------------------------------------------------------------------------- /src/tests/local/test_gunicorn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/local/test_gunicorn.py -------------------------------------------------------------------------------- /src/tests/local/test_playwright.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/local/test_playwright.py -------------------------------------------------------------------------------- /src/tests/smoke/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/smoke/README.md -------------------------------------------------------------------------------- /src/tests/smoke/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tests/smoke/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/smoke/conftest.py -------------------------------------------------------------------------------- /src/tests/smoke/smoketests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Azure-Samples/azure-fastapi-postgres-flexible-aca/HEAD/src/tests/smoke/smoketests.py --------------------------------------------------------------------------------