Exemplo n.º 1
0
    def test_analyze_line(self, payload, should_flag):
        logic = IbmCosHmacDetector()

        output = logic.analyze_line(payload, 1, 'mock_filename')
        assert len(output) == int(should_flag)
        if should_flag:
            assert list(output.values())[0].secret_value == SECRET_ACCESS_KEY
Exemplo n.º 2
0
    def test_analyze_line(self, payload, should_flag):
        logic = IbmCosHmacDetector()

        output = logic.analyze_line(payload, 1, 'mock_filename')
        assert len(output) == int(should_flag)