Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmv committed Aug 2, 2024
1 parent 5694b77 commit dbecdc1
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 104 deletions.
7 changes: 0 additions & 7 deletions acceptance/openstack/dms/v2.1/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ func TestDmsLifeCycle(t *testing.T) {
th.AssertNoErr(t, err)
th.AssertEquals(t, "some interesting description", dmsInstance.Description)

err = instances.ChangePassword(client, instanceID, instances.PasswordOpts{
NewPassword: "5ecuredPa55w0rd!-not",
})
th.AssertNoErr(t, err)
t.Logf("DMSv2 Instance password updated")

// updateDMScrossVpc(t, client, instanceID)
dmsTopic := createTopic(t, client, instanceID)

err = updateDmsTopic(t, client, instanceID, dmsTopic)
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions openstack/dms/v2.1/instances/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package instances

// endpoint/instances
const resourcePath = "instances"
52 changes: 0 additions & 52 deletions openstack/dms/v2.1/instances/requests.go

This file was deleted.

19 changes: 0 additions & 19 deletions openstack/dms/v2.1/instances/results.go

This file was deleted.

19 changes: 0 additions & 19 deletions openstack/dms/v2.1/instances/urls.go

This file was deleted.

7 changes: 0 additions & 7 deletions openstack/dms/v2.1/products/urls.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
package products

import (
"strings"

"github.com/opentelekomcloud/gophertelekomcloud"
)

// endpoint/products
const resourcePath = "products"

func getURL(client *golangsdk.ServiceClient) string {
url := strings.Split(client.Endpoint, "/v2/")[0]
return url + "/v2/products"
}

func listURL(client *golangsdk.ServiceClient, engineType string) string {
return client.ServiceURL(engineType, resourcePath)
}

0 comments on commit dbecdc1

Please sign in to comment.