@@ -25,9 +25,15 @@ func TestAccScalewayMNQQueue_BasicSQS(t *testing.T) {
25
25
Steps : []resource.TestStep {
26
26
{
27
27
Config : `
28
+ resource "scaleway_account_project" "project" {
29
+ name = "tf_tests_mnq_basic_sqs"
30
+ }
31
+
28
32
resource "scaleway_mnq_namespace" "main" {
29
- name = "test-mnq-queue-basic-1 "
33
+ name = "main "
30
34
protocol = "sqs_sns"
35
+
36
+ project_id = scaleway_account_project.project.id
31
37
}
32
38
33
39
resource "scaleway_mnq_credential" "main" {
@@ -69,9 +75,15 @@ func TestAccScalewayMNQQueue_BasicSQS(t *testing.T) {
69
75
},
70
76
{
71
77
Config : `
78
+ resource "scaleway_account_project" "project" {
79
+ name = "tf_tests_mnq_basic_sqs"
80
+ }
81
+
72
82
resource "scaleway_mnq_namespace" "main" {
73
- name = "test-mnq-queue-basic-1 "
83
+ name = "main "
74
84
protocol = "sqs_sns"
85
+
86
+ project_id = scaleway_account_project.project.id
75
87
}
76
88
77
89
resource "scaleway_mnq_credential" "main" {
@@ -102,9 +114,15 @@ func TestAccScalewayMNQQueue_BasicSQS(t *testing.T) {
102
114
},
103
115
{
104
116
Config : `
117
+ resource "scaleway_account_project" "project" {
118
+ name = "tf_tests_mnq_basic_sqs"
119
+ }
120
+
105
121
resource "scaleway_mnq_namespace" "main" {
106
- name = "test-mnq-queue-basic-1 "
122
+ name = "main "
107
123
protocol = "sqs_sns"
124
+
125
+ project_id = scaleway_account_project.project.id
108
126
}
109
127
110
128
resource "scaleway_mnq_credential" "main" {
@@ -139,9 +157,15 @@ func TestAccScalewayMNQQueue_BasicSQS(t *testing.T) {
139
157
},
140
158
{
141
159
Config : `
160
+ resource "scaleway_account_project" "project" {
161
+ name = "tf_tests_mnq_basic_sqs"
162
+ }
163
+
142
164
resource "scaleway_mnq_namespace" "main" {
143
- name = "test-mnq-queue-basic-1 "
165
+ name = "main "
144
166
protocol = "sqs_sns"
167
+
168
+ project_id = scaleway_account_project.project.id
145
169
}
146
170
147
171
resource "scaleway_mnq_credential" "main" {
@@ -194,9 +218,15 @@ func TestAccScalewayMNQQueue_BasicNATS(t *testing.T) {
194
218
Steps : []resource.TestStep {
195
219
{
196
220
Config : `
221
+ resource "scaleway_account_project" "project" {
222
+ name = "tf_tests_mnq_basic_nats"
223
+ }
224
+
197
225
resource "scaleway_mnq_namespace" "main" {
198
- name = "test-mnq-nats-basic "
226
+ name = "main "
199
227
protocol = "nats"
228
+
229
+ project_id = scaleway_account_project.project.id
200
230
}
201
231
202
232
resource "scaleway_mnq_credential" "main" {
@@ -222,9 +252,15 @@ func TestAccScalewayMNQQueue_BasicNATS(t *testing.T) {
222
252
},
223
253
{
224
254
Config : `
255
+ resource "scaleway_account_project" "project" {
256
+ name = "tf_tests_mnq_basic_nats"
257
+ }
258
+
225
259
resource "scaleway_mnq_namespace" "main" {
226
- name = "test-mnq-nats-basic "
260
+ name = "main "
227
261
protocol = "nats"
262
+
263
+ project_id = scaleway_account_project.project.id
228
264
}
229
265
230
266
resource "scaleway_mnq_credential" "main" {
0 commit comments