Add account validation module #537
28 errors, 61 fail, 1 skipped, 123 pass in 29s
Annotations
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_rate_limiter (tests.aio.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpb1z6erl6')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064bbcfb0>
faker = <faker.proxy.Faker object at 0x7ff0678af9b0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
> async_connector = DummyAsyncConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'
tests/aio/test_connector.py:25: TypeError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_client_session (tests.aio.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpnx45d4ck')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064ba5df0>
faker = <faker.proxy.Faker object at 0x7ff0678af9b0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
> async_connector = DummyAsyncConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'
tests/aio/test_connector.py:25: TypeError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_push_single_event (tests.aio.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmp_ke8ivyd')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b80c20>
faker = <faker.proxy.Faker object at 0x7ff0678af9b0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
> async_connector = DummyAsyncConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'
tests/aio/test_connector.py:25: TypeError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_push_multiple_events (tests.aio.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpt_0o004u')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b83ec0>
faker = <faker.proxy.Faker object at 0x7ff0678af9b0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
> async_connector = DummyAsyncConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'
tests/aio/test_connector.py:25: TypeError
Check failure on line 0 in tests.aio.test_connector
github-actions / Test Results
test_async_connector_raise_error (tests.aio.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmp4n14uppv')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b78980>
faker = <faker.proxy.Faker object at 0x7ff0678af9b0>
@pytest.fixture
def async_connector(storage, mocked_trigger_logs, faker: Faker):
with patch("sentry_sdk.set_tag"):
> async_connector = DummyAsyncConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyAsyncConnector without an implementation for abstract method 'validator'
tests/aio/test_connector.py:25: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_check_http_default_headers (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmplt3qj1bu')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b6ec60>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_forward_events (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpfqe3_0hm')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b5aea0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_send_records_to_file (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmp6l9cyzsz')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b67f20>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_send_records (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmps4m5v2w6')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b64290>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_chunk_events (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpcl2c5oi1')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b6f260>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_chunk_events_exceed_size (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpxobns1o0')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b7ab70>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_chunk_events_discard_too_long_message (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpiep3cam7')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b7a330>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_event_to_intake_with_2_events (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmp77xdoq9s')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b83290>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_event_to_intake_with_chunks (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpso7_lqg5')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b83bc0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_event_to_intake_custom_url (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmptqlc8ip2')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064bbd3a0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_event_to_intake_custom_url_configuration (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmp0bvgmqke')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b2e090>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_event_to_intake_with_chunks_executor_stopped (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpi8aen6_2')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b2ef90>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_events_to_intakes_no_events (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmphf3mlm1u')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b3b4d0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_events_to_intakes_api_failed (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpgg1dco8p')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b43e00>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_events_to_intakes_api_failed_retried (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpq7m6ikkc')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b1f3b0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_push_events_to_intake_invalid_intake_key (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpofeicrlf')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b3a2a0>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_query_exception_api (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpzntqvedf')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b3ac00>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_connector_configuration (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpgknaizty')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064b2eb10>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check failure on line 0 in tests.connectors.test_connector
github-actions / Test Results
test_connector_configuration_file_not_found (tests.connectors.test_connector) with error
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
failed on setup with "TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'"
storage = PosixPath('/tmp/tmpgay6fkiy')
mocked_trigger_logs = <requests_mock.mocker.Mocker object at 0x7ff064bbd940>
@pytest.fixture
def test_connector(storage, mocked_trigger_logs):
with patch("sentry_sdk.set_tag"):
> test_connector = DummyConnector(data_path=storage)
E TypeError: Can't instantiate abstract class DummyConnector without an implementation for abstract method 'validator'
tests/connectors/test_connector.py:30: TypeError
Check warning on line 0 in tests.scripts.test_files_generator
github-actions / Test Results
test_files_generator (tests.scripts.test_files_generator) failed
artifacts/Unit Test Results/junit.xml [took 0s]
Raw output
assert 'from sample ...odule.run()\n' == 'from sample ...odule.run()\n'
from sample import SampleModule
- from sample import SampleTrigger
- from sample import SampleAction
if __name__ == "__main__":
module = SampleModule()
- module.register(SampleTrigger, "SampleTrigger")
- module.register(SampleAction, "SampleAction")
module.run()
sample_module = PosixPath('/tmp/tmp4pivvama/module')
def test_files_generator(sample_module):
# Execute FilesGenerator
FilesGenerator(sample_module).execute()
# Verify that the main file was generated
actual, expected = get_actual_and_expected(sample_module, "main.py")
> assert actual == expected
E assert 'from sample ...odule.run()\n' == 'from sample ...odule.run()\n'
E
E from sample import SampleModule
E
E - from sample import SampleTrigger
E - from sample import SampleAction
E
E
E if __name__ == "__main__":
E module = SampleModule()
E - module.register(SampleTrigger, "SampleTrigger")
E - module.register(SampleAction, "SampleAction")
E module.run()
tests/scripts/test_files_generator.py:54: AssertionError