Skip to content

Commit

Permalink
replace real dns lookup for appgate.com with appgate.test
Browse files Browse the repository at this point in the history
Do not rely on a production sever to lookup static ip, we will mock DNS in tests when we test domain logic that
relies on testing if a site is behind a loadbalancer.

since 2023-07-13 all unit test started to fail because of remote changes of appgate.com
see:
- https://github.com/appgate/sdpctl/actions/runs/5529520744
- https://github.com/appgate/sdpctl/actions/runs/5529666773
  • Loading branch information
dlnilsson committed Jul 13, 2023
1 parent 3286eeb commit d491fc9
Show file tree
Hide file tree
Showing 15 changed files with 132 additions and 35 deletions.
6 changes: 3 additions & 3 deletions cmd/appliance/backup/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestBackupCmd(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: buf,
}
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestBackupCmdFailedOnServer(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: buf,
}
Expand Down Expand Up @@ -180,7 +180,7 @@ func TestBackupCmdDisabledAPI(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: buf,
}
Expand Down
6 changes: 5 additions & 1 deletion cmd/appliance/force_disable_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import (
"github.com/appgate/sdp-api-client-go/api/v19/openapi"
"github.com/appgate/sdpctl/pkg/appliance"
"github.com/appgate/sdpctl/pkg/configuration"
"github.com/appgate/sdpctl/pkg/dns"
"github.com/appgate/sdpctl/pkg/factory"
"github.com/appgate/sdpctl/pkg/httpmock"
"github.com/appgate/sdpctl/pkg/prompt"
"github.com/foxcpp/go-mockdns"
"github.com/google/shlex"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -254,6 +256,8 @@ func TestForceDisableControllerCMD(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, teardown := dns.RunMockDNSServer(map[string]mockdns.Zone{})
defer teardown()
registry := httpmock.NewRegistry(t)
for _, v := range tt.httpStubs {
registry.Register(v.URL, v.Responder)
Expand All @@ -267,7 +271,7 @@ func TestForceDisableControllerCMD(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("https://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("https://appgate.test:%d", registry.Port),
},
IOOutWriter: stdout,
Stdin: in,
Expand Down
12 changes: 6 additions & 6 deletions cmd/appliance/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestApplianceListCommandTable(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: stdout,
Stdin: in,
Expand Down Expand Up @@ -117,7 +117,7 @@ func TestApplianceListCommandTable(t *testing.T) {
gotStr := string(got)
want := `Name ID Hostname Site Activated
---- -- -------- ---- ---------
controller-da0375f6-0b28-4248-bd54-a933c4c39008-site1 4c07bc67-57ea-42dd-b702-c2d6c45419fc appgate.com Default Site true
controller-da0375f6-0b28-4248-bd54-a933c4c39008-site1 4c07bc67-57ea-42dd-b702-c2d6c45419fc appgate.test Default Site true
gateway-da0375f6-0b28-4248-bd54-a933c4c39008-site1 ee639d70-e075-4f01-596b-930d5f24f569 gateway.devops Default Site true
`
if !cmp.Equal(want, gotStr) {
Expand All @@ -140,7 +140,7 @@ func TestApplianceFiltering(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: stdout,
Stdin: in,
Expand Down Expand Up @@ -176,9 +176,9 @@ func TestApplianceFiltering(t *testing.T) {
t.Fatalf("unable to read stdout %s", err)
}
gotStr := string(got)
want := `Name ID Hostname Site Activated
---- -- -------- ---- ---------
controller-da0375f6-0b28-4248-bd54-a933c4c39008-site1 4c07bc67-57ea-42dd-b702-c2d6c45419fc appgate.com Default Site true
want := `Name ID Hostname Site Activated
---- -- -------- ---- ---------
controller-da0375f6-0b28-4248-bd54-a933c4c39008-site1 4c07bc67-57ea-42dd-b702-c2d6c45419fc appgate.test Default Site true
`
if !cmp.Equal(want, gotStr) {
t.Fatalf("\nGot: \n %q \n\n Want: \n %q \n", gotStr, want)
Expand Down
6 changes: 5 additions & 1 deletion cmd/appliance/upgrade/complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import (
"github.com/appgate/sdp-api-client-go/api/v19/openapi"
appliancepkg "github.com/appgate/sdpctl/pkg/appliance"
"github.com/appgate/sdpctl/pkg/configuration"
"github.com/appgate/sdpctl/pkg/dns"
"github.com/appgate/sdpctl/pkg/factory"
"github.com/appgate/sdpctl/pkg/httpmock"
"github.com/appgate/sdpctl/pkg/prompt"
"github.com/appgate/sdpctl/pkg/tui"
"github.com/foxcpp/go-mockdns"
"github.com/google/shlex"
"github.com/hashicorp/go-version"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -417,6 +419,8 @@ func TestUpgradeCompleteCommand(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, teardown := dns.RunMockDNSServer(map[string]mockdns.Zone{})
defer teardown()
registry := httpmock.NewRegistry(t)
for _, v := range tt.httpStubs {
registry.Register(v.URL, v.Responder)
Expand All @@ -431,7 +435,7 @@ func TestUpgradeCompleteCommand(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
},
IOOutWriter: stdout,
Stdin: in,
Expand Down
7 changes: 5 additions & 2 deletions cmd/appliance/upgrade/prepare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import (
"github.com/appgate/sdp-api-client-go/api/v19/openapi"
appliancepkg "github.com/appgate/sdpctl/pkg/appliance"
"github.com/appgate/sdpctl/pkg/configuration"
"github.com/appgate/sdpctl/pkg/dns"
"github.com/appgate/sdpctl/pkg/factory"
"github.com/appgate/sdpctl/pkg/httpmock"
"github.com/appgate/sdpctl/pkg/prompt"
"github.com/appgate/sdpctl/pkg/tui"
"github.com/foxcpp/go-mockdns"
"github.com/google/shlex"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -490,7 +492,8 @@ func TestUpgradePrepareCommand(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {

_, teardown := dns.RunMockDNSServer(map[string]mockdns.Zone{})
defer teardown()
registry := httpmock.NewRegistry(t)
for _, v := range tt.httpStubs {
registry.Register(v.URL, v.Responder)
Expand All @@ -505,7 +508,7 @@ func TestUpgradePrepareCommand(t *testing.T) {
f := &factory.Factory{
Config: &configuration.Config{
Debug: false,
URL: fmt.Sprintf("http://appgate.com:%d", registry.Port),
URL: fmt.Sprintf("http://appgate.test:%d", registry.Port),
Version: 16,
},
IOOutWriter: stdout,
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/danieljoos/wincred v1.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/foxcpp/go-mockdns v1.0.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
Expand All @@ -54,6 +55,7 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/miekg/dns v1.1.55 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand All @@ -63,9 +65,12 @@ require (
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/oauth2 v0.9.0 // indirect
golang.org/x/term v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/tools v0.11.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
Expand Down
16 changes: 16 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/foxcpp/go-mockdns v1.0.0 h1:7jBqxd3WDWwi/6WhDvacvH1XsN3rOLXyHM1uhvIx6FI=
github.com/foxcpp/go-mockdns v1.0.0/go.mod h1:lgRN6+KxQBawyIghpnl5CezHFGS9VLzvtVlwxvzXTQ4=
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
Expand Down Expand Up @@ -207,6 +209,9 @@ github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
github.com/miekg/dns v1.1.25/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
github.com/miekg/dns v1.1.55 h1:GoQ4hpsj0nFLYe+bWiCToyrBEJXkQfOOIvFGFy0lEgo=
github.com/miekg/dns v1.1.55/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ=
Expand Down Expand Up @@ -274,11 +279,14 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA=
golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
Expand Down Expand Up @@ -313,6 +321,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand All @@ -325,6 +335,7 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
Expand Down Expand Up @@ -382,6 +393,8 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down Expand Up @@ -450,6 +463,7 @@ golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgw
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
Expand Down Expand Up @@ -485,6 +499,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.11.0 h1:EMCa6U9S2LtZXLAMoWiR/R8dAQFRqbAitmbJ2UKhoi8=
golang.org/x/tools v0.11.0/go.mod h1:anzJrxPjNtfgiYQYirP2CPGzGLxrH2u2QBhn6Bf3qY8=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
6 changes: 3 additions & 3 deletions pkg/appliance/fixtures/appliance_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"activated": true,
"pendingCertificateRenewal": false,
"version": 14,
"hostname": "appgate.com",
"hostname": "appgate.test",
"site": "8a4add9e-0e99-4bb1-949c-c9faf9a49ad4",
"siteName": "Default Site",
"connectToPeersUsingClientPortWithSpa": true,
"clientInterface": {
"proxyProtocol": false,
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 443,
"dtlsPort": 443,
"allowSources": [
Expand All @@ -31,7 +31,7 @@
]
},
"adminInterface": {
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 8443,
"allowSources": [
{
Expand Down
6 changes: 3 additions & 3 deletions pkg/appliance/fixtures/ha_appliance_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"activated": true,
"pendingCertificateRenewal": false,
"version": 14,
"hostname": "appgate.com",
"hostname": "appgate.test",
"site": "8a4add9e-0e99-4bb1-949c-c9faf9a49ad4",
"siteName": "Default Site",
"connectToPeersUsingClientPortWithSpa": true,
"clientInterface": {
"proxyProtocol": false,
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 443,
"dtlsPort": 443,
"allowSources": [
Expand All @@ -31,7 +31,7 @@
]
},
"adminInterface": {
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 8443,
"allowSources": [
{
Expand Down
6 changes: 3 additions & 3 deletions pkg/appliance/fixtures/two_controller_one_offline.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"activated": true,
"pendingCertificateRenewal": false,
"version": 14,
"hostname": "appgate.com",
"hostname": "appgate.test",
"site": "8a4add9e-0e99-4bb1-949c-c9faf9a49ad4",
"siteName": "Default Site",
"connectToPeersUsingClientPortWithSpa": true,
"clientInterface": {
"proxyProtocol": false,
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 443,
"dtlsPort": 443,
"allowSources": [
Expand All @@ -31,7 +31,7 @@
]
},
"adminInterface": {
"hostname": "appgate.com",
"hostname": "appgate.test",
"httpsPort": 8443,
"allowSources": [
{
Expand Down
Loading

0 comments on commit d491fc9

Please sign in to comment.