syncstorage-rs/tools/tokenserver
Taddes 77254b4a6e
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
refactor: python imports (#1730)
refactor: unified python imports for consistency in local, production, and test environments
2025-08-04 15:37:46 -04:00
..
loadtests refactor: python imports (#1730) 2025-08-04 15:37:46 -04:00
__init__.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
add_node.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
allocate_user.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
conftest.py chore: migrate tokenserver tests to pytest with junit output 2025-03-17 22:36:42 -06:00
count_users.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
database.py feat: Ignore non-spanner nodes for scripts (#1557) 2024-05-08 14:54:19 -07:00
poetry.lock feat: use poetry for dependency management (#1706) 2025-07-28 21:48:46 -04:00
process_account_events.py feat: Revert "feat: Revert "fix: revert the python3.10 match statement (for now) (#1592)"" 2024-10-21 16:54:42 -07:00
purge_old_records.py fix: correctly read the SYNC_STATSD_HOST/PORT settings (#1601) 2024-09-23 17:31:51 -07:00
pyproject.toml feat: use poetry for dependency management (#1706) 2025-07-28 21:48:46 -04:00
pytest.ini chore: upload test artifacts to gcs 2025-03-25 16:33:49 -06:00
README.md feat: use poetry for dependency management (#1706) 2025-07-28 21:48:46 -04:00
remove_node.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
requirements.txt chore: migrate tokenserver tests to pytest with junit output 2025-03-17 22:36:42 -06:00
test_database.py chore: upload test artifacts to gcs 2025-03-25 16:33:49 -06:00
test_process_account_events.py feat: optionally force the spanner node via get_best_node (#1553) 2024-05-02 09:09:53 -07:00
test_purge_old_records.py chore: upload test artifacts to gcs 2025-03-25 16:33:49 -06:00
test_scripts.py refactor: remove static service IDs (#1199) 2022-01-07 10:41:28 -05:00
unassign_node.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
update_node.py feat: add Tokenserver admin scripts (#1168) 2021-11-18 09:37:02 -05:00
util.py fix: correctly read the SYNC_STATSD_HOST/PORT settings (#1601) 2024-09-23 17:31:51 -07:00

Summary of Files in tools/Tokenserver

File Name Description
add_node.py Adds new node to the tokenserver's database, registering it for user allocation.
allocate_user.py Script to allocate a specific user to a node.
conftest.py Pytest configuration and fixtures for shared test setup.
count_users.py Script to emit total-user-count metrics for exec dashboard.
database.py Shared database utility queries and functions used by multiple scripts.
process_account_events.py Script to process account-related events from an SQS queue.
purge_old_records.py Script to purge user records that have been replaced.
pytest.ini Configuration file for pytest, specifying options like test output format.
remove_node.py Script to remove a node from the system.
test_database.py Unit tests for database.py.
test_process_account_events.py Tests for process_account_events.py, ensuring correct behavior for event handling.
test_purge_old_records.py Tests for purge_old_records.py, validating cleanup operations.
test_scripts.py Testing module to test the various scripts in this directory.
unassign_node.py Removes a node from the system and clears any assignments to the named node.
update_node.py Script to update node status in the db.