|
10 | 10 | The official Python SDK for the [NodeRings](https://noderings.com) API. It covers the whole |
11 | 11 | public API: virtual machines, DNS, firewalls, snapshots and backups, game servers, IP address |
12 | 12 | management, the marketplace, billing, access control, support tickets, and the provider side for |
13 | | -hosts who sell on NodeRings. That is 545 operations in 75 services, all typed, with a sync and an |
| 13 | +hosts who sell on NodeRings. That is 485 operations in 69 services, all typed, with a sync and an |
14 | 14 | asyncio client. |
15 | 15 |
|
16 | 16 | ```sh |
@@ -141,15 +141,13 @@ retry a create safely after your program restarts. |
141 | 141 |
|
142 | 142 | **Waiting.** `wait_for_virtual_machine_status`, `wait_for_virtual_machine_deleted` and the |
143 | 143 | general `wait_for_virtual_machine(id, until=...)` poll until a condition holds, with `interval` |
144 | | -and `timeout` in seconds. `wait_for_domain_order(order_id)` polls a domain order (after |
145 | | -`domain_order.checkout_domain_order`) until it is completed, partially completed, failed, canceled |
146 | | -or expired. They raise `WaitTimeoutError` with the last state read. |
| 144 | +and `timeout` in seconds. They raise `WaitTimeoutError` with the last state read. |
147 | 145 |
|
148 | 146 | ## Testing |
149 | 147 |
|
150 | 148 | | Suite | What it checks | |
151 | 149 | |---|---| |
152 | | -| `pytest` | Calls every one of the 545 generated methods, sync and async, against a fake API and checks the HTTP method, the path and its escaping, every query parameter's name, every body field's name and the auth headers against the API description. Also covers retries, `Retry-After`, errors, idempotency keys, paging, waiting, nulls, unknown enum values, and 64-bit and bytes encoding. | |
| 150 | +| `pytest` | Calls every one of the 485 generated methods, sync and async, against a fake API and checks the HTTP method, the path and its escaping, every query parameter's name, every body field's name and the auth headers against the API description. Also covers retries, `Retry-After`, errors, idempotency keys, paging, waiting, nulls, unknown enum values, and 64-bit and bytes encoding. | |
153 | 151 | | `pytest -m live` | Against the real API: every read that needs no ID, checked for fields the description lacks; SSH keys, a DNS zone with records, firewall rulesets and rules, and cloud-init data created and deleted; async reads. With `NODERINGS_TEST_BILLED=1`, a virtual machine is created, started, stopped, started, restarted, tagged, snapshotted, given a firewall and deleted. | |
154 | 152 |
|
155 | 153 | The live suite runs nightly in CI. See [CONTRIBUTING.md](CONTRIBUTING.md). |
|
0 commit comments