fix: 中台推广数据接入生产受限隧道 (#110)

This commit is contained in:
WuYongJie 2026-09-07 14:59:27 +08:00
parent 050ad0ab97
commit 6796d68012
2 changed files with 14 additions and 0 deletions

View File

@ -48,6 +48,10 @@ return [
'host' => env('UPSTREAM_TUNNEL_OPERATIONS_REPLICA_HOST'),
'port' => env('UPSTREAM_TUNNEL_OPERATIONS_REPLICA_PORT'),
],
'js_data_middle_platform' => [
'host' => env('UPSTREAM_TUNNEL_JS_DATA_MIDDLE_PLATFORM_HOST'),
'port' => env('UPSTREAM_TUNNEL_JS_DATA_MIDDLE_PLATFORM_PORT'),
],
],
'local_configuration' => [

View File

@ -262,6 +262,16 @@ class UpstreamDatabasesTest extends FeatureTestCase
}
}
public function test_js_data_middle_platform_declares_a_private_production_tunnel_endpoint(): void
{
$contents = file_get_contents(config_path('upstreams.php'));
$this->assertIsString($contents);
$this->assertStringContainsString("'js_data_middle_platform' => [", $contents);
$this->assertStringContainsString("env('UPSTREAM_TUNNEL_JS_DATA_MIDDLE_PLATFORM_HOST')", $contents);
$this->assertStringContainsString("env('UPSTREAM_TUNNEL_JS_DATA_MIDDLE_PLATFORM_PORT')", $contents);
}
public function test_global_wildcard_scope_is_rejected(): void
{
$this->withExceptionHandling();