Move api tests to internal package to remove issue with external resources depending on internal libs
This commit is contained in:
1 parent
5d104a7a01
commit
326086e352
8 files changed
+1
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package main_test
|
||||
|
||||
// TODO: Reenable once we reimplement generation of As functions once static hosts lands
|
||||
/*
|
||||
func TestDetailTemplating(t *testing.T) {
|
||||
lt := time.Now()
|
||||
c := hosts.HostCatalog{
|
||||
Id: "id",
|
||||
CreatedTime: lt,
|
||||
Attributes: map[string]interface{}{
|
||||
"regions": []string{"a", "b"},
|
||||
"access_key": "access",
|
||||
"secret_key": "secret",
|
||||
"rotate": true,
|
||||
},
|
||||
}
|
||||
|
||||
ac, err := c.AsAwsEc2HostCatalog()
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, &hosts.AwsEc2HostCatalog{
|
||||
HostCatalog: &c,
|
||||
Regions: []string{"a", "b"},
|
||||
AccessKey: api.String("access"),
|
||||
SecretKey: api.String("secret"),
|
||||
Rotate: api.Bool(true),
|
||||
}, ac)
|
||||
}
|
||||
*/
|
||||
Reference in new issue
Block a user