Skip to content

Commit

Permalink
build(regenerate-sdk-cassettes): help the developer through regenerat…
Browse files Browse the repository at this point in the history
…ing SDK cassettes against a development server
  • Loading branch information
cfm authored and legoktm committed Feb 12, 2024
1 parent 4334160 commit 69ad99c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ test-functional: ## Run the functional tests
test-sdk: ## Run just the sdk tests
@poetry run pytest -v $(STESTS)

.PHONY: regenerate-sdk-cassettes
regenerate-sdk-cassettes:
@echo "Checking if a development server is available to regenerate cassettes..."
@echo "NB. It should be a fresh development server via \"make dev\", with no other data! HTTP requests and responses will be recorded unredacted, including credentials and tokens."
@curl http://localhost:8080/metadata
@rm -fr tests/sdk/data/
@make test-sdk

.PHONY: lint
lint: ## Run the linters
@poetry run flake8 securedrop_client tests
Expand Down

0 comments on commit 69ad99c

Please sign in to comment.