Skip to content

Commit

Permalink
Review feedback from Iryna
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnotashwin committed Sep 20, 2022
1 parent 26f0877 commit 1b98c7e
Show file tree
Hide file tree
Showing 24 changed files with 518 additions and 503 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ func TestExample(t *testing.T) {
}
```

Please see [mesh gateway tests](acceptance/tests/mesh-gateway/mesh_gateway_test.go)
Please see [wan federation tests](acceptance/tests/wan-federation/wan_federation_test.go)
for an example of how to use write a test that uses multiple contexts.

#### Writing Assertions
Expand Down
3 changes: 0 additions & 3 deletions acceptance/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,8 @@ github.com/gruntwork-io/terratest v0.31.2 h1:xvYHA80MUq5kx670dM18HInewOrrQrAN+Xb
github.com/gruntwork-io/terratest v0.31.2/go.mod h1:EEgJie28gX/4AD71IFqgMj6e99KP5mi81hEtzmDjxTo=
github.com/hashicorp/consul-k8s/control-plane v0.0.0-20211207212234-aea9efea5638 h1:z68s6H6O3RjxDmNvou/2/3UBrsJkrMcNzI0IQN5scAM=
github.com/hashicorp/consul-k8s/control-plane v0.0.0-20211207212234-aea9efea5638/go.mod h1:7ZeaiADGbvJDuoWAT8UKj6KCcLsFUk+34OkUGMVtdXg=
github.com/hashicorp/consul/api v1.10.1-0.20220726130109-a6a79d6811df h1:CCh336XUGPaMNqMkzRAeEL0BFin7LhX729xy3IxE5Y4=
github.com/hashicorp/consul/api v1.10.1-0.20220726130109-a6a79d6811df/go.mod h1:bcaw5CSZ7NE9qfOfKCI1xb7ZKjzu/MyvQkCLTfqLqxQ=
github.com/hashicorp/consul/api v1.14.0 h1:Y64GIJ8hYTu+tuGekwO4G4ardXoiCivX9wv1iP/kihk=
github.com/hashicorp/consul/api v1.14.0/go.mod h1:bcaw5CSZ7NE9qfOfKCI1xb7ZKjzu/MyvQkCLTfqLqxQ=
github.com/hashicorp/consul/sdk v0.10.0 h1:rGLEh2AWK4K0KCMvqWAz2EYxQqgciIfMagWZ0nVe5MI=
github.com/hashicorp/consul/sdk v0.10.0/go.mod h1:yPkX5Q6CsxTFMjQQDJwzeNmUUF5NUGGbrDsv9wTb8cw=
github.com/hashicorp/consul/sdk v0.11.0 h1:HRzj8YSCln2yGgCumN5CL8lYlD3gBurnervJRJAZyC4=
github.com/hashicorp/consul/sdk v0.11.0/go.mod h1:yPkX5Q6CsxTFMjQQDJwzeNmUUF5NUGGbrDsv9wTb8cw=
Expand Down
294 changes: 0 additions & 294 deletions acceptance/tests/mesh-gateway/mesh_gateway_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion acceptance/tests/partitions/partitions_connect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const StaticClientNamespace = "ns2"

// Test that Connect works in a default and ACLsEnabled installations for X-Partition and in-partition networking.
func TestPartitions_Connect(t *testing.T) {
t.Skipf("currently unsupported in agentless")

env := suite.Environment()
cfg := suite.Config()

Expand Down Expand Up @@ -92,7 +94,6 @@ func TestPartitions_Connect(t *testing.T) {

commonHelmValues := map[string]string{
"global.adminPartitions.enabled": "true",
"global.image": "thisisnotashwin/consul@sha256:477091fe84cde79a68a37cc9cc69fb7a5ab35e647a0f5f2632451ace5ecc5e7c",
"global.enableConsulNamespaces": "true",

"global.tls.enabled": "true",
Expand Down
3 changes: 2 additions & 1 deletion acceptance/tests/partitions/partitions_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (

// Test that Sync Catalog works in a default and ACLsEnabled installations for partitions.
func TestPartitions_Sync(t *testing.T) {
t.Skipf("currently unsupported in agentless")

env := suite.Environment()
cfg := suite.Config()

Expand Down Expand Up @@ -87,7 +89,6 @@ func TestPartitions_Sync(t *testing.T) {

commonHelmValues := map[string]string{
"global.adminPartitions.enabled": "true",
"global.image": "thisisnotashwin/consul@sha256:477091fe84cde79a68a37cc9cc69fb7a5ab35e647a0f5f2632451ace5ecc5e7c",
"global.enableConsulNamespaces": "true",

"global.tls.enabled": "true",
Expand Down
8 changes: 5 additions & 3 deletions acceptance/tests/peering/peering_connect_namespaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const staticClientNamespace = "ns2"

// Test that Connect works in installations for X-Peers networking.
func TestPeering_ConnectNamespaces(t *testing.T) {
t.Skipf("currently unsupported in agentless")

env := suite.Environment()
cfg := suite.Config()

Expand Down Expand Up @@ -99,9 +101,9 @@ func TestPeering_ConnectNamespaces(t *testing.T) {
commonHelmValues := map[string]string{
"global.peering.enabled": "true",
"global.enableConsulNamespaces": "true",
"global.image": "thisisnotashwin/consul@sha256:477091fe84cde79a68a37cc9cc69fb7a5ab35e647a0f5f2632451ace5ecc5e7c",
"global.tls.enabled": "true",
"global.tls.httpsOnly": strconv.FormatBool(c.ACLsEnabled),

"global.tls.enabled": "true",
"global.tls.httpsOnly": strconv.FormatBool(c.ACLsEnabled),

"global.acls.manageSystemACLs": strconv.FormatBool(c.ACLsEnabled),

Expand Down
8 changes: 5 additions & 3 deletions acceptance/tests/peering/peering_connect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (

// Test that Connect works in installations for X-Peers networking.
func TestPeering_Connect(t *testing.T) {
t.Skipf("currently unsupported in agentless")

env := suite.Environment()
cfg := suite.Config()

Expand Down Expand Up @@ -59,9 +61,9 @@ func TestPeering_Connect(t *testing.T) {
commonHelmValues := map[string]string{
"global.peering.enabled": "true",

"global.tls.enabled": "true",
"global.tls.httpsOnly": strconv.FormatBool(c.ACLsEnabled),
"global.image": "thisisnotashwin/consul@sha256:477091fe84cde79a68a37cc9cc69fb7a5ab35e647a0f5f2632451ace5ecc5e7c",
"global.tls.enabled": "true",
"global.tls.httpsOnly": strconv.FormatBool(c.ACLsEnabled),

"global.acls.manageSystemACLs": strconv.FormatBool(c.ACLsEnabled),

"connectInject.enabled": "true",
Expand Down
Loading

0 comments on commit 1b98c7e

Please sign in to comment.