Skip to content

Commit

Permalink
Reverted uint32 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-sss1 committed Feb 8, 2024
1 parent 982c361 commit 9cc83f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/examples/test/create_cloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestCreateCloud(t *testing.T) {
cloudobj.LicenseType = &lt
ltier := "ENTERPRISE_18"
cloudobj.LicenseTier = &ltier
mtu := (uint32)(1300)
mtu := (int32)(1300)
cloudobj.Mtu = &mtu

tobj, err := aviClient.Cloud.Create(&cloudobj)
Expand Down
2 changes: 1 addition & 1 deletion go/examples/test/create_profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestCreateProfiles(t *testing.T) {
sslobj.TenantRef = &tr
essr := true
sslobj.EnableSslSessionReuse = &essr
sst := (uint32)(86400)
sst := (int32)(86400)
sslobj.SslSessionTimeout = &sst
pcco := false
sslobj.PreferClientCipherOrdering = &pcco
Expand Down
4 changes: 2 additions & 2 deletions go/examples/test/create_virtualservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestCreateVirtualservice(t *testing.T) {
vsobj.TenantRef = &tr
vsobj.PoolRef = npobj.UUID
vsobj.CloudRef = &cuuid
port := (uint32)(80)
port := (int32)(80)
vsobj.Services = append(vsobj.Services, &models.Service{Port: &port})

nvsobj, err := aviClient.VirtualService.Create(&vsobj)
Expand All @@ -139,7 +139,7 @@ func TestCreateVirtualservice(t *testing.T) {
if err == nil {
vsname := "Test-vs"
vservice.Name = &vsname
port := (uint32)(443)
port := (int32)(443)
vservice.Services = append(vsobj.Services, &models.Service{Port: &port})
upObj, err := aviClient.VirtualService.Update(&vservice)
if err != nil {
Expand Down

0 comments on commit 9cc83f3

Please sign in to comment.