From 682a68066b8567973a01abdd5e9b8e1c54082ffb Mon Sep 17 00:00:00 2001 From: Dr Marco Claudio De La Pierre Date: Tue, 16 Jan 2024 21:49:26 +0800 Subject: [PATCH] LocalSecretsProvider: invalid permissions tests made more robust (#4663) [ci fast] Signed-off-by: Dr Marco Claudio De La Pierre --- changelog.txt | 2 +- .../test/groovy/nextflow/secret/LocalSecretsProviderTest.groovy | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 6b2be1e2ef..5eafa10eff 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,7 +4,7 @@ NEXTFLOW CHANGE-LOG - Fix bug with Fusion symlink resolution (#4593) [f28c9e48] - Fix Fusion symlinks when publishing files (#4348) [1fa5878a] - Fix Inspect command fails with Singularity [25883df3] -- Fix Allow the use of error build-in function in onComplete handler (#4458) [ci fast] [4be10cd3] +- Fix Allow the use of error built-in function in onComplete handler (#4458) [ci fast] [4be10cd3] - Fix Harden regular expression to used to strip secrets in logs (#4563) [ci fast] [0102d4d6] - Fix custom notification template [40980bcb] - Fix container environment with special chars (#4594) [f4e00601] diff --git a/modules/nextflow/src/test/groovy/nextflow/secret/LocalSecretsProviderTest.groovy b/modules/nextflow/src/test/groovy/nextflow/secret/LocalSecretsProviderTest.groovy index c7a91828ec..0c00292b73 100644 --- a/modules/nextflow/src/test/groovy/nextflow/secret/LocalSecretsProviderTest.groovy +++ b/modules/nextflow/src/test/groovy/nextflow/secret/LocalSecretsProviderTest.groovy @@ -106,6 +106,8 @@ class LocalSecretsProviderTest extends Specification { and: Files.write(secretFile, json.getBytes('utf-8'), StandardOpenOption.CREATE_NEW) and: + secretFile.setPermissions('rw-r-----') + and: def provider = new LocalSecretsProvider(storeFile: secretFile) when: