Skip to content

Commit

Permalink
feat: add a new test that produces stored notifs (#598)
Browse files Browse the repository at this point in the history
(a quick, initial implementation)

this uses the more basic websocket.WebSocket as WebSocketApp.run_forever
doesn't seem to handle the workflow needed (where the websocket is kept
disconnected for a large portion of the test)

Issue: SYNC-3916
  • Loading branch information
pjenvey authored Feb 6, 2024
1 parent e012955 commit a6bd3cd
Show file tree
Hide file tree
Showing 5 changed files with 458 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ integration-test:

.PHONY: pydocstyle
pydocstyle: $(INSTALL_STAMP) ## Run pydocstyle
$(POETRY) run pydocstyle -es $(TESTS_DIR) --count --config=$(PYPROJECT_TOML)
$(POETRY) run pydocstyle -es --count --config=$(PYPROJECT_TOML) $(TESTS_DIR)

lint:
$(POETRY) -V
$(POETRY) install --no-root
$(POETRY) run isort --sp $(PYPROJECT_TOML) -c $(TESTS_DIR)
$(POETRY) run black --quiet --diff --config $(PYPROJECT_TOML) --check $(TESTS_DIR)
$(POETRY) run flake8 --config $(FLAKE8_CONFIG) $(TESTS_DIR)
$(POETRY) run pydocstyle --config=$(PYPROJECT_TOML)
$(POETRY) run pydocstyle --config=$(PYPROJECT_TOML) $(TESTS_DIR)
$(POETRY) run mypy $(TESTS_DIR) --config-file=$(PYPROJECT_TOML)

load:
Expand Down
2 changes: 1 addition & 1 deletion tests/load/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ COPY ./tests/load/locustfiles ./tests/load/locustfiles
EXPOSE 8089 5557

USER locust
ENTRYPOINT locust -f "tests/load/locustfiles/locustfile.py,tests/load/locustfiles/load.py"
ENTRYPOINT locust -f "tests/load/locustfiles/locustfile.py,tests/load/locustfiles/stored.py,tests/load/locustfiles/load.py"
3 changes: 2 additions & 1 deletion tests/load/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- "8089:8089"
environment:
LOCUST_USERCLASS_PICKER: true
LOCUST_MODERN_UI: true
LOCUST_HOST: ${LOCUST_HOST}
LOCUST_LOGLEVEL: "INFO"
command: >
Expand All @@ -24,4 +25,4 @@ services:
LOCUST_MASTER_NODE_HOST: locust_master
LOCUST_LOGLEVEL: "INFO"
command: >
--worker
--worker
2 changes: 2 additions & 0 deletions tests/load/kubernetes-config/locust-master-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
value: "true"
- name: LOCUST_USERCLASS_PICKER
value: "true"
- name: LOCUST_MODERN_UI
value: "true"
- name: TARGET_HOST
value:
- name: LOCUST_CSV
Expand Down
Loading

0 comments on commit a6bd3cd

Please sign in to comment.