provider/scaleway: Change bootscript datasource acceptance test

The tests were referencing an old bootscript - this just bumps the value
to the latest. The list of bootscripts can be found at
http://devhub.scaleway.com/#/bootscripts
This commit is contained in:
stack72 2016-10-24 13:11:41 +01:00
parent 7f35b56df8
commit c4e2ff9cbb
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16

View File

@ -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"
}
`