Skip to content

Commit

Permalink
minor fixes to v21
Browse files Browse the repository at this point in the history
  • Loading branch information
Uddipaan Hazarika authored and Uddipaan Hazarika committed Sep 9, 2024
1 parent 54a52dd commit 25c13d3
Show file tree
Hide file tree
Showing 37 changed files with 8 additions and 5,340 deletions.
2 changes: 1 addition & 1 deletion generator-scripts/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ script_base_dir=$(dirname $0)
rm -rf $script_base_dir/../../test/*

java -jar openapi-generator-cli.jar generate \
-i $1 -g go --global-property=skipFormModel=false -p enumClassPrefix=true -o tmp/ --git-host github.com --git-user-id delphix --git-repo-id dct-sdk-go --package-name delphix_dct_api || die "failed to generate code"
-i $1 -g go --global-property=skipFormModel=false -p enumClassPrefix=true -o tmp/ --git-host github.com --git-user-id delphix --git-repo-id dct-sdk-go --package-name delphix_dct_api --global-property=apiTests=false || die "failed to generate code"


# navigating back to the sdk directory
Expand Down
8 changes: 4 additions & 4 deletions generator-scripts/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func main() {
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}}
client := openapi.NewAPIClient(cfg)
req := client.ManagementApi.GetRegisteredEngines(ctx)
engines, _, err := client.ManagementApi.GetRegisteredEnginesExecute(req)
req := client.ManagementAPI.GetRegisteredEngines(ctx)
engines, _, err := client.ManagementAPI.GetRegisteredEnginesExecute(req)
if err != nil {
fmt.Print("Error while retrieving Delphix Engines.")
fmt.Print(err)
Expand All @@ -48,9 +48,9 @@ func main() {
fmt.Printf("%s \n", *engine.Hostname)
}

req_vdb := client.VDBsApi.GetVdbs(ctx)
req_vdb := client.VDBsAPI.GetVdbs(ctx)

vdbs, _, err := client.VDBsApi.GetVdbsExecute(req_vdb)
vdbs, _, err := client.VDBsAPI.GetVdbsExecute(req_vdb)

if err != nil {
fmt.Print("Error while retrieving Delphix Vdb. \n")
Expand Down
9 changes: 1 addition & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
module github.com/delphix/dct-sdk-go/v21

go 1.22
go 1.22.6

require github.com/stretchr/testify v1.9.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
14 changes: 2 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/delphix/dct-sdk-go/v21 v14.0.0 h1:ap+uHAN2zvQQgvyk4lImAjvIo6tkN1pG/8932qq66bY=
github.com/delphix/dct-sdk-go/v21 v14.0.0/go.mod h1:OwfMNFfYxQrunIxpfmFK0cIKC6o8gf2x7fE8LhcWNfo=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
github.com/delphix/dct-sdk-go/v21 v21.0.0 h1:6fj52ADsaKyR41LlEvLFOWeqc6z0fgh6+VzkLRD5yMg=
github.com/delphix/dct-sdk-go/v21 v21.0.0/go.mod h1:4X/VTv451NWvtNwMltqZvNgwDITkTH61yOMOKswoERg=
220 changes: 0 additions & 220 deletions test/api_accounts_test.go

This file was deleted.

90 changes: 0 additions & 90 deletions test/api_algorithms_test.go

This file was deleted.

Loading

0 comments on commit 25c13d3

Please sign in to comment.