@@ -44,6 +44,7 @@ def test_save_schema(self):
4444 headers = {
4545 ** common .default_headers ,
4646 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
47+ "x-descope-project-id" : self .dummy_project_id ,
4748 },
4849 params = None ,
4950 json = {"schema" : {"name" : "kuku" }, "upgrade" : True },
@@ -74,6 +75,7 @@ def test_delete_schema(self):
7475 headers = {
7576 ** common .default_headers ,
7677 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
78+ "x-descope-project-id" : self .dummy_project_id ,
7779 },
7880 params = None ,
7981 json = None ,
@@ -104,6 +106,7 @@ def test_load_schema(self):
104106 headers = {
105107 ** common .default_headers ,
106108 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
109+ "x-descope-project-id" : self .dummy_project_id ,
107110 },
108111 params = None ,
109112 json = None ,
@@ -136,6 +139,7 @@ def test_save_namespace(self):
136139 headers = {
137140 ** common .default_headers ,
138141 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
142+ "x-descope-project-id" : self .dummy_project_id ,
139143 },
140144 params = None ,
141145 json = {
@@ -170,6 +174,7 @@ def test_delete_namespace(self):
170174 headers = {
171175 ** common .default_headers ,
172176 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
177+ "x-descope-project-id" : self .dummy_project_id ,
173178 },
174179 params = None ,
175180 json = {"name" : "a" , "schemaName" : "b" },
@@ -206,6 +211,7 @@ def test_save_relation_definition(self):
206211 headers = {
207212 ** common .default_headers ,
208213 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
214+ "x-descope-project-id" : self .dummy_project_id ,
209215 },
210216 params = None ,
211217 json = {
@@ -245,6 +251,7 @@ def test_delete_relation_definition(self):
245251 headers = {
246252 ** common .default_headers ,
247253 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
254+ "x-descope-project-id" : self .dummy_project_id ,
248255 },
249256 params = None ,
250257 json = {"name" : "a" , "namespace" : "b" , "schemaName" : "c" },
@@ -286,6 +293,7 @@ def test_create_relations(self):
286293 headers = {
287294 ** common .default_headers ,
288295 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
296+ "x-descope-project-id" : self .dummy_project_id ,
289297 },
290298 params = None ,
291299 json = {
@@ -336,6 +344,7 @@ def test_delete_relations(self):
336344 headers = {
337345 ** common .default_headers ,
338346 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
347+ "x-descope-project-id" : self .dummy_project_id ,
339348 },
340349 params = None ,
341350 json = {
@@ -377,6 +386,7 @@ def test_delete_relations_for_resources(self):
377386 headers = {
378387 ** common .default_headers ,
379388 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
389+ "x-descope-project-id" : self .dummy_project_id ,
380390 },
381391 params = None ,
382392 json = {"resources" : ["r" ]},
@@ -418,6 +428,7 @@ def test_has_relations(self):
418428 headers = {
419429 ** common .default_headers ,
420430 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
431+ "x-descope-project-id" : self .dummy_project_id ,
421432 },
422433 params = None ,
423434 json = {
@@ -459,6 +470,7 @@ def test_who_can_access(self):
459470 headers = {
460471 ** common .default_headers ,
461472 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
473+ "x-descope-project-id" : self .dummy_project_id ,
462474 },
463475 params = None ,
464476 json = {"resource" : "a" , "relationDefinition" : "b" , "namespace" : "c" },
@@ -489,6 +501,7 @@ def test_resource_relations(self):
489501 headers = {
490502 ** common .default_headers ,
491503 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
504+ "x-descope-project-id" : self .dummy_project_id ,
492505 },
493506 params = None ,
494507 json = {"resource" : "a" },
@@ -519,6 +532,7 @@ def test_targets_relations(self):
519532 headers = {
520533 ** common .default_headers ,
521534 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
535+ "x-descope-project-id" : self .dummy_project_id ,
522536 },
523537 params = None ,
524538 json = {"targets" : ["a" ]},
@@ -551,6 +565,7 @@ def test_what_can_target_access(self):
551565 headers = {
552566 ** common .default_headers ,
553567 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
568+ "x-descope-project-id" : self .dummy_project_id ,
554569 },
555570 params = None ,
556571 json = {"target" : "a" },
@@ -589,6 +604,7 @@ def test_what_can_target_access_with_relation(self):
589604 headers = {
590605 ** common .default_headers ,
591606 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
607+ "x-descope-project-id" : self .dummy_project_id ,
592608 },
593609 params = None ,
594610 json = {"target" : "a" , "relationDefinition" : "b" , "namespace" : "c" },
@@ -619,6 +635,7 @@ def test_get_modified(self):
619635 headers = {
620636 ** common .default_headers ,
621637 "Authorization" : f"Bearer { self .dummy_project_id } :{ self .dummy_management_key } " ,
638+ "x-descope-project-id" : self .dummy_project_id ,
622639 },
623640 params = None ,
624641 json = {"since" : 0 },
0 commit comments