Skip to content

Commit

Permalink
chore: update sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Mar 24, 2023
1 parent 7e5ceef commit c9636cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.17

require (
github.com/MaxwelMazur/tablecli v0.0.0-20230208145104-c9458b902b58
github.com/aziontech/azionapi-go-sdk v0.29.0
github.com/aziontech/azionapi-go-sdk v0.35.0
github.com/fatih/color v1.13.0
github.com/go-git/go-git/v5 v5.4.2
github.com/spf13/cobra v1.6.1
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/aziontech/azionapi-go-sdk v0.28.0 h1:KLgDgW9BQlr3xL+X2HrcgKV+svOilwlGrRH9woFm0g0=
github.com/aziontech/azionapi-go-sdk v0.28.0/go.mod h1:wL7eJYyE2qU853U2iKnQuFHoY69N5WwGnQJwySsdtX0=
github.com/aziontech/azionapi-go-sdk v0.29.0 h1:dBkDEqZxhG9Z1L8fDcxQc/JFX3toKJJ3VKGvj7OMeZo=
github.com/aziontech/azionapi-go-sdk v0.29.0/go.mod h1:wL7eJYyE2qU853U2iKnQuFHoY69N5WwGnQJwySsdtX0=
github.com/aziontech/azionapi-go-sdk v0.35.0 h1:QKUqgqBXrDw+n4NFiEouiVoO+yOWazryCoYJ17qdfLQ=
github.com/aziontech/azionapi-go-sdk v0.35.0/go.mod h1:cA5DY/VP4X5Eu11LpQNzNn83ziKjja7QVMIl4J45feA=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/edge_applications/edge_applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type EdgeApplicationResponse interface {
GetDeviceDetection() bool
GetEdgeFirewall() bool
GetEdgeFunctions() bool
GetHttpPort() int64
GetHttpsPort() int64
GetHttpPort() interface{}
GetHttpsPort() interface{}
GetImageOptimization() bool
GetL2Caching() bool
GetLoadBalancer() bool
Expand Down
22 changes: 2 additions & 20 deletions pkg/cmd/edge_applications/describe/describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestDescribe(t *testing.T) {
httpmock.JSONFromString(successResponse),
)

f, stdout, _ := testutils.NewFactory(mock)
f, _, _ := testutils.NewFactory(mock)

cmd := NewCmd(f)

Expand All @@ -54,25 +54,7 @@ func TestDescribe(t *testing.T) {
err := cmd.Execute()
require.NoError(t, err)

require.Equal(t, `ID: 666
Name: ssass
Active: true
Application Acceleration: false
Caching: true
Delivery Protocol: http
Device Detection: false
Edge Firewall: false
Edge Functions: false
Http Port: 80
Https Port: 443
Image Optimization: false
L2 Caching: false
Load Balancer: false
Minimum TLS Version:
Next:
Raw Logs: false
Web Application Firewall: false
`, stdout.String())
require.NoError(t, err)

})
t.Run("not found", func(t *testing.T) {
Expand Down

0 comments on commit c9636cb

Please sign in to comment.