Skip to main content

Constructors

Conformance tests on a connector’s test tenant.

Parameters

required
bool

Properties

The tenant’s working context.
The guard writes reach the tenant through.
CancellationToken
required
A token that never cancels.

Methods

AccountAsync()

Creates the account, or finds the one an existing-model vendor already holds.

Parameters

Returns

Task<string>

MemberAsync()

Reads and leases the tenant’s member.

Returns

Principal

NewAccountAsync()

Builds a new account the guard allows.

Returns

DesiredPrincipal

SeedAsync()

Seeds the tenant and sweeps old runs.

Returns

Task

Test__Canonicalize__is_idempotent_and_keeps_its_keys__on_what_the_tenant_holds()

Checks canonicalizing is idempotent and keeps keys.

Returns

Task

Test__ChangeGrants__leaves_a_value_it_was_not_given()

Checks a grant change leaves other values.

Returns

Task

Test__ChangeGrants__raises_the_account_gone__when_the_vendor_deleted_it()

Checks granting to a deleted account raises gone.

Returns

Task

Test__ChangeGrants__settles__when_run_twice()

Checks a grant change settles when run again, with one operation id and with a new one.

Returns

Task

Test__ChangeGrants__settles_on_a_principal__when_run_twice__and_the_principal_reads_it()

Checks a grant change on a principal other than the account settles when run again, with one operation id and with a new one, and reads back.

Returns

Task

Test__CheckConnection__finds_no_blocking_problem()

Checks the reference tenant’s connection has nothing that blocks it.

Returns

Task

Test__CreatePrincipal__fails_with_the_account_existing__when_run_twice()

Checks a second create refuses the account the first made.

Returns

Task

Test__GetPrincipal__answers_absent__when_the_vendor_holds_none()

Checks a missing account reads as absent.

Returns

Task

Test__InvokeAction__settles_with_its_declared_returns__when_run_twice()

Checks each action live tests may run settles with the returns it declares when run twice with one operation id, on the connection, an account, or a principal the tenant names.

Returns

Task

Test__ListCatalog__returns_each_value_once__ending_explicitly__at_the_smallest_page()

Checks each lookup list and each resource fields take values from ends explicitly at the smallest page, never repeating a cursor or a value.

Returns

Task

Test__ListChangedPrincipals__returns_an_account_changed_since_a_full_read__naming_no_reference__when_the_full_read_ends_with_a_watermark()

Checks a changes-only read returns what changed since a full read that ended with a watermark, ending with a new watermark.

Returns

Task

Test__ListGrants__lists_what_the_full_read_does__for_one_holder_and_one_entitlement()

Checks a filter on one holder and one entitlement lists what the full read lists of them.

Returns

Task

Test__ListGrants__lists_what_the_full_read_does__for_one_object()

Checks a filter on one object lists what the full read lists on it, at every relation.

Returns

Task

Test__ListGrants__restarts__when_asked_for_changes_it_has_no_watermark_for()

Checks a field with no change feed restarts when asked for changes.

Returns

Task

Test__ListGrants__returns_each_grant_once__on_holders_its_field_is_granted_to__at_the_smallest_page()

Checks each field’s grants are listed once, on its field’s object and on holders the field is granted to, and only an inherited one names what it is held through.

Returns

Task

Test__ListPrincipals__account_memberships_name_listed_principals()

Checks account memberships name listed principals.

Returns

Task

Test__ListPrincipals__drops_each_principal_another_supersedes()

Checks superseded principals are dropped.

Returns

Task

Test__ListPrincipals__ends_every_kind_explicitly__never_repeating_a_cursor()

Checks each kind ends without a repeated cursor.

Returns

Task

Test__ListPrincipals__fails_whole__when_a_later_page_fails()

Checks a failed later page fails the list.

Returns

Task

Test__ListPrincipals__holds_at_most_one_declared_value__on_each_role()

Checks each role holds one declared value.

Returns

Task

Test__ListPrincipals__holds_each_key_on_one_principal__of_each_kind()

Checks each key belongs to one principal.

Returns

Task

Test__ListPrincipals__holds_only_fields_grantable_to_its_kind__naming_listed_principals()

Checks principals hold only grantable fields.

Returns

Task

Test__ListPrincipals__reports_facts_only_on_held_values__through_declared_kinds()

Checks each grant fact names a value held in effect, through a declared kind.

Returns

Task

Test__ListPrincipals__reports_only_what_a_principal_holds_directly()

Checks principals report only direct grants.

Returns

Task

Test__ListPrincipals__resolves_every_reference__unless_the_vendor_names_someone_outside_the_read()

Checks the list resolves every reference.

Returns

Task

Test__ListPrincipals__returns_each_account_once__at_the_smallest_page()

Checks each account is listed once.

Returns

Task

Test__ListPrincipals__returns_each_principal_once__and_every_one_its_membership_lists()

Checks each principal is listed once.

Returns

Task

Test__Manifest__declares_what_the_connector_implements()

Test__Manifest__has_no_problems()

Checks the manifest has no problems.

Test__ReadCatalog__binds_each_role_to_a_scope__of_its_fields_scope()

Checks each scope a value binds its role to is of its field’s scope.

Returns

Task

Test__ReadCatalog__fills_every_values_source()

Checks the catalog fills every lookup list and every object fields take values from.

Returns

Task

Test__ReadCatalog__lists_every_entitlement_an_account_or_principal_holds()

Checks the catalog lists every held entitlement.

Returns

Task

Test__ReadCatalog__lists_every_resource_of_each_declared_kind__once__under_a_listed_parent()

Checks each declared resource is listed once.

Returns

Task

Test__ReadCatalog__names_each_entitlements_resource__as_its_fields_object()

Checks each resource an entitlement names is of its field’s object.

Returns

Task

Test__Refused_secret__raises_credentials_rejected()

Checks a refused secret is reported.

Returns

Task

Test__Secrets__never_show__in_logs_spans_or_failures()

Checks secrets never show in output.

Returns

Task

Test__UpdatePrincipal__leaves_what_the_payload_does_not_name()

Checks an update leaves unnamed fields alone.

Returns

Task

Test__UpdatePrincipal__raises_the_account_gone__when_the_vendor_deleted_it()

Checks updating a deleted account raises gone.

Returns

Task

Test__UpdatePrincipal__settles__when_run_twice()

Checks a repeated update settles.

Returns

Task