Skip to content

Commit

Permalink
feat(#172): use test doc functions from library
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanHCB committed Jul 3, 2023
1 parent 7d6f5af commit bfac562
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 38 deletions.
27 changes: 0 additions & 27 deletions docs/testdocs.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/repository/config/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/Interhyp/metadata-service/internal/acorn/config"
"testing"

"github.com/Interhyp/metadata-service/docs"
auconfigenv "github.com/StephanHCB/go-autumn-config-env"
goauzerolog "github.com/StephanHCB/go-autumn-logging-zerolog"
librepo "github.com/StephanHCB/go-backend-service-common/acorns/repository"
"github.com/StephanHCB/go-backend-service-common/docs"
libconfig "github.com/StephanHCB/go-backend-service-common/repository/config"
"github.com/StephanHCB/go-backend-service-common/repository/logging"
"github.com/rs/zerolog/log"
Expand Down
2 changes: 1 addition & 1 deletion internal/service/owners/owners_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package owners
import (
"context"
"github.com/Interhyp/metadata-service/api"
"github.com/Interhyp/metadata-service/docs"
"github.com/Interhyp/metadata-service/test/mock/cachemock"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/stretchr/testify/require"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/service/repositories/repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package repositories
import (
"context"
"github.com/Interhyp/metadata-service/api"
"github.com/Interhyp/metadata-service/docs"
"github.com/Interhyp/metadata-service/internal/acorn/service"
"github.com/Interhyp/metadata-service/internal/service/owners"
auloggingapi "github.com/StephanHCB/go-autumn-logging/api"
"github.com/StephanHCB/go-backend-service-common/api/apierrors"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/StephanHCB/go-backend-service-common/repository/timestamp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion internal/service/services/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/Interhyp/metadata-service/docs"
auloggingapi "github.com/StephanHCB/go-autumn-logging/api"
"github.com/StephanHCB/go-backend-service-common/api/apierrors"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/StephanHCB/go-backend-service-common/repository/timestamp"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/ownerctl_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package acceptance

import (
"encoding/json"
"github.com/Interhyp/metadata-service/docs"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/stretchr/testify/require"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/repositoryctl_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package acceptance

import (
"encoding/json"
"github.com/Interhyp/metadata-service/docs"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/stretchr/testify/require"
"net/http"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions test/acceptance/servicectl_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package acceptance

import (
"encoding/json"
openapi "github.com/Interhyp/metadata-service/api"
"github.com/Interhyp/metadata-service/api"
"net/http"
"strings"
"testing"

"github.com/Interhyp/metadata-service/docs"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/startup_acc_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package acceptance

import (
"github.com/Interhyp/metadata-service/docs"
"github.com/Interhyp/metadata-service/internal/acorn/controller"
"github.com/Interhyp/metadata-service/internal/acorn/repository"
"github.com/Interhyp/metadata-service/internal/acorn/service"
"github.com/Interhyp/metadata-service/internal/web/app"
auacorn "github.com/StephanHCB/go-autumn-acorn-registry"
libcontroller "github.com/StephanHCB/go-backend-service-common/acorns/controller"
librepo "github.com/StephanHCB/go-backend-service-common/acorns/repository"
"github.com/StephanHCB/go-backend-service-common/docs"
"github.com/stretchr/testify/require"
"net/http"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/util_dtos_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package acceptance

import (
openapi "github.com/Interhyp/metadata-service/api"
"github.com/Interhyp/metadata-service/api"
)

func p(v string) *string {
Expand Down
2 changes: 1 addition & 1 deletion test/mock/cachemock/cachemock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ownersmock

import (
"context"
openapi "github.com/Interhyp/metadata-service/api"
"github.com/Interhyp/metadata-service/api"
)

type Mock struct {
Expand Down

0 comments on commit bfac562

Please sign in to comment.