refactor: decouple deploy and compose packages from client dependency

This commit is contained in:
Pavel Sviderski committed 2025-03-24 14:38:16 +10:00
1 parent 1471a94162
commit 042dd594e0
27 files changed
+509 -459

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ import (
"errors"
"github.com/psviderski/uncloud/internal/ucind"
"github.com/psviderski/uncloud/pkg/api"
"github.com/psviderski/uncloud/pkg/client"
"github.com/psviderski/uncloud/pkg/compose"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -28,7 +27,7 @@ func TestComposeDeployment(t *testing.T) {
name := "basic"
t.Cleanup(func() {
err := cli.RemoveService(ctx, name)
if !errors.Is(err, client.ErrNotFound) {
if !errors.Is(err, api.ErrNotFound) {
require.NoError(t, err)
}
})