test: remove duplicate call to EnsureCatalogue
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
decentral1se 2023-10-04 14:05:02 +02:00
parent c646263e9e
commit e837835e00
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
4 changed files with 0 additions and 26 deletions

View File

@ -5,18 +5,11 @@ import (
"reflect"
"testing"
"coopcloud.tech/abra/pkg/catalogue"
"coopcloud.tech/abra/pkg/config"
"coopcloud.tech/abra/pkg/recipe"
"github.com/stretchr/testify/assert"
)
func setup(t *testing.T) {
if err := catalogue.EnsureCatalogue(); err != nil {
t.Fatal(err)
}
}
func TestNewApp(t *testing.T) {
app, err := config.NewApp(ExpectedAppEnv, AppName, ExpectedAppFile)
if err != nil {
@ -48,8 +41,6 @@ func TestGetApp(t *testing.T) {
}
func TestGetComposeFiles(t *testing.T) {
setup(t)
offline := true
r, err := recipe.Get("abra-integration-test-recipe", offline)
if err != nil {
@ -97,8 +88,6 @@ func TestGetComposeFiles(t *testing.T) {
}
func TestGetComposeFilesError(t *testing.T) {
setup(t)
offline := true
r, err := recipe.Get("abra-integration-test-recipe", offline)
if err != nil {

View File

@ -8,7 +8,6 @@ import (
"strings"
"testing"
"coopcloud.tech/abra/pkg/catalogue"
"coopcloud.tech/abra/pkg/config"
"coopcloud.tech/abra/pkg/recipe"
)
@ -87,10 +86,6 @@ func TestReadEnv(t *testing.T) {
}
func TestReadAbraShEnvVars(t *testing.T) {
if err := catalogue.EnsureCatalogue(); err != nil {
t.Fatal(err)
}
offline := true
r, err := recipe.Get("abra-integration-test-recipe", offline)
if err != nil {

View File

@ -3,15 +3,10 @@ package recipe
import (
"testing"
"coopcloud.tech/abra/pkg/catalogue"
"github.com/stretchr/testify/assert"
)
func TestGetVersionLabelLocalDoesNotUseTimeoutLabel(t *testing.T) {
if err := catalogue.EnsureCatalogue(); err != nil {
t.Fatal(err)
}
offline := true
recipe, err := Get("traefik", offline)
if err != nil {

View File

@ -4,7 +4,6 @@ import (
"path"
"testing"
"coopcloud.tech/abra/pkg/catalogue"
"coopcloud.tech/abra/pkg/config"
"coopcloud.tech/abra/pkg/recipe"
"coopcloud.tech/abra/pkg/upstream/stack"
@ -13,10 +12,6 @@ import (
)
func TestReadSecretsConfig(t *testing.T) {
if err := catalogue.EnsureCatalogue(); err != nil {
t.Fatal(err)
}
offline := true
recipe, err := recipe.Get("matrix-synapse", offline)
if err != nil {