@api-emulator/oci
v0.2.2
Published
Oracle Cloud Infrastructure provides cloud APIs for identity, regions, availability domains, compute instances, and networking.
Readme
@api-emulator/oci
Oracle Cloud Infrastructure provides cloud APIs for identity, regions, availability domains, compute instances, and networking.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/oci- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@oci/api-emulator.mjs --service ociThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /20160918/regionsGET /20160918/availabilityDomainsGET /20160918/instancesGET /20160918/instances/:instanceIdPOST /20160918/instances/:instanceIdGET /oci/inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
Use a fixed bearer token or API key in each test. The emulator does not send these credentials to the provider.
Test data
Add repeatable test data to the provider configuration.
oci:
# Add provider-specific seed state here.