Merge pull request #9546 from hashicorp/fix-scaleway-acceptance-tests
provider/scaleway: Change bootscript datasource acceptance test
This commit is contained in:
commit
c98aa2a3a1
|
@ -20,7 +20,7 @@ func TestAccScalewayDataSourceBootscript_Basic(t *testing.T) {
|
|||
testAccCheckBootscriptID("data.scaleway_bootscript.debug"),
|
||||
resource.TestCheckResourceAttr("data.scaleway_bootscript.debug", "architecture", "x86_64"),
|
||||
resource.TestCheckResourceAttr("data.scaleway_bootscript.debug", "public", "true"),
|
||||
resource.TestMatchResourceAttr("data.scaleway_bootscript.debug", "kernel", regexp.MustCompile("4.5.7")),
|
||||
resource.TestMatchResourceAttr("data.scaleway_bootscript.debug", "kernel", regexp.MustCompile("4.8.3")),
|
||||
),
|
||||
},
|
||||
},
|
||||
|
@ -60,7 +60,7 @@ func testAccCheckBootscriptID(n string) resource.TestCheckFunc {
|
|||
|
||||
const testAccCheckScalewayBootscriptConfig = `
|
||||
data "scaleway_bootscript" "debug" {
|
||||
name = "x86_64 4.5.7 debug #3"
|
||||
name = "x86_64 4.8.3 debug #1"
|
||||
}
|
||||
`
|
||||
|
||||
|
|
Loading…
Reference in New Issue