Skip to content

Commit 36db412

Browse files
committed
WIP acceptance tests
1 parent 06c052b commit 36db412

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package ovh
2+
3+
import (
4+
"testing"
5+
6+
"github.com/hashicorp/terraform/helper/resource"
7+
)
8+
9+
func TestAccMeSshKeysDataSource_basic(t *testing.T) {
10+
resource.Test(t, resource.TestCase{
11+
PreCheck: func() { testAccPreCheck(t) },
12+
Providers: testAccProviders,
13+
Steps: []resource.TestStep{
14+
{
15+
Config: testAccMeSshKeysDatasourceConfig,
16+
Check: resource.ComposeTestCheckFunc(
17+
resource.TestCheckResourceAttrSet(
18+
"data.ovh_me_ssh_keys.keys", "names"),
19+
),
20+
},
21+
},
22+
})
23+
}
24+
25+
const testAccMeSshKeysDatasourceConfig = `
26+
data "ovh_me_ssh_keys" "keys" {}
27+
`
File renamed without changes.

0 commit comments

Comments
 (0)