|
2 | 2 |
|
3 | 3 | namespace Tests\Unit; |
4 | 4 |
|
| 5 | +use App\Support\AuthCompositionContract; |
| 6 | +use App\Support\BridgeAdapterOutcomeContract; |
5 | 7 | use App\Support\ExternalExecutionSurfaceContract; |
6 | 8 | use App\Support\ExternalTaskInputContract; |
7 | 9 | use App\Support\ExternalTaskResultContract; |
| 10 | +use App\Support\InvocableCarrierContract; |
8 | 11 | use PHPUnit\Framework\TestCase; |
9 | 12 |
|
10 | 13 | class ExternalExecutionSurfaceContractTest extends TestCase |
@@ -40,15 +43,33 @@ public function test_manifest_links_published_external_task_contract_seams(): vo |
40 | 43 | $this->assertSame('published', $manifest['contract_seams']['result_envelope']['status']); |
41 | 44 | $this->assertSame('published', $manifest['contract_seams']['handler_mappings']['status']); |
42 | 45 | $this->assertSame('published', $manifest['contract_seams']['invocable_http_carrier']['status']); |
| 46 | + $this->assertSame('published', $manifest['contract_seams']['bridge_adapters']['status']); |
| 47 | + $this->assertSame('published', $manifest['contract_seams']['auth_profile_tls_composition']['status']); |
43 | 48 | $this->assertSame( |
44 | 49 | 'durable-workflow.v2.external-executor-config.contract', |
45 | 50 | $manifest['contract_seams']['handler_mappings']['schema'], |
46 | 51 | ); |
47 | 52 | $this->assertSame( |
48 | | - 'durable-workflow.v2.invocable-carrier.contract', |
| 53 | + InvocableCarrierContract::SCHEMA, |
49 | 54 | $manifest['contract_seams']['invocable_http_carrier']['schema'], |
50 | 55 | ); |
51 | | - $this->assertSame('planned', $manifest['contract_seams']['bridge_adapters']['status']); |
| 56 | + $this->assertSame( |
| 57 | + BridgeAdapterOutcomeContract::SCHEMA, |
| 58 | + $manifest['contract_seams']['bridge_adapters']['schema'], |
| 59 | + ); |
| 60 | + $this->assertSame( |
| 61 | + 'bridge_adapter_outcome_contract', |
| 62 | + $manifest['contract_seams']['bridge_adapters']['cluster_info_path'], |
| 63 | + ); |
| 64 | + $this->assertSame( |
| 65 | + AuthCompositionContract::SCHEMA, |
| 66 | + $manifest['contract_seams']['auth_profile_tls_composition']['schema'], |
| 67 | + ); |
| 68 | + $this->assertSame( |
| 69 | + 'auth_composition_contract', |
| 70 | + $manifest['contract_seams']['auth_profile_tls_composition']['cluster_info_path'], |
| 71 | + ); |
| 72 | + $this->assertSame('planned', $manifest['contract_seams']['payload_external_storage']['status']); |
52 | 73 | } |
53 | 74 |
|
54 | 75 | public function test_document_mentions_every_contract_seam(): void |
|
0 commit comments