> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SourceConformance<TConnector>

> Conformance tests on a source's test tenant.

```csharp
[Collection("ConnectorScenarios")]
public abstract class SourceConformance<TConnector> where TConnector : IConnector, ISupportsWorkerReads, IHasManifest, new()
```

## Constructors

```csharp
protected SourceConformance(SourceTenant tenant, bool overHttp = false)
```

Conformance tests on a source's test tenant.

### Parameters

**tenant** `SourceTenant` *required*

**overHttp** `bool`

## Properties

**Context** `ConnectionContext` *required*

The tenant's working context.

**None** `CancellationToken` *required*

A token that never cancels.

## Methods

### Test\_\_CheckConnection\_\_finds\_no\_blocking\_problem()

```csharp
[Fact]
public Task Test__CheckConnection__finds_no_blocking_problem()
```

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

#### Returns

`Task`

### Test\_\_GetWorkers\_\_reads\_a\_held\_worker\_\_and\_leaves\_out\_a\_missing\_one()

```csharp
[Fact]
public Task Test__GetWorkers__reads_a_held_worker__and_leaves_out_a_missing_one()
```

Checks a lookup skips a missing worker.

#### Returns

`Task`

### Test\_\_ListWorkers\_\_fails\_whole\_\_when\_a\_later\_page\_fails()

```csharp
[Fact]
public Task Test__ListWorkers__fails_whole__when_a_later_page_fails()
```

Checks a failed later page fails the read.

#### Returns

`Task`

### Test\_\_ListWorkers\_\_keeps\_each\_workers\_id\_\_across\_runs()

```csharp
[Fact]
public Task Test__ListWorkers__keeps_each_workers_id__across_runs()
```

Checks worker ids stay the same across runs.

#### Returns

`Task`

### Test\_\_ListWorkers\_\_returns\_each\_worker\_once\_\_through\_every\_page()

```csharp
[Fact]
public Task Test__ListWorkers__returns_each_worker_once__through_every_page()
```

Checks each worker is listed once.

#### Returns

`Task`

### Test\_\_Manifest\_\_declares\_what\_the\_connector\_implements()

```csharp
[Fact]
public void Test__Manifest__declares_what_the_connector_implements()
```

### Test\_\_Manifest\_\_has\_no\_problems()

```csharp
[Fact]
public void Test__Manifest__has_no_problems()
```

Checks the manifest has no problems.

### Test\_\_Refused\_secret\_\_raises\_credentials\_rejected()

```csharp
[Fact]
public Task Test__Refused_secret__raises_credentials_rejected()
```

Checks a refused secret is reported.

#### Returns

`Task`

### Test\_\_Secrets\_\_never\_show\_\_in\_logs\_spans\_or\_failures()

```csharp
[Fact]
public Task Test__Secrets__never_show__in_logs_spans_or_failures()
```

Checks secrets never show in output.

#### Returns

`Task`

### Test\_\_TenantId\_\_is\_the\_one\_an\_authorization\_completes\_to()

```csharp
[Fact]
public Task Test__TenantId__is_the_one_an_authorization_completes_to()
```

Checks the tenant id matches the authorization.

#### Returns

`Task`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.