Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Add test for init partition reassign
Browse files Browse the repository at this point in the history
muneeb-jan committed Jan 28, 2025
1 parent a507759 commit c05ed2d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions acceptance/openstack/dms/v2/instances_management_test.go
Original file line number Diff line number Diff line change
@@ -82,6 +82,24 @@ func TestDmsManagement(t *testing.T) {
t.Logf("DMSv2.1 get specification is done")
}

func TestDmsInitPartitionReassigning(t *testing.T) {
t.Skip("Needs prior extensive set up. Not suitable for CI")
client, err := clients.NewDmsV2Client()
th.AssertNoErr(t, err)

instanceId := "b56c8421-7711-4fc8-83cb-ab3714772899"
initOpts := management.InitPartitionReassigningOpts{
Reassignments: []management.PartitionReassign{
{
Topic: "test-topic-dms",
Brokers: []int{0, 1, 2},
},
},
}
_, err = management.InitPartitionReassigning(client, instanceId, &initOpts)
th.AssertNoErr(t, err)
}

func resetPass(t *testing.T, client *golangsdk.ServiceClient, instanceId string) error {
t.Helper()
opts := management.PasswordOpts{NewPassword: dmsUserPasswordNew}

0 comments on commit c05ed2d

Please sign in to comment.