api/responses.py (103 lines of code) (raw):
abuse_report_unauthenticated_response = {
'message': 'test from the API,both',
'reporter': None,
'reporter_name': "A name",
'reporter_email': "reporter@test.com",
'addon': {
'guid': '{463b483d-6150-43c9-9b52-a3d08d5ecd3a}',
'id': 1018565,
'slug': 'automation-abuse-report-add-on'
},
'addon_install_method': 'link',
'addon_install_origin': 'https://addons-server.readthedocs.io/en/latest/topics/api/abuse.html',
'addon_install_source': 'amo',
'addon_install_source_url': 'https://addons.allizom.org/en-US/firefox/addon/automation-abuse-report-add-on/',
'addon_name': 'automation-abuse-report-add-on',
'addon_signature': 'signed',
'addon_summary': 'Random summary',
'addon_version': '1.1',
'app': 'firefox',
'appversion': "1.1",
'client_id': '06ecc8cef773a56ce40baa1ca1237184ea2c6a6a7f0485eda1ea7f4b5c317c65',
'install_date': '2023-10-10T15:00:14Z',
'lang': "en-Us",
'operating_system': 'windows',
'operating_system_version': '10',
'reason': 'settings',
'report_entry_point': 'amo',
'location': 'amo',
'illegal_category': None,
'illegal_subcategory': None
}
abuse_report_authenticated_response = {
"message": "test from the API,both",
"reporter": {
"id": 11688807,
"name": "api_user",
"url": "https://addons.allizom.org/en-US/firefox/user/11688807/",
"username": "anonymous-c2f376812af322105f986b81fcbb5113"
},
"reporter_name": "A name",
"reporter_email": "reporter@test.com",
"addon": {
"guid": "{463b483d-6150-43c9-9b52-a3d08d5ecd3a}",
"id": 1018565,
"slug": "automation-abuse-report-add-on"
},
"addon_install_method": "link",
"addon_install_origin": "https://addons-server.readthedocs.io/en/latest/topics/api/abuse.html",
"addon_install_source": "amo",
"addon_install_source_url": "https://addons.allizom.org/en-US/firefox/addon/automation-abuse-report-add-on/",
"addon_name": "automation-abuse-report-add-on",
"addon_signature": "signed",
"addon_summary": "Random summary",
"addon_version": "1.1",
"app": "firefox",
"appversion": "1.1",
"client_id": "06ecc8cef773a56ce40baa1ca1237184ea2c6a6a7f0485eda1ea7f4b5c317c65",
"install_date": "2023-10-10T15:00:14Z",
"lang": "en-Us",
"operating_system": "windows",
"operating_system_version": "10",
"reason": "settings",
"report_entry_point": "amo",
"location": "amo",
"illegal_category": None,
"illegal_subcategory": None
}
abuse_report_minimal_details = {
"message": "test from the API,both",
"reporter": {
"id": 11688807,
"name": "api_user",
"url": "https://addons.allizom.org/en-US/firefox/user/11688807/",
"username": "anonymous-c2f376812af322105f986b81fcbb5113"
},
"reporter_name": None,
"reporter_email": None,
"addon": {
"guid": "{463b483d-6150-43c9-9b52-a3d08d5ecd3a}",
"id": 1018565,
"slug": "automation-abuse-report-add-on"
},
"addon_install_method": None,
"addon_install_origin": None,
"addon_install_source": None,
"addon_install_source_url": None,
"addon_name": None,
"addon_signature": None,
"addon_summary": None,
"addon_version": None,
"app": "firefox",
"appversion": None,
"client_id": None,
"install_date": None,
"lang": None,
"operating_system": None,
"operating_system_version": None,
"reason": None,
"report_entry_point": None,
"location": None,
"illegal_category": None,
"illegal_subcategory": None
}