mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
Manage site aliases (#206)
* manage site aliases * build assets * fix tests
This commit is contained in:
@ -58,6 +58,29 @@ public function test_letsencrypt_ssl()
|
||||
'site_id' => $this->site->id,
|
||||
'type' => SslType::LETSENCRYPT,
|
||||
'status' => SslStatus::CREATED,
|
||||
'domains' => json_encode([$this->site->domain]),
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_letsencrypt_ssl_with_aliases()
|
||||
{
|
||||
SSH::fake('Successfully received certificate');
|
||||
|
||||
$this->actingAs($this->user);
|
||||
|
||||
$this->post(route('servers.sites.ssl.store', [
|
||||
'server' => $this->server,
|
||||
'site' => $this->site,
|
||||
]), [
|
||||
'type' => SslType::LETSENCRYPT,
|
||||
'aliases' => '1',
|
||||
])->assertSessionDoesntHaveErrors();
|
||||
|
||||
$this->assertDatabaseHas('ssls', [
|
||||
'site_id' => $this->site->id,
|
||||
'type' => SslType::LETSENCRYPT,
|
||||
'status' => SslStatus::CREATED,
|
||||
'domains' => json_encode(array_merge([$this->site->domain], $this->site->aliases)),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user