X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Ftest.py;h=c70e384d52b151457c7e27d4301e692e116233a5;hp=6c308aa8fc7d1356b9b1a44e98ab5e2a063b9eae;hb=1546f2a46d99a4741b23857e6ceb4b813223e297;hpb=08ddb14b077121ffced28e41c441fef31b6bb6a1;ds=sidebyside diff --git a/osm_nbi/tests/test.py b/osm_nbi/tests/test.py index 6c308aa..c70e384 100755 --- a/osm_nbi/tests/test.py +++ b/osm_nbi/tests/test.py @@ -620,8 +620,11 @@ class TestProjectsDescriptors: (201, 204), {"Location": "/admin/v1/projects/", "Content-Type": "application/json"}, "json") engine.test("Create user U1", "POST", "/admin/v1/users", headers_json, - {"username": "U1", "projects": ["Padmin", "P2", "P3"], "password": "pw1"}, 201, - {"Location": "/admin/v1/users/", "Content-Type": "application/json"}, "json") + {"username": "U1", "password": "pw1", + "project_role_mappings": [{"project": "Padmin", "role": "system_admin"}, + {"project": "P2", "role": "project_admin"}, + {"project": "P3", "role": "project_admin"}], + }, 201, {"Location": "/admin/v1/users/", "Content-Type": "application/json"}, "json") engine.test("Onboard VNFD id1", "POST", "/vnfpkgm/v1/vnf_packages_content?id=id1", headers_yaml, TestDescriptors.vnfd_empty, 201, r_headers_yaml_location_vnfd, "yaml")