@@ -44,6 +44,7 @@ def test_save_schema(self):
44
44
headers = {
45
45
** common .default_headers ,
46
46
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
47
+ "x-descope-project-id" : self .dummy_project_id ,
47
48
},
48
49
params = None ,
49
50
json = {"schema" : {"name" : "kuku" }, "upgrade" : True },
@@ -74,6 +75,7 @@ def test_delete_schema(self):
74
75
headers = {
75
76
** common .default_headers ,
76
77
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
78
+ "x-descope-project-id" : self .dummy_project_id ,
77
79
},
78
80
params = None ,
79
81
json = None ,
@@ -104,6 +106,7 @@ def test_load_schema(self):
104
106
headers = {
105
107
** common .default_headers ,
106
108
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
109
+ "x-descope-project-id" : self .dummy_project_id ,
107
110
},
108
111
params = None ,
109
112
json = None ,
@@ -136,6 +139,7 @@ def test_save_namespace(self):
136
139
headers = {
137
140
** common .default_headers ,
138
141
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
142
+ "x-descope-project-id" : self .dummy_project_id ,
139
143
},
140
144
params = None ,
141
145
json = {
@@ -170,6 +174,7 @@ def test_delete_namespace(self):
170
174
headers = {
171
175
** common .default_headers ,
172
176
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
177
+ "x-descope-project-id" : self .dummy_project_id ,
173
178
},
174
179
params = None ,
175
180
json = {"name" : "a" , "schemaName" : "b" },
@@ -206,6 +211,7 @@ def test_save_relation_definition(self):
206
211
headers = {
207
212
** common .default_headers ,
208
213
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
214
+ "x-descope-project-id" : self .dummy_project_id ,
209
215
},
210
216
params = None ,
211
217
json = {
@@ -245,6 +251,7 @@ def test_delete_relation_definition(self):
245
251
headers = {
246
252
** common .default_headers ,
247
253
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
254
+ "x-descope-project-id" : self .dummy_project_id ,
248
255
},
249
256
params = None ,
250
257
json = {"name" : "a" , "namespace" : "b" , "schemaName" : "c" },
@@ -286,6 +293,7 @@ def test_create_relations(self):
286
293
headers = {
287
294
** common .default_headers ,
288
295
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
296
+ "x-descope-project-id" : self .dummy_project_id ,
289
297
},
290
298
params = None ,
291
299
json = {
@@ -336,6 +344,7 @@ def test_delete_relations(self):
336
344
headers = {
337
345
** common .default_headers ,
338
346
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
347
+ "x-descope-project-id" : self .dummy_project_id ,
339
348
},
340
349
params = None ,
341
350
json = {
@@ -377,6 +386,7 @@ def test_delete_relations_for_resources(self):
377
386
headers = {
378
387
** common .default_headers ,
379
388
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
389
+ "x-descope-project-id" : self .dummy_project_id ,
380
390
},
381
391
params = None ,
382
392
json = {"resources" : ["r" ]},
@@ -418,6 +428,7 @@ def test_has_relations(self):
418
428
headers = {
419
429
** common .default_headers ,
420
430
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
431
+ "x-descope-project-id" : self .dummy_project_id ,
421
432
},
422
433
params = None ,
423
434
json = {
@@ -459,6 +470,7 @@ def test_who_can_access(self):
459
470
headers = {
460
471
** common .default_headers ,
461
472
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
473
+ "x-descope-project-id" : self .dummy_project_id ,
462
474
},
463
475
params = None ,
464
476
json = {"resource" : "a" , "relationDefinition" : "b" , "namespace" : "c" },
@@ -489,6 +501,7 @@ def test_resource_relations(self):
489
501
headers = {
490
502
** common .default_headers ,
491
503
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
504
+ "x-descope-project-id" : self .dummy_project_id ,
492
505
},
493
506
params = None ,
494
507
json = {"resource" : "a" },
@@ -519,6 +532,7 @@ def test_targets_relations(self):
519
532
headers = {
520
533
** common .default_headers ,
521
534
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
535
+ "x-descope-project-id" : self .dummy_project_id ,
522
536
},
523
537
params = None ,
524
538
json = {"targets" : ["a" ]},
@@ -551,6 +565,7 @@ def test_what_can_target_access(self):
551
565
headers = {
552
566
** common .default_headers ,
553
567
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
568
+ "x-descope-project-id" : self .dummy_project_id ,
554
569
},
555
570
params = None ,
556
571
json = {"target" : "a" },
@@ -589,6 +604,7 @@ def test_what_can_target_access_with_relation(self):
589
604
headers = {
590
605
** common .default_headers ,
591
606
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
607
+ "x-descope-project-id" : self .dummy_project_id ,
592
608
},
593
609
params = None ,
594
610
json = {"target" : "a" , "relationDefinition" : "b" , "namespace" : "c" },
@@ -619,6 +635,7 @@ def test_get_modified(self):
619
635
headers = {
620
636
** common .default_headers ,
621
637
"Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
638
+ "x-descope-project-id" : self .dummy_project_id ,
622
639
},
623
640
params = None ,
624
641
json = {"since" : 0 },
0 commit comments