1 line
15 KiB
JSON
1 line
15 KiB
JSON
{"uid":"c5d07523f4c2eff1","name":"Two places, bundle plan, subscription — user sees only services of their place","fullName":"Subscription with service bundle and place-scoped visibility: Two places, bundle plan, subscription — user sees only services of their place","historyId":"e01f7edf8ab434df7aa084bef16d4ed6","time":{"start":1778597274948,"stop":1778597276909,"duration":1961},"status":"broken","statusMessage":"RuntimeError: GraphQL HTTP 400: {\"errors\":[{\"message\":\"Cannot query field \\\"services\\\" on type \\\"PlaceObject\\\". Did you mean \\\"devices\\\" or \\\"stories\\\"?\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"}]}\n\n","statusTrace":" File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\model.py\", line 1991, in run\n match.run(runner.context)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\matchers.py\", line 105, in run\n self.func(context, *args, **kwargs)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"Subscribe_to_bundle\\features\\steps\\subscribe_bundle_steps.py\", line 23, in step_assert_bundle_scope\n td.assert_user_sees_only_place_services_via_members_and_place()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 369, in assert_user_sees_only_place_services_via_members_and_place\n resp = self.query_bundle_scope(place_id=pid)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 353, in query_bundle_scope\n resp = _exec_or_fail(\n op_name=\"bundleScope(query)\",\n ...<3 lines>...\n company_id=self.company_id,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 28, in _exec_or_fail\n return execute_graphql(\n query=query,\n ...<2 lines>...\n access_token=token,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\graphql_client.py\", line 303, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"broken","statusMessage":"RuntimeError: GraphQL HTTP 400: {\"errors\":[{\"message\":\"Cannot query field \\\"services\\\" on type \\\"PlaceObject\\\". Did you mean \\\"devices\\\" or \\\"stories\\\"?\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"}]}\n\n","statusTrace":" File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\model.py\", line 1991, in run\n match.run(runner.context)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\matchers.py\", line 105, in run\n self.func(context, *args, **kwargs)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"Subscribe_to_bundle\\features\\steps\\subscribe_bundle_steps.py\", line 23, in step_assert_bundle_scope\n td.assert_user_sees_only_place_services_via_members_and_place()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 369, in assert_user_sees_only_place_services_via_members_and_place\n resp = self.query_bundle_scope(place_id=pid)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 353, in query_bundle_scope\n resp = _exec_or_fail(\n op_name=\"bundleScope(query)\",\n ...<3 lines>...\n company_id=self.company_id,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 28, in _exec_or_fail\n return execute_graphql(\n query=query,\n ...<2 lines>...\n access_token=token,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\graphql_client.py\", line 303, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n","steps":[{"name":"When get access token","time":{"start":1778597274950,"stop":1778597275161,"duration":211},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then access token is valid","time":{"start":1778597275161,"stop":1778597275162,"duration":1},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When prepare two places bundle tariff subscription and services","time":{"start":1778597275162,"stop":1778597276017,"duration":855},"status":"passed","steps":[{"name":"GraphQL: createPlaceMultiple (two places)","time":{"start":1778597275164,"stop":1778597275225,"duration":61},"status":"passed","steps":[],"attachments":[{"uid":"95145c5fc34f21f","name":"createPlaceMultiple (bundle)","source":"95145c5fc34f21f.json","type":"application/json","size":243}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createService x3","time":{"start":1778597275225,"stop":1778597275486,"duration":261},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"GraphQL: addPlaceToService (s1,s2 -> place A; s3 -> place B)","time":{"start":1778597275486,"stop":1778597275672,"duration":186},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"GraphQL: createPlan (bundle: two services on place A)","time":{"start":1778597275672,"stop":1778597275715,"duration":43},"status":"passed","steps":[],"attachments":[{"uid":"7d16c33384b18a40","name":"createPlan bundle","source":"7d16c33384b18a40.json","type":"application/json","size":293}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPlan (single service on place B)","time":{"start":1778597275715,"stop":1778597275767,"duration":52},"status":"passed","steps":[],"attachments":[{"uid":"c027f132ae95baba","name":"createPlan place B","source":"c027f132ae95baba.json","type":"application/json","size":254}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (KVS)","time":{"start":1778597275767,"stop":1778597275833,"duration":66},"status":"passed","steps":[],"attachments":[{"uid":"b330c407e347a53","name":"createUser response","source":"b330c407e347a53.json","type":"application/json","size":445}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (subscriber -> place A only)","time":{"start":1778597275833,"stop":1778597275927,"duration":94},"status":"passed","steps":[],"attachments":[{"uid":"66668f64294a1d45","name":"addUserToPlace bundle","source":"66668f64294a1d45.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createSubscription (bundle plan, place A)","time":{"start":1778597275927,"stop":1778597276016,"duration":89},"status":"passed","steps":[],"attachments":[{"uid":"b569db3c1486d801","name":"createSubscription bundle","source":"b569db3c1486d801.json","type":"application/json","size":351}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":6,"attachmentStep":false,"stepsCount":8,"hasContent":true},{"name":"Then members and place services show only services for subscriber place","time":{"start":1778597276018,"stop":1778597276090,"duration":72},"status":"broken","statusMessage":"RuntimeError: GraphQL HTTP 400: {\"errors\":[{\"message\":\"Cannot query field \\\"services\\\" on type \\\"PlaceObject\\\". Did you mean \\\"devices\\\" or \\\"stories\\\"?\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"}]}\n\n","statusTrace":" File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\model.py\", line 1991, in run\n match.run(runner.context)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\matchers.py\", line 105, in run\n self.func(context, *args, **kwargs)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"Subscribe_to_bundle\\features\\steps\\subscribe_bundle_steps.py\", line 23, in step_assert_bundle_scope\n td.assert_user_sees_only_place_services_via_members_and_place()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 369, in assert_user_sees_only_place_services_via_members_and_place\n resp = self.query_bundle_scope(place_id=pid)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 353, in query_bundle_scope\n resp = _exec_or_fail(\n op_name=\"bundleScope(query)\",\n ...<3 lines>...\n company_id=self.company_id,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 28, in _exec_or_fail\n return execute_graphql(\n query=query,\n ...<2 lines>...\n access_token=token,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\graphql_client.py\", line 303, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n","steps":[{"name":"GraphQL: bundleScope (members + place.services)","time":{"start":1778597276019,"stop":1778597276064,"duration":45},"status":"broken","statusMessage":"RuntimeError: GraphQL HTTP 400: {\"errors\":[{\"message\":\"Cannot query field \\\"services\\\" on type \\\"PlaceObject\\\". Did you mean \\\"devices\\\" or \\\"stories\\\"?\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"}]}\n\n","statusTrace":" File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 353, in query_bundle_scope\n resp = _exec_or_fail(\n op_name=\"bundleScope(query)\",\n ...<3 lines>...\n company_id=self.company_id,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Subscribe_to_bundle\\testdata\\subscribe_bundle_test_data.py\", line 28, in _exec_or_fail\n return execute_graphql(\n query=query,\n ...<2 lines>...\n access_token=token,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\graphql_client.py\", line 303, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":1,"hasContent":true},{"name":"Cleanup: _del_sub","time":{"start":1778597276091,"stop":1778597276154,"duration":63},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_plan_bundle","time":{"start":1778597276154,"stop":1778597276201,"duration":47},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_plan_b","time":{"start":1778597276201,"stop":1778597276250,"duration":49},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _unbind_all","time":{"start":1778597276250,"stop":1778597276400,"duration":150},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_svc","time":{"start":1778597276401,"stop":1778597276463,"duration":62},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_svc","time":{"start":1778597276463,"stop":1778597276530,"duration":67},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_svc","time":{"start":1778597276530,"stop":1778597276595,"duration":65},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_place_a_fn","time":{"start":1778597276595,"stop":1778597276668,"duration":73},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _del_place_b_fn","time":{"start":1778597276668,"stop":1778597276738,"duration":70},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1778597276739,"stop":1778597276906,"duration":167},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":6,"attachmentStep":false,"stepsCount":23,"hasContent":true},"afterStages":[],"labels":[{"name":"severity","value":"normal"},{"name":"feature","value":"Subscription with service bundle and place-scoped visibility"},{"name":"framework","value":"behave"},{"name":"language","value":"cpython3"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"c5d07523f4c2eff1.json","parameterValues":[]} |