blob: f7f2e53bfa0b4b59a199585d33ea44dea53b19dc [file] [log] [blame]
Akron2c2ddbd2021-03-05 12:10:27 +01001use Mojo::Base -strict;
2use Test::More;
3use Test::Mojo;
4use Mojo::JSON qw'decode_json';
5
6my $t = Test::Mojo->new('Kalamar');
7
8ok(my $file = $t->app->home->rel_file('kalamar.secret.json'));
9ok(-e $file, 'File exists');
10
11my $secrets = decode_json($file->slurp);
12ok(@$secrets >= 1);
13ok(length $secrets->[0] >= 5);
14
15ok($file->lstat->mode & 0600);
16
17done_testing;