Browse Source

[NET-6438] Add tenancy to xDS Tests (#19551)

* [NET-6438] Add tenancy to xDS Tests

* [NET-6438] Add tenancy to xDS Tests
- Fixing imports

* [NET-6438] Add tenancy to xDS Tests
- Added cleanup post test run

* [NET-6356] Add tenancy to xDS Tests
- Added cleanup post test run

* [NET-6438] Add tenancy to xDS Tests
- using t.Cleanup instead of defer delete

* [NET-6438] Add tenancy to xDS Tests
- rebased

* [NET-6438] Add tenancy to xDS Tests
- rebased
pull/19603/head
Kumar Kavish 1 year ago committed by GitHub
parent
commit
68e7f27fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agent/grpc-external/services/resource/testing/testing.go
  2. 1234
      internal/mesh/internal/controllers/xds/controller_test.go
  3. 2
      internal/resource/resourcetest/tenancy.go

2
agent/grpc-external/services/resource/testing/testing.go vendored

@ -5,7 +5,6 @@ package testing
import (
"context"
rtest "github.com/hashicorp/consul/internal/resource/resourcetest"
"testing"
"github.com/hashicorp/go-uuid"
@ -21,6 +20,7 @@ import (
internal "github.com/hashicorp/consul/agent/grpc-internal"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/internal/resource"
rtest "github.com/hashicorp/consul/internal/resource/resourcetest"
"github.com/hashicorp/consul/internal/storage/inmem"
"github.com/hashicorp/consul/internal/tenancy"
"github.com/hashicorp/consul/proto-public/pbresource"

1234
internal/mesh/internal/controllers/xds/controller_test.go

File diff suppressed because it is too large Load Diff

2
internal/resource/resourcetest/tenancy.go

@ -4,10 +4,10 @@
package resourcetest
import (
"github.com/hashicorp/consul/agent/structs"
"strings"
"testing"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/internal/resource"
"github.com/hashicorp/consul/proto-public/pbresource"
)

Loading…
Cancel
Save