Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamoss committed Apr 21, 2021
1 parent b0d1f22 commit 1228215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builder/ucloud/uhost/builder_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (

"github.com/hashicorp/packer-plugin-sdk/acctest"
"github.com/hashicorp/packer-plugin-sdk/acctest/testutils"
"github.com/hashicorp/packer-plugin-sdk/version"
"github.com/hashicorp/packer-plugin-ucloud/builder/ucloud/common"
ucloudcommon "github.com/hashicorp/packer-plugin-ucloud/builder/ucloud/common"
"github.com/stretchr/testify/assert"
)
Expand Down Expand Up @@ -233,6 +235,7 @@ func testAccPreCheck() error {
func TestUCloudClientBaseUrlConfigurable(t *testing.T) {
const url = "baseUrl"
access := &ucloudcommon.AccessConfig{BaseUrl: url, PublicKey: "test", PrivateKey: "test"}
common.UcloudPluginVersion = version.InitializePluginVersion("0.0.0", "dev")
client, err := access.Client()
assert.Nil(t, err)
assert.Equal(t, url, client.UAccountConn.Client.GetConfig().BaseUrl, "account conn's base url not configurable")
Expand Down

0 comments on commit 1228215

Please sign in to comment.