From cb4e76e4f75ce260534c6596f5b21ede5b4aae9b Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Mon, 26 Feb 2024 22:12:24 +0100 Subject: [PATCH] Add optionalCredentials in functional tests --- .../io/github/sgtsilvio/gradle/oci/PublishMetadataTest.kt | 2 +- .../kotlin/io/github/sgtsilvio/gradle/oci/TestProject.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/PublishMetadataTest.kt b/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/PublishMetadataTest.kt index fcb30462..0af7b912 100644 --- a/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/PublishMetadataTest.kt +++ b/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/PublishMetadataTest.kt @@ -42,7 +42,7 @@ internal class PublishMetadataTest { oci { registries { dockerHub { - credentials.set(providers.credentials(PasswordCredentials::class, "dockerHub")) + optionalCredentials() } } imageDefinitions.register("main") { diff --git a/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/TestProject.kt b/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/TestProject.kt index 93479bbc..c8e2eb93 100644 --- a/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/TestProject.kt +++ b/src/functionalTest/kotlin/io/github/sgtsilvio/gradle/oci/TestProject.kt @@ -43,7 +43,7 @@ internal class TestProject(projectDir: File) { oci { registries { dockerHub { - credentials.set(providers.credentials(PasswordCredentials::class, "dockerHub")) + optionalCredentials() } } imageDefinitions.register("main") {