| Index: appengine/findit/handlers/crash/test/fracas_crash_test.py
|
| diff --git a/appengine/findit/handlers/crash/test/fracas_crash_test.py b/appengine/findit/handlers/crash/test/fracas_crash_test.py
|
| index 0d817bef83a79334c6a6dd2ae956086cf6df6f4e..8eb216021bea1f307f2802c808d3c64726ddb2ca 100644
|
| --- a/appengine/findit/handlers/crash/test/fracas_crash_test.py
|
| +++ b/appengine/findit/handlers/crash/test/fracas_crash_test.py
|
| @@ -35,17 +35,32 @@ class FracasCrashTest(CrashTestCase):
|
| signature = 'signature/here'
|
| stack_trace = 'frame1\nframe2\nframe3'
|
| chrome_version = '50.2500.0.0'
|
| - versions_to_cpm = [['50.2500.0.0']]
|
| + versions_to_historical = [{"chrome_version": '50.2500.0.0', "cpm": 0.6}]
|
|
|
| request_json_data = {
|
| 'message': {
|
| 'data': base64.b64encode(json.dumps({
|
| - 'channel': channel,
|
| - 'platform': platform,
|
| - 'signature': signature,
|
| - 'stack_trace': stack_trace,
|
| - 'chrome_version': chrome_version,
|
| - 'versions_to_cpm': versions_to_cpm,
|
| + "customized_data": {
|
| + "channel": "supported_channel",
|
| + "versions_to_historical": [
|
| + {
|
| + "chrome_version": "50.2500.0.0",
|
| + "cpm": 0.6
|
| + },
|
| + ]
|
| + },
|
| + "chrome_version": "50.2500.0.0",
|
| + "signature": "signature/here",
|
| + "client_id": "fracas",
|
| + "platform": "supported_platform",
|
| + "crash_identifiers": {
|
| + "chrome_version": "50.2500.0.0",
|
| + "signature": "signature/here",
|
| + "channel": "supported_channel",
|
| + "platform": "supported_platform",
|
| + "process_type": None
|
| + },
|
| + "stack_trace": "frame1\nframe2\nframe3"
|
| })),
|
| 'message_id': 'id',
|
| },
|
| @@ -58,5 +73,5 @@ class FracasCrashTest(CrashTestCase):
|
| self.assertEqual(1, len(requested_crashes))
|
| self.assertEqual(
|
| (channel, platform, signature, stack_trace,
|
| - chrome_version, versions_to_cpm),
|
| + chrome_version, versions_to_historical),
|
| requested_crashes[0])
|
|
|