mirror of https://github.com/zulip/zulip.git
webhook-walkthrough: Replace references to old style fixture names.
The webhook-walkthrough has now been updated to reflect the recent decision to rename webhook fixtures from <webhook_name>/fixtures/<webhook_name>_<event_type>.json to <webhook_name>/fixtures/<event_type>.json.
This commit is contained in:
parent
597db11a98
commit
eb229dd40e
|
@ -26,7 +26,7 @@ Fixtures enable the testing of webhook integration code without the need to
|
|||
actually contact the service being integrated.
|
||||
|
||||
Because `Hello World` is a very simple webhook that does one thing, it requires
|
||||
only one fixture, `zerver/webhooks/helloworld/fixtures/helloworld_hello.json`:
|
||||
only one fixture, `zerver/webhooks/helloworld/fixtures/hello.json`:
|
||||
|
||||
```
|
||||
{
|
||||
|
@ -188,7 +188,7 @@ Using `manage.py` from within the Zulip development environment:
|
|||
```
|
||||
(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
> --fixture=zerver/webhooks/helloworld/fixtures/helloworld_hello.json \
|
||||
> --fixture=zerver/webhooks/helloworld/fixtures/hello.json \
|
||||
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
|
||||
```
|
||||
After which you should see something similar to:
|
||||
|
@ -283,7 +283,7 @@ class called something like `test_goodbye_message`:
|
|||
content_type="application/x-www-form-urlencoded")
|
||||
```
|
||||
|
||||
As well as a new fixture `helloworld_goodbye.json` in
|
||||
As well as a new fixture `goodbye.json` in
|
||||
`zerver/webhooks/helloworld/fixtures/`:
|
||||
|
||||
```
|
||||
|
@ -356,7 +356,7 @@ Second, you need to write the actual documentation content in
|
|||
<div class="codehilite">
|
||||
<pre>(zulip-venv)vagrant@vagrant-ubuntu-trusty-64:/srv/zulip$
|
||||
./manage.py send_webhook_fixture_message \
|
||||
> --fixture=zerver/webhooks/helloworld/fixtures/helloworld_hello.json \
|
||||
> --fixture=zerver/webhooks/helloworld/fixtures/hello.json \
|
||||
> '--url=http://localhost:9991/api/v1/external/helloworld?api_key=<api_key>'
|
||||
</pre>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue