Skip to content
Snippets Groups Projects
Commit 19b72aa5 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch 'migrate-vereign-to-gaiax-gitlab' into 'main'

Migrate code.vereign.com refs to gitlab.com/gaia-x

See merge request gaiax/tsa-migrate/golib!1
parents 3d943a98 046976bd
No related branches found
No related tags found
No related merge requests found
.idea/ .idea/
...@@ -2,8 +2,8 @@ stages: ...@@ -2,8 +2,8 @@ stages:
- test - test
before_script: before_script:
- ln -s /builds /go/src/code.vereign.com - ln -s /builds /go/src/gitlab.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH} - cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests: unit tests:
image: golang:1.17.8 image: golang:1.17.8
...@@ -24,5 +24,5 @@ lint: ...@@ -24,5 +24,5 @@ lint:
- golangci-lint --version - golangci-lint --version
- golangci-lint run - golangci-lint run
before_script: before_script:
- ln -s /builds /go/src/code.vereign.com - ln -s /builds /go/src/gitlab.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH} - cd /go/src/gitlab.com/${CI_PROJECT_PATH}
[![pipeline status](https://code.vereign.com/gaiax/tsa/golib/badges/main/pipeline.svg)](https://code.vereign.com/gaiax/tsa/golib/-/commits/main) [![pipeline status](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/badges/main/pipeline.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/-/commits/main)
[![coverage report](https://code.vereign.com/gaiax/tsa/golib/badges/main/coverage.svg)](https://code.vereign.com/gaiax/tsa/golib/-/commits/main) [![coverage report](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/badges/main/coverage.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/-/commits/main)
# golib # golib
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"net/http" "net/http"
"net/url" "net/url"
"code.vereign.com/gaiax/tsa/golib/errors" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/errors"
) )
// Client for the Cache service. // Client for the Cache service.
......
...@@ -8,8 +8,8 @@ import ( ...@@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/cache" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/cache"
"code.vereign.com/gaiax/tsa/golib/errors" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/errors"
) )
func TestClient_InvalidCacheAddress(t *testing.T) { func TestClient_InvalidCacheAddress(t *testing.T) {
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/errors" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/errors"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/errors" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/errors"
) )
func TestNewID(t *testing.T) { func TestNewID(t *testing.T) {
......
module code.vereign.com/gaiax/tsa/golib module gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib
go 1.17 go 1.19
require ( require (
github.com/stretchr/testify v1.7.0 github.com/stretchr/testify v1.8.0
goa.design/goa/v3 v3.7.6 goa.design/goa/v3 v3.8.5
) )
require ( require (
...@@ -12,9 +12,8 @@ require ( ...@@ -12,9 +12,8 @@ require (
github.com/dimfeld/httptreemux/v5 v5.4.0 // indirect github.com/dimfeld/httptreemux/v5 v5.4.0 // indirect
github.com/google/uuid v1.3.0 // indirect github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect
github.com/kr/text v0.2.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
This diff is collapsed.
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/goadec" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/goadec"
) )
func TestBytesDecoder_Decode(t *testing.T) { func TestBytesDecoder_Decode(t *testing.T) {
......
...@@ -19,7 +19,7 @@ func Shutdown(ctx context.Context, srv *http.Server, timeout time.Duration) erro ...@@ -19,7 +19,7 @@ func Shutdown(ctx context.Context, srv *http.Server, timeout time.Duration) erro
done := make(chan error, 1) done := make(chan error, 1)
go func() { go func() {
c := make(chan os.Signal, 1) c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM) signal.Notify(c, syscall.SIGINT, syscall.SIGTERM)
// wait for a signal or context cancellation // wait for a signal or context cancellation
select { select {
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"code.vereign.com/gaiax/tsa/golib/graceful" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/graceful"
) )
type handler struct { type handler struct {
......
...@@ -5,7 +5,7 @@ This go package contains client for communication with the OCM service. ...@@ -5,7 +5,7 @@ This go package contains client for communication with the OCM service.
### Installation ### Installation
```shell ```shell
go get code.vereign.com/gaiax/tsa/golib/ocm@latest go get gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/ocm@latest
``` ```
###Usage ###Usage
...@@ -14,7 +14,7 @@ In order to use this package you must import it in your application and ...@@ -14,7 +14,7 @@ In order to use this package you must import it in your application and
instantiate the client given the OCM service address like this: instantiate the client given the OCM service address like this:
``` ```
import "code.vereign.com/gaiax/tsa/golib/ocm" import "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/ocm"
func main() { func main() {
client := ocm.New(ocmAddress) client := ocm.New(ocmAddress)
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/ocm" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/ocm"
) )
func Test_GetLoginProofInvitationSuccess(t *testing.T) { func Test_GetLoginProofInvitationSuccess(t *testing.T) {
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"code.vereign.com/gaiax/tsa/golib/ptr" "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/ptr"
) )
func TestBool(t *testing.T) { func TestBool(t *testing.T) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment