From 9cc83f3eca4876e15e94ac5b5320d4f14b3f8f20 Mon Sep 17 00:00:00 2001 From: Rohan Suryawanshi Date: Thu, 8 Feb 2024 14:43:11 +0000 Subject: [PATCH] Reverted uint32 changes --- go/examples/test/create_cloud_test.go | 2 +- go/examples/test/create_profiles_test.go | 2 +- go/examples/test/create_virtualservice_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/examples/test/create_cloud_test.go b/go/examples/test/create_cloud_test.go index 837021f34f..8d45466e2b 100644 --- a/go/examples/test/create_cloud_test.go +++ b/go/examples/test/create_cloud_test.go @@ -39,7 +39,7 @@ func TestCreateCloud(t *testing.T) { cloudobj.LicenseType = < ltier := "ENTERPRISE_18" cloudobj.LicenseTier = <ier - mtu := (uint32)(1300) + mtu := (int32)(1300) cloudobj.Mtu = &mtu tobj, err := aviClient.Cloud.Create(&cloudobj) diff --git a/go/examples/test/create_profiles_test.go b/go/examples/test/create_profiles_test.go index 52e5db9c1f..b84030bc74 100644 --- a/go/examples/test/create_profiles_test.go +++ b/go/examples/test/create_profiles_test.go @@ -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 diff --git a/go/examples/test/create_virtualservice_test.go b/go/examples/test/create_virtualservice_test.go index 30a75622e8..168744a045 100644 --- a/go/examples/test/create_virtualservice_test.go +++ b/go/examples/test/create_virtualservice_test.go @@ -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) @@ -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 {