An open API service indexing awesome lists of open source software.

https://github.com/nitrictech/test-app


https://github.com/nitrictech/test-app

Last synced: 2 months ago
JSON representation

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
```