Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ All notable changes are documented here. The format follows

## [Unreleased]

### Added

- Domain registration: the `domain_search`, `domain_order`, `registered_domain` and
`domain_contact` services (`/v1/registrar/...`), regenerated from the API description. Domain
orders are paid by card only; checkout needs `accept_terms_version` and `mit_consent`.
- `wait_for_domain_order` (sync and async) waits until a domain order is final.

## [0.1.0]

### Added
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
The official Python SDK for the [NodeRings](https://noderings.com) API. It covers the whole
public API: virtual machines, DNS, firewalls, snapshots and backups, game servers, IP address
management, the marketplace, billing, access control, support tickets, and the provider side for
hosts who sell on NodeRings. That is 545 operations in 75 services, all typed, with a sync and an
hosts who sell on NodeRings. That is 485 operations in 69 services, all typed, with a sync and an
asyncio client.

```sh
Expand Down Expand Up @@ -141,15 +141,13 @@ retry a create safely after your program restarts.

**Waiting.** `wait_for_virtual_machine_status`, `wait_for_virtual_machine_deleted` and the
general `wait_for_virtual_machine(id, until=...)` poll until a condition holds, with `interval`
and `timeout` in seconds. `wait_for_domain_order(order_id)` polls a domain order (after
`domain_order.checkout_domain_order`) until it is completed, partially completed, failed, canceled
or expired. They raise `WaitTimeoutError` with the last state read.
and `timeout` in seconds. They raise `WaitTimeoutError` with the last state read.

## Testing

| Suite | What it checks |
|---|---|
| `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. |
| `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. |
| `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. |

The live suite runs nightly in CI. See [CONTRIBUTING.md](CONTRIBUTING.md).
Expand Down
Loading