-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating tests to isolate database resources and connections per modu…
…le (#2409) * Isolating database resources per module * Removing cleanup step to avoid overengineering
- Loading branch information
1 parent
bbadc1a
commit edd9a5e
Showing
20 changed files
with
267 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package configresource_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package demoresource_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package executor_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package pollingprofile_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package integration_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package migrations_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package provisioning_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package testdb_test | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/kubeshop/tracetest/server/testmock" | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
testmock.StartTestEnvironment() | ||
|
||
exitVal := m.Run() | ||
|
||
testmock.StopTestEnvironment() | ||
|
||
os.Exit(exitVal) | ||
} |
Oops, something went wrong.