https://github.com/nitrictech/test-app
https://github.com/nitrictech/test-app
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitrictech/test-app
- Owner: nitrictech
- Created: 2022-02-24T04:15:19.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-13T06:50:59.000Z (over 3 years ago)
- Last Synced: 2026-02-04T21:06:47.895Z (5 months ago)
- Language: Go
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Entities to test
================
- functions
- collections
- queues
- schedules
- topics
- buckets
- secrets
test 0
------
All resources are deployed to the destination
test 1
------
> api, functions, collection
list store/
post some items to store
get an item
list store/
delete an item
test 2
------
> topic
post to /send/ {messageType=topic}
> should send to topic and cause worker function to run and receive message
> all is recorded in the history so get history and assert message sent and received
test 3
------
> queue
post to /actions/ {messageType=queue}
> should send to queue and scheduled worker should receive message
> all is recorded in the history so get history and assert message sent and received
How to run
==========
Clone this repo and cd into it.
Then run the app, with any of these commands:
- nitric run
- nitric up -s
If you deployed, then get the api url output from the above command:
```
$ export BASE_URL=
$ make test
```