@@ -23,7 +23,7 @@ ava.serial('journal logger & stream', async t => {
2323 const content = await tests . getToken ( ) ;
2424 const log_file = tests . getRandomFile ( content ) ;
2525 const output_file = tests . randomFileName ( ) ;
26- const journal = await tests . run ( `journal create --name log-logger- ${ now } ` ) ;
26+ const journal = await tests . run ( `journal create --name ${ tests . getName ( t . title ) } ` ) ;
2727 try {
2828 await tests . run ( `journal credential password add --journal ${ journal . id } --name my-token --password ${ token } ` ) ;
2929 await tests . run ( `journal logger --journal ${ journal . id } --token ${ token } --log-file ${ log_file } ` ) ;
@@ -45,7 +45,7 @@ ava.serial('journal logger & stream with tags', async t => {
4545 const content_without_tag = await tests . getToken ( ) ;
4646 const log_file_without_tag = tests . getRandomFile ( content_without_tag ) ;
4747 const output_file = tests . randomFileName ( ) ;
48- const journal = await tests . run ( `journal create --name log-logger- ${ now } --password ${ token } ` ) ;
48+ const journal = await tests . run ( `journal create --name ${ tests . getName ( t . title ) } --password ${ token } ` ) ;
4949 try {
5050 await tests . run ( `journal logger --journal ${ journal . id } --token ${ token } --log-file ${ log_file_with_tag } --tag host=123` ) ;
5151 await tests . run ( `journal logger --journal ${ journal . id } --token ${ token } --log-file ${ log_file_without_tag } ` ) ;
@@ -60,3 +60,15 @@ ava.serial('journal logger & stream with tags', async t => {
6060 await tests . remove ( 'journal' , journal ) ;
6161 }
6262} ) ;
63+
64+ ava . serial ( 'journal retention update' , async t => {
65+ const journal = await tests . run ( `journal create --name ${ now } --retention 25` ) ;
66+ try {
67+ t . true ( journal . retention === 25 ) ;
68+ await tests . run ( `journal retention --journal ${ journal . id } --retention 25` ) ;
69+ const journal_updated = await tests . run ( `journal show --journal ${ journal . id } ` ) ;
70+ t . true ( journal_updated . retention === 25 ) ;
71+ } finally {
72+ await tests . remove ( 'journal' , journal ) ;
73+ }
74+ } ) ;
0 commit comments