Skip to content

Commit 004da25

Browse files
chore(secret): fix tests (#3514)
1 parent e42aa63 commit 004da25

File tree

5 files changed

+771
-1462
lines changed

5 files changed

+771
-1462
lines changed

internal/services/secret/secret_data_source_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,16 @@ func TestAccDataSourceSecret_Path(t *testing.T) {
7070
Steps: []resource.TestStep{
7171
{
7272
Config: `
73-
resource "scaleway_account_project" "project" {
74-
name = "tf-tests-secret-ds-path"
75-
}
76-
7773
resource "scaleway_secret" "main" {
7874
name = "test-secret-ds-path"
7975
path = "/test-secret-ds-path-path"
80-
project_id = scaleway_account_project.project.id
8176
}
8277
8378
data "scaleway_secret" "by_name" {
8479
name = scaleway_secret.main.name
8580
path = "/test-secret-ds-path-path"
86-
project_id = scaleway_account_project.project.id
81+
project_id = scaleway_secret.main.project_id
82+
depends_on = [scaleway_secret.main]
8783
}
8884
`,
8985
Check: resource.ComposeTestCheckFunc(

0 commit comments

Comments
 (0)