From f13ad54c944500943c9f296cc3998edb3c2dd047 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Thu, 17 Feb 2022 14:16:24 +0100 Subject: [PATCH] update expected results --- t/cli.t | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/t/cli.t b/t/cli.t index 538ebfd..b2e2213 100755 --- a/t/cli.t +++ b/t/cli.t @@ -45,8 +45,6 @@ SKIP: { my $config_file = File::Temp->new(UNLINK => $ENV{TEST_DEBUG} ? 0 : 1); my $accounts_file = File::Temp->new(UNLINK => $ENV{TEST_DEBUG} ? 0 : 1); print {$config_file} <<EOF; -tokens_validity_period = 2 -templates_dir = templates [idp] accounts_file = $accounts_file @@ -54,6 +52,7 @@ scope = localhost [service] account_validity_period = 2 +tokens_validity_period = 2 [database] type = $type @@ -167,7 +166,7 @@ EOF "--config $config_file list_services" ); ok($rc == 0, 'list services exit status'); - like($out, qr/Service ID=\d+; entityid=bar; displayname=; contacts=joe,bob/, 'list services stdin output'); + like($out, qr/Entity ID=\d+; entityid=bar; displayname=; contacts=joe,bob/, 'list services stdin output'); is($err, '', 'list services stderr output'); # tokens @@ -209,7 +208,7 @@ EOF "--config $config_file list_tokens" ); ok($rc == 0, 'list tokens exit status'); - like($out, qr/Token ID=\d+; token=\w+; email_address=joe; entityid=bar/, 'list tokens stdin output'); + like($out, qr/Token ID=\d+; secret=\w+; email_address=joe; entityid=bar/, 'list tokens stdin output'); is($err, '', 'list tokens stderr output'); } -- GitLab