Merge pull request #9546 from hashicorp/fix-scaleway-acceptance-tests

provider/scaleway: Change bootscript datasource acceptance test
This commit is contained in:
Paul Stack 2016-10-24 16:24:56 +04:00 committed by GitHub
commit c98aa2a3a1
1 changed files with 2 additions and 2 deletions

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