From ec0cd59e56b40d0716d9899633d84e4f4fedc583 Mon Sep 17 00:00:00 2001 From: jerger Date: Fri, 25 Feb 2022 15:47:19 +0100 Subject: [PATCH] add more c4k modules --- .../provs/desktop/infrastructure/BinariesC4k.kt | 15 ++++++++++----- .../desktop/infrastructure/BinariesC4kKtTest.kt | 11 +++++------ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4k.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4k.kt index 4b33608..c09c9f6 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4k.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4k.kt @@ -26,11 +26,16 @@ fun Prov.installBinariesC4k() = task { } } - // check for latest stable release on: https://gitlab.com/domaindrivenarchitecture/c4k-nextcloud/-/releases - // release 1.0.2 - val nextcloud = Binary("1824231745", "c4k-nextcloud-standalone.jar", "5b7eeecf745c720184be4fccdd61a49509ae5e322558506eb6bc3c3ed680c23f") - - // release 1.0.6 + downloadC4k(Binary("1824231745", "c4k-nextcloud-standalone.jar", + "5b7eeecf745c720184be4fccdd61a49509ae5e322558506eb6bc3c3ed680c23f")) + downloadC4k(Binary("2136806347", "c4k-jira-standalone.jar", + "585f26e3b70bec32f052f488688718d8c9a6d15222b8a2141a69fa1bea136179")) + downloadC4k(Binary("2136561868", "c4k-keycloak-standalone.jar", + "81bd605b160c3d339cba745433271412eaa716cb7856d0227a1eb063badc9")) + downloadC4k(Binary("2136778473", "c4k-mastodon-bot-standalone.jar", + "9dbf981ce8b4aea92e0f45b182a39d2caffceb6e8f78ddfeeb49e74ca4a8d37d")) + downloadC4k(Binary("2136801572", "c4k-shynet-standalone.jar", + "4fa0d41896f2a9ea89ca70c475f9d1f89edf3fadf82d6b39789b90732f795429")) ProvResult(true) diff --git a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4kKtTest.kt b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4kKtTest.kt index d94e6f5..c462838 100644 --- a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4kKtTest.kt +++ b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/BinariesC4kKtTest.kt @@ -13,12 +13,11 @@ internal class BinariesC4kKtTest { val res = defaultTestContainer().installBinariesC4k() // then + assertTrue(defaultTestContainer().fileExists("/usr/local/bin/c4k-nextcloud-standalone.jar", sudo = true)) + assertTrue(defaultTestContainer().fileExists("/usr/local/bin/c4k-jira-standalone.jar", sudo = true)) + assertTrue(defaultTestContainer().fileExists("/usr/local/bin/c4k-keycloak-standalone.jar", sudo = true)) + assertTrue(defaultTestContainer().fileExists("/usr/local/bin/c4k-mastodon-bot-standalone.jar", sudo = true)) + assertTrue(defaultTestContainer().fileExists("/usr/local/bin/c4k-shynet-standalone.jar", sudo = true)) assertTrue(res.success) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-nextcloud-standalone.jar", sudo = true)) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-jira-standalone.jar", sudo = true)) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-jitsi-standalone.jar", sudo = true)) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-shynet-standalone.jar", sudo = true)) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-mastodon-bot-standalone.jar", sudo = true)) - assertTrue(defaultTestContainer().fileExists(" /usr/local/bin/c4k-keycloak-standalone.jar", sudo = true)) } } \ No newline at end of file