mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 02:15:51 +00:00
feat(backups): add configurable CPU usage for volume compression
Add server-level compression CPU presets for volume backups and close the private key modal after saving.
This commit is contained in:
1 parent
fe1dc209b7
commit
857375f69c
9 files changed
+142
-9
No files matched your search
@@ -60,6 +60,22 @@ test('generating a private key from the index stores it without redirecting to a
|
||||
->assertNoRedirect();
|
||||
});
|
||||
|
||||
test('saving a private key from its modal editor closes the modal', function () {
|
||||
$privateKey = PrivateKey::factory()->create([
|
||||
'team_id' => $this->team->id,
|
||||
]);
|
||||
|
||||
Livewire::test(Show::class, [
|
||||
'private_key_uuid' => $privateKey->uuid,
|
||||
'modalMode' => true,
|
||||
])->set('name', 'Updated SSH key')
|
||||
->call('changePrivateKey')
|
||||
->assertDispatched('securityResourceChanged')
|
||||
->assertDispatched('close-modal');
|
||||
|
||||
expect($privateKey->fresh()->name)->toBe('Updated SSH key');
|
||||
});
|
||||
|
||||
test('manual private key form does not expose key generation controls', function () {
|
||||
Livewire::test(Create::class)
|
||||
->assertDontSee('Generate new ED25519 SSH Key')
|
||||
|
||||
Reference in new issue
Block a user