Add a stage branch deploy beside production on z00.
Pushing stage runs CI and deploys to stage.transcribe.z00.nu with its own data, Reverb credentials, and Caddy network.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class ReverbClientConfigTest extends TestCase
|
||||
{
|
||||
public function test_login_page_exposes_environment_reverb_client_settings(): void
|
||||
{
|
||||
$this->get(route('login'))
|
||||
->assertOk()
|
||||
->assertSee('<meta name="reverb-key" content="testing-reverb-key">', false)
|
||||
->assertSee('<meta name="reverb-host" content="reverb.testing.example">', false)
|
||||
->assertSee('<meta name="reverb-port" content="443">', false)
|
||||
->assertSee('<meta name="reverb-scheme" content="https">', false);
|
||||
}
|
||||
|
||||
public function test_login_page_reflects_runtime_reverb_client_config(): void
|
||||
{
|
||||
config([
|
||||
'reverb.client.key' => 'stage-reverb-key',
|
||||
'reverb.client.host' => 'reverb.stage.transcribe.z00.nu',
|
||||
'reverb.client.port' => '443',
|
||||
'reverb.client.scheme' => 'https',
|
||||
]);
|
||||
|
||||
$this->get(route('login'))
|
||||
->assertOk()
|
||||
->assertSee('<meta name="reverb-key" content="stage-reverb-key">', false)
|
||||
->assertSee('<meta name="reverb-host" content="reverb.stage.transcribe.z00.nu">', false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user