Files
api/services/nginx/app/tests/Unit/Selfserve/EdgeBrokerClientConfigTest.php
T

12 lines
563 B
PHP

<?php
it('uses the same default broker url and shared secret fallback as the docker stack', function (): void {
$source = file_get_contents(app_path('classes/edge_broker_client.php'));
expect($source)->not->toBeFalse();
expect($source)->toContain("private const DEFAULT_BROKER_URL = 'http://edge-broker:4300';");
expect($source)->toContain("private const DEFAULT_SHARED_SECRET = 'truckwash-edge-dev';");
expect($source)->toContain("getenv('EDGE_BROKER_SHARED_SECRET')");
expect($source)->toContain("getenv('EDGE_INTERNAL_SECRET')");
});