[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
This commit is contained in:
Kumar Kavish 2023-11-10 15:32:36 +05:30 committed by GitHub
parent 005e1b9926
commit 68e7f27fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 696 additions and 566 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

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