mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 18:01:37 +00:00
fix tests
This commit is contained in:
parent
b6179d6693
commit
c66c50835a
@ -10,7 +10,9 @@ final class Database
|
|||||||
|
|
||||||
const MYSQL80 = 'mysql80';
|
const MYSQL80 = 'mysql80';
|
||||||
|
|
||||||
const MARIADB = 'mariadb';
|
const MARIADB103 = 'mariadb103';
|
||||||
|
|
||||||
|
const MARIADB104 = 'mariadb104';
|
||||||
|
|
||||||
const POSTGRESQL12 = 'postgresql12';
|
const POSTGRESQL12 = 'postgresql12';
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
@include("services.partials.unit-actions")
|
@ -0,0 +1 @@
|
|||||||
|
@include("services.partials.unit-actions")
|
@ -23,7 +23,7 @@ public function test_visit_application()
|
|||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee($this->site->domain);
|
->assertSee($this->site->domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ public function test_deploy(): void
|
|||||||
'server' => $this->server,
|
'server' => $this->server,
|
||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
]))
|
]))
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee('test commit message');
|
->assertSee('test commit message');
|
||||||
|
|
||||||
$deployment = $this->site->deployments()->first();
|
$deployment = $this->site->deployments()->first();
|
||||||
|
@ -15,6 +15,7 @@ public function test_see_console(): void
|
|||||||
$this->actingAs($this->user);
|
$this->actingAs($this->user);
|
||||||
|
|
||||||
$this->get(route('servers.console', $this->server))
|
$this->get(route('servers.console', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSeeText('Headless Console');
|
->assertSeeText('Headless Console');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ public function test_see_cronjobs_list()
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.cronjobs', $this->server))
|
$this->get(route('servers.cronjobs', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSeeText($cronjob->frequencyLabel());
|
->assertSeeText($cronjob->frequencyLabel());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,6 +98,7 @@ public function test_see_backups_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.databases.backups', [$this->server, $backup]))
|
$this->get(route('servers.databases.backups', [$this->server, $backup]))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($backup->database->name);
|
->assertSee($backup->database->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ public function test_see_databases_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.databases', $this->server))
|
$this->get(route('servers.databases', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($database->name);
|
->assertSee($database->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@ public function test_see_database_users_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.databases', $this->server))
|
$this->get(route('servers.databases', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($databaseUser->username);
|
->assertSee($databaseUser->username);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ public function test_see_firewall_rules(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.firewall', $this->server))
|
$this->get(route('servers.firewall', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($rule->source)
|
->assertSee($rule->source)
|
||||||
->assertSee($rule->port);
|
->assertSee($rule->port);
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ public function test_see_logs()
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.logs', $this->server))
|
$this->get(route('servers.logs', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSeeText($log->type);
|
->assertSeeText($log->type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -194,6 +194,7 @@ public function test_see_channels_list(): void
|
|||||||
$channel = \App\Models\NotificationChannel::factory()->create();
|
$channel = \App\Models\NotificationChannel::factory()->create();
|
||||||
|
|
||||||
$this->get(route('notification-channels'))
|
$this->get(route('notification-channels'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($channel->provider);
|
->assertSee($channel->provider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ public function test_profile_page_is_displayed(): void
|
|||||||
|
|
||||||
$this
|
$this
|
||||||
->get(route('profile'))
|
->get(route('profile'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee('Profile Information')
|
->assertSee('Profile Information')
|
||||||
->assertSee('Update Password')
|
->assertSee('Update Password')
|
||||||
->assertSee('Two Factor Authentication');
|
->assertSee('Two Factor Authentication');
|
||||||
|
@ -32,6 +32,7 @@ public function test_see_projects_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('projects'))
|
$this->get(route('projects'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($project->name);
|
->assertSee($project->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ public function test_see_queues()
|
|||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee($queue->command);
|
->assertSee($queue->command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ public function test_see_server_keys()
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('servers.ssh-keys', $this->server))
|
$this->get(route('servers.ssh-keys', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSeeText('My first key');
|
->assertSeeText('My first key');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ public function test_see_providers_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('server-providers'))
|
$this->get(route('server-providers'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($provider->profile);
|
->assertSee($provider->profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@ public function test_see_services_list(): void
|
|||||||
$this->actingAs($this->user);
|
$this->actingAs($this->user);
|
||||||
|
|
||||||
$this->get(route('servers.services', $this->server))
|
$this->get(route('servers.services', $this->server))
|
||||||
|
->assertSuccessful()
|
||||||
|
->assertSee('mysql')
|
||||||
->assertSee('nginx')
|
->assertSee('nginx')
|
||||||
->assertSee('php')
|
->assertSee('php')
|
||||||
->assertSee('supervisor')
|
->assertSee('supervisor')
|
||||||
@ -242,6 +244,7 @@ public static function data(): array
|
|||||||
['redis'],
|
['redis'],
|
||||||
['ufw'],
|
['ufw'],
|
||||||
['php'],
|
['php'],
|
||||||
|
['mysql'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public function test_see_sites_list(): void
|
|||||||
$this->get(route('servers.sites', [
|
$this->get(route('servers.sites', [
|
||||||
'server' => $this->server,
|
'server' => $this->server,
|
||||||
]))
|
]))
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee($site->domain);
|
->assertSee($site->domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ public function test_see_logs(): void
|
|||||||
'server' => $this->server,
|
'server' => $this->server,
|
||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
]))
|
]))
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee('Logs');
|
->assertSee('Logs');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ public function test_get_public_keys_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('ssh-keys'))
|
$this->get(route('ssh-keys'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($key->name);
|
->assertSee($key->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public function test_see_ssls_list()
|
|||||||
'server' => $this->server,
|
'server' => $this->server,
|
||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
]))
|
]))
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSee($ssl->type);
|
->assertSee($ssl->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ public function test_see_ssls_list_with_no_ssls()
|
|||||||
'server' => $this->server,
|
'server' => $this->server,
|
||||||
'site' => $this->site,
|
'site' => $this->site,
|
||||||
]))
|
]))
|
||||||
->assertOk()
|
->assertSuccessful()
|
||||||
->assertSeeText(__("You don't have any SSL certificates yet!"));
|
->assertSeeText(__("You don't have any SSL certificates yet!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ public function test_see_providers_list(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->get(route('storage-providers'))
|
$this->get(route('storage-providers'))
|
||||||
|
->assertSuccessful()
|
||||||
->assertSee($provider->profile);
|
->assertSee($provider->profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user