Testing cloud application covering various parts of MBaaS APIs.
The basic usage is to deploy this application and access /test
endpoint,
which will execute all tests (except for AppForms) and return results (in HTML or JSON format).
Tests can be executed individually per each area or the MBaaS APIs can be
utilized directly via prepared endpoints.
-
Redis (tested on version 3.2.0)
- download redis
- unpack it and run
<redis-folder>/src/redis-server
-
MongoDB (tested on version 3.4.3)
- install via brew/package manager
- create
admin
user with passwordadmin
:
mongo FH_LOCAL --eval 'db.createUser({ user:"admin", pwd:"admin", roles: [{ role: "readWrite", db: "FH_LOCAL" }] })'
Mbaas-art-core uses this app for cloud API testing. It executes all tests. Example usage:
grunt art-core:local --prefix mbaas-art- --core local --env dev
GET /test
execute all testsGET /cache/test
execute Cache API testsGET /db/test
execute Database API testsGET /hash/test
execute Hash API testsGET /host/test
execute Host API testGET /secure/test
execute Secure API testsGET /stats/test
execute Statistics API testsGET /service
execute Service connection test (Cloud App must have permissions to call the Service)POST /forms/test
execute AppForms API tests (expects form, theme and clientApp definitions and cloudApp and project guids in JSON format)
GET /cache/save
GET /cache/load
GET /cache/remove
GET /db/create
GET /db/update
GET /db/read
GET /db/list
GET /db/delete
GET /db/deleteall
GET /db/index
GET /hash/md5
GET /hash/sha1
GET /hash/sha256
GET /hash/sha512
GET /host
GET /secure/rsa_keys
GET /secure/aes_keys
GET /stats/inc
GET /stats/dec
GET /stats/timing
GET /process/version