@@ -119,6 +119,7 @@ func TestAccDataSourceProject_Extract(t *testing.T) {
119
119
})
120
120
}
121
121
122
+ // This test was recorded using the hashicorp test account and expects projects from the 'terraform-provider-scaleway' organization
122
123
func TestAccDataSourceProject_List (t * testing.T ) {
123
124
tt := acctest .NewTestTools (t )
124
125
defer tt .Cleanup ()
@@ -141,11 +142,15 @@ func TestAccDataSourceProject_List(t *testing.T) {
141
142
organization_id = "%s"
142
143
}` , orgID ),
143
144
Check : resource .ComposeTestCheckFunc (
144
- resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.#" , "8" ),
145
- resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.0.id" , "6867048b-fe12-4e96-835e-41c79a39604b" ),
146
- resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.1.id" , "8cc8dd4d-a094-407a-89a3-9d004674e936" ),
145
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.#" , "4" ),
146
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.0.id" , "105bdce1-64c0-48ab-899d-868455867ecf" ),
147
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.1.id" , "c567f266-af4f-4da0-a35b-98c34086f991" ),
148
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.2.id" , "fe479fbe-6cae-44c5-bb7a-7fc9f04acad5" ),
149
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.3.id" , "f5375b18-7efc-4416-ab13-c42af955602c" ),
147
150
resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.0.name" , "default" ),
148
- resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.1.name" , "tf_tests_container_trigger_sqs" ),
151
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.1.name" , "Packer Plugin Scaleway" ),
152
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.2.name" , "SDK Python" ),
153
+ resource .TestCheckResourceAttr ("data.scaleway_account_projects.projects" , "projects.3.name" , "ansible" ),
149
154
),
150
155
},
151
156
},
0 commit comments