mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 04:14:59 +00:00
feat(v5): show server stale status and coold logs
This commit is contained in:
1 parent
0914052b56
commit
75cbcad240
9 files changed
+416
-45
No files matched your search
@@ -27,7 +27,7 @@ it('mints a host jwt signed by the configured flux private key', function () {
|
||||
->and($claims->exp)->toBeGreaterThan(time());
|
||||
});
|
||||
|
||||
it('mints a host jwt with primitive capabilities by default', function () {
|
||||
it('mints a host jwt with the dev capability profile by default', function () {
|
||||
[$privateKeyPath, $publicKeyPath] = createFluxJwtKeypair();
|
||||
|
||||
Config::set('flux.jwt_private_key_path', $privateKeyPath);
|
||||
@@ -42,13 +42,7 @@ it('mints a host jwt with primitive capabilities by default', function () {
|
||||
$token = trim(Artisan::output());
|
||||
$claims = JWT::decode($token, new Key(file_get_contents($publicKeyPath), 'ES256'));
|
||||
|
||||
expect($claims->caps)->toContain('containers.list')
|
||||
->and($claims->caps)->toContain('ingress.apply')
|
||||
->and($claims->caps)->toContain('firewall.allow')
|
||||
->and($claims->caps)->toContain('firewall.revoke')
|
||||
->and($claims->caps)->toContain('firewall.list')
|
||||
->and($claims->caps)->toContain('firewall.reconcile')
|
||||
->and($claims->caps)->not->toContain('coold');
|
||||
expect($claims->caps)->toBe(['host-agent:dev']);
|
||||
});
|
||||
|
||||
it('writes the host jwt to an output path with owner-only permissions', function () {
|
||||
|
||||
Reference in new issue
Block a user