Skip to content

Commit

Permalink
[fix] fix bugs nil
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Oct 30, 2024
1 parent 54382fd commit fbf8ee1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions test/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func TestAuthenPass(t *ltesting.T) {
t.Error("This testcase MUST pass")
}

fmt.Println("RESULT 2:", token.Token)
t.Log("RESULT:", token)
t.Log("PASS")
}
Expand Down
8 changes: 4 additions & 4 deletions test/lb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ func TestListTagsSuccess(t *ltesting.T) {

func TestCreateTagsSuccess(t *ltesting.T) {
vngcloud := validSdkConfig()
opt := lslbv2.NewCreateTagsRequest("lb-0d9bc46b-66db-4c57-8270-cd380226839d").
WithTags("cuongdm4", "cuongdm4", "vinhnt9", "vinhnt9")
opt := lslbv2.NewCreateTagsRequest("lb-3b53db2e-357a-406b-9c56-499f1c21a48c").
WithTags("vks-owned-cluster2", "none")
sdkErr := vngcloud.VLBGateway().V2().LoadBalancerService().CreateTags(opt)
if sdkErr != nil {
t.Fatalf("Expect nil but got %+v", sdkErr.GetMessage())
Expand All @@ -520,8 +520,8 @@ func TestCreateTagsSuccess(t *ltesting.T) {

func TestUpdateTagsSuccess(t *ltesting.T) {
vngcloud := validSdkConfig()
opt := lslbv2.NewUpdateTagsRequest("lb-0d9bc46b-66db-4c57-8270-cd380226839d").
WithTags("cuongdm4", "cuongdm5")
opt := lslbv2.NewUpdateTagsRequest("lb-39e1750b-7141-455e-a668-a03d53b0328b").
WithTags("vks-user", "cuongdm4")
sdkErr := vngcloud.VLBGateway().V2().LoadBalancerService().UpdateTags(opt)
if sdkErr != nil {
t.Fatalf("Expect nil but got %+v", sdkErr.GetMessage())
Expand Down
2 changes: 0 additions & 2 deletions vngcloud/services/loadbalancer/v2/loadbalancer_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ func (s *CreateLoadBalancerRequest) ToMap() map[string]interface{} {
"autoScalable": s.AutoScalable,
"subnetId": s.SubnetID,
"type": s.Type,
"listener": s.Listener.ToMap(),
"pool": s.Pool.ToMap(),
"tags": s.Tags,
}

Expand Down

0 comments on commit fbf8ee1

Please sign in to comment.