fix: 中台推广数据接入生产受限隧道 (#110)
This commit is contained in:
parent
050ad0ab97
commit
6796d68012
@ -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' => [
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user