Esempio n. 1
0
    def test_redact_raw_crash(self):
        redactor = RawCrashRedactor(self.get_tuned_config(RawCrashRedactor))
        crash = {
            "Key1": "value",
            "Key2": [12, 23, 34],
            "StackTraces": "foo:bar",
            "Key3": {"a": 1},
        }
        expected_crash = {"Key1": "value", "Key2": [12, 23, 34], "Key3": {"a": 1}}

        redactor.redact(crash)
        assert crash == expected_crash
Esempio n. 2
0
    def test_redact_raw_crash(self):
        redactor = RawCrashRedactor(self.get_tuned_config(RawCrashRedactor))
        crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'StackTraces': 'foo:bar',
            'Key3': {
                'a': 1,
            },
        }
        expected_crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'Key3': {
                'a': 1,
            },
        }

        redactor.redact(crash)
        assert crash == expected_crash
Esempio n. 3
0
    def test_redact_raw_crash(self):
        redactor = RawCrashRedactor(self.config)
        crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'StackTraces': 'foo:bar',
            'Key3': {
                'a': 1,
            },
        }
        expected_crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'Key3': {
                'a': 1,
            },
        }

        redactor.redact(crash)
        eq_(crash, expected_crash)
Esempio n. 4
0
    def test_redact_raw_crash(self):
        redactor = RawCrashRedactor(self.get_tuned_config(RawCrashRedactor))
        crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'StackTraces': 'foo:bar',
            'Key3': {
                'a': 1,
            },
        }
        expected_crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'Key3': {
                'a': 1,
            },
        }

        redactor.redact(crash)
        assert crash == expected_crash
Esempio n. 5
0
    def test_redact_raw_crash(self):
        redactor = RawCrashRedactor(self.config)
        crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'StackTraces': 'foo:bar',
            'Key3': {
                'a': 1,
            },
        }
        expected_crash = {
            'Key1': 'value',
            'Key2': [12, 23, 34],
            'Key3': {
                'a': 1,
            },
        }

        redactor.redact(crash)
        eq_(crash, expected_crash)