mirror of https://github.com/hashicorp/terraform
provider/scaleway: govendor integration (#9713)
parent
0dfc7a19c7
commit
71fa8f171b
@ -1,21 +0,0 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/scaleway/scaleway-cli/pkg/scwversion"
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
)
|
||||
|
||||
func TestNewScalewayAPI(t *testing.T) {
|
||||
Convey("Testing NewScalewayAPI()", t, func() {
|
||||
api, err := NewScalewayAPI("my-organization", "my-token", scwversion.UserAgent(), "")
|
||||
So(err, ShouldBeNil)
|
||||
So(api, ShouldNotBeNil)
|
||||
So(api.Token, ShouldEqual, "my-token")
|
||||
So(api.Organization, ShouldEqual, "my-organization")
|
||||
So(api.Cache, ShouldNotBeNil)
|
||||
So(api.client, ShouldNotBeNil)
|
||||
So(api.Logger, ShouldNotBeNil)
|
||||
})
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package scwversion
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
Convey("Testing init()", t, func() {
|
||||
So(VERSION, ShouldNotEqual, "")
|
||||
// So(GITCOMMIT, ShouldNotEqual, "")
|
||||
})
|
||||
}
|
||||
Loading…
Reference in new issue