Skip to content

Commit

Permalink
Add rds service and some features in bbc and bcc
Browse files Browse the repository at this point in the history
  • Loading branch information
duanliguo committed Jul 14, 2020
1 parent bc1fd7b commit 93d6cf6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions services/bcc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,13 @@ func TestResizeInstance(t *testing.T) {
ExpectEqual(t.Errorf, err, nil)
}

func TestStopInstanceWithNoCharge(t *testing.T) {
err := BCC_CLIENT.StopInstanceWithNoCharge(BCC_TestBccId, true, true)
ExpectEqual(t.Errorf, err, nil)
}

func TestStopInstance(t *testing.T) {
err := BCC_CLIENT.StopInstance(BCC_TestBccId, true, true)
err := BCC_CLIENT.StopInstance(BCC_TestBccId, true)
ExpectEqual(t.Errorf, err, nil)
}

Expand Down Expand Up @@ -693,7 +698,8 @@ func TestInstancePurchaseReserved(t *testing.T) {
ReservationLength: 1,
},
},
RelatedRenewFlag: "CDS",
}
err := BCC_CLIENT.InstancePurchaseReserved(BCC_TestBccId, api.RelatedRenewFlagCDS, purchaseReservedArgs)
err := BCC_CLIENT.InstancePurchaseReserved(BCC_TestBccId, purchaseReservedArgs)
ExpectEqual(t.Errorf, err, nil)
}

0 comments on commit 93d6cf6

Please sign in to comment.