Ejemplo 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
Ejemplo 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
Ejemplo 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)
Ejemplo 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
Ejemplo 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)