[skip ci] change default syspec config to syspec-office-config.yaml

merge-requests/2/head
az 2 years ago
parent e689e1c8c4
commit 71a3f778c8

@ -15,7 +15,7 @@ internal fun findSpecConfigFromFile(file: ConfigFileName? = null): Result<Syspec
val filePath = file?.fileName ?: DEFAULT_CONFIG_FILE
if ((filePath == DEFAULT_CONFIG_FILE) && !File(filePath).exists()) {
// use default ide config
return findSpecConfigFromResource("org/domaindrivenarchitecture/provs/syspec/syspec-ide-config.yaml")
return findSpecConfigFromResource("org/domaindrivenarchitecture/provs/syspec/syspec-office-config.yaml")
}
readFromFile(filePath).yamlToType()
}

@ -39,9 +39,8 @@ internal class ProvTest {
val script = """
# test some script commands
ping -c1 nu.nl
ping -c1 hetzner.com
echo something
ping -c1 github.com
"""
// when
@ -58,9 +57,8 @@ internal class ProvTest {
val script = """
# test some script commands
ping -c1 google.com
ping -c1 hetzner.com
echo something
ping -c1 github.com
echo 1 # comment behind command
"""

@ -14,7 +14,7 @@ internal class SyspecConfigRepoKtTest {
// then
assertEquals(
"SyspecConfig(command=[CommandSpec(command=tfenv -h, out=null), CommandSpec(command=python3 --version, out=null), CommandSpec(command=pip3 --version, out=null), CommandSpec(command=terraform --version, out=1.0.8)], file=null, folder=null, host=null, package=[PackageSpec(name=firefox, installed=true), PackageSpec(name=thunderbird, installed=true), PackageSpec(name=ssh, installed=true), PackageSpec(name=git, installed=true), PackageSpec(name=leiningen, installed=true)], netcat=null, socket=null, certificate=null, s3=null)",
"SyspecConfig(command=null, file=null, folder=null, host=null, package=[PackageSpec(name=firefox, installed=true), PackageSpec(name=thunderbird, installed=true), PackageSpec(name=ssh, installed=true), PackageSpec(name=git, installed=true)], netcat=null, socket=null, certificate=null, s3=null)",
res.getOrNull().toString())
}

Loading…
Cancel
Save