Updated IT tests/Updated systemd file (fixes #1859)

This commit is contained in:
adragusin
2020-01-16 18:07:02 +02:00
parent f4f0bacaba
commit 8db2b85037
33 changed files with 1115 additions and 174 deletions

View File

@@ -63,15 +63,19 @@ func TestTutorialMongoAtlas(t *testing.T) {
}
}
func TestTutorialMongo(t *testing.T) {
tutorialConfDIR = "tutmongo"
for _, stest := range sTestsTutorials {
t.Run(tutorialConfDIR, stest)
func TestTutorial(t *testing.T) {
switch *dbType {
case utils.MetaInternal:
tutorialConfDIR = "tutinternal"
case utils.MetaSQL:
tutorialConfDIR = "tutmysql"
case utils.MetaMongo:
tutorialConfDIR = "tutmongo"
case utils.MetaPostgres:
t.SkipNow()
default:
t.Fatal("Unknown Database type")
}
}
func TestTutorialMySQL(t *testing.T) {
tutorialConfDIR = "tutmysql"
for _, stest := range sTestsTutorials {
t.Run(tutorialConfDIR, stest)
}