Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Sep 16, 2024
1 parent 379475e commit fda8890
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"net/http"

"cloud-proxy/internal/e2etest"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
compute "cloud.google.com/go/compute/apiv1"
container "cloud.google.com/go/container/apiv1"
cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
"golang.org/x/sync/errgroup"
"google.golang.org/api/option"
"google.golang.org/grpc"
Expand Down
3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.23.1
require (
cloud.google.com/go/compute v1.28.0
cloud.google.com/go/container v1.39.0
github.com/castai/cloud-proxy v0.0.0-00010101000000-000000000000
github.com/golang/mock v1.6.0
github.com/google/uuid v1.6.0
github.com/samber/lo v1.47.0
Expand Down Expand Up @@ -64,5 +63,3 @@ require (
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/castai/cloud-proxy => ./
2 changes: 1 addition & 1 deletion internal/castai/dummy/mock_cast.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dummy

import (
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"fmt"
cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
"io"
"log"
"net"
Expand Down
2 changes: 1 addition & 1 deletion internal/e2etest/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"sync"

cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
)

type Dispatcher struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/e2etest/roundtripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package e2etest

import (
"bytes"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"fmt"
cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
"io"
"log"
"net/http"
Expand Down
4 changes: 2 additions & 2 deletions internal/proxy/client.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//go:generate mockgen -package=mock_proxy -source $GOFILE -destination mock/$GOFILE .
//go:generate mockgen -package=mock_proxy -destination mock/stream.go github.com/castai/cloud-proxy/proto/gen/proto/v1alpha CloudProxyAPI_StreamCloudProxyClient
//go:generate mockgen -package=mock_proxy -destination mock/stream.go cloud-proxy/proto/gen/proto/v1alpha CloudProxyAPI_StreamCloudProxyClient

package proxy

import (
"bytes"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"context"
"fmt"
cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
Expand Down
3 changes: 2 additions & 1 deletion internal/proxy/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package proxy
import (
"bytes"
mock_proxy "cloud-proxy/internal/proxy/mock"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"context"
"fmt"
cloudproxyv1alpha "github.com/castai/cloud-proxy/proto/gen/proto/v1alpha"
"github.com/golang/mock/gomock"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -457,6 +457,7 @@ func TestClient_run(t *testing.T) {
},
},
wantLastSeenUpdated: true,
wantErr: true,
},
}
for _, tt := range tests {
Expand Down
4 changes: 2 additions & 2 deletions internal/proxy/mock/stream.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fda8890

Please sign in to comment.