aboutsummaryrefslogtreecommitdiffstats
path: root/moon_engine/tests/func_postman
diff options
context:
space:
mode:
Diffstat (limited to 'moon_engine/tests/func_postman')
-rw-r--r--moon_engine/tests/func_postman/Test Authz through Wrapper.postman_collection.json24
-rw-r--r--moon_engine/tests/func_postman/db.json1
-rw-r--r--moon_engine/tests/func_postman/gunicorn.cfg3
-rw-r--r--moon_engine/tests/func_postman/moon.yaml49
-rwxr-xr-xmoon_engine/tests/func_postman/run.sh3
5 files changed, 80 insertions, 0 deletions
diff --git a/moon_engine/tests/func_postman/Test Authz through Wrapper.postman_collection.json b/moon_engine/tests/func_postman/Test Authz through Wrapper.postman_collection.json
new file mode 100644
index 00000000..bd710eb2
--- /dev/null
+++ b/moon_engine/tests/func_postman/Test Authz through Wrapper.postman_collection.json
@@ -0,0 +1,24 @@
+{
+ "info": {
+ "_postman_id": "91449fd3-9f70-4e95-b3b7-84365cbc057d",
+ "name": "Test Authz through Wrapper",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "Get status",
+ "request": {
+ "method": "GET",
+ "header": [],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": ""
+ }
+ },
+ "response": []
+ }
+ ]
+} \ No newline at end of file
diff --git a/moon_engine/tests/func_postman/db.json b/moon_engine/tests/func_postman/db.json
new file mode 100644
index 00000000..a06285d9
--- /dev/null
+++ b/moon_engine/tests/func_postman/db.json
@@ -0,0 +1 @@
+{"_default": {"1": {"username": "admin", "password": "2ee64edbdc7e6b7f298b6a06b04b066ee8a9e0531e93d16239ff1fa13be19c041d86e7fef8771e09dcc3295421c2ef1bd9dc80209f0f18413572363b4c510d47", "salt": "9d52dcaedac33f02454bcc2abc06c65c28070cbbe50cbbdfd89e483259cd1616ad240c2c69545c2a53644e49b2692e33a9f9947b5a2608eb185ec87ac5ed1c7f", "api_key": "f9615b75d70d2425bc8d107927d88dddf901444e540d8d7bd309b78c3246eb7106bf91fc5f7e9a404407ea348a6ecb75e865d6d60d0aa0294dd7cd032dfb0401"}}} \ No newline at end of file
diff --git a/moon_engine/tests/func_postman/gunicorn.cfg b/moon_engine/tests/func_postman/gunicorn.cfg
new file mode 100644
index 00000000..a1ec8f9c
--- /dev/null
+++ b/moon_engine/tests/func_postman/gunicorn.cfg
@@ -0,0 +1,3 @@
+bind = "127.0.0.1:10000"
+workers = 2
+moon = "moon.yaml"
diff --git a/moon_engine/tests/func_postman/moon.yaml b/moon_engine/tests/func_postman/moon.yaml
new file mode 100644
index 00000000..523bb75a
--- /dev/null
+++ b/moon_engine/tests/func_postman/moon.yaml
@@ -0,0 +1,49 @@
+api_token: false
+data: ''
+database:
+ pwd_file: db.json
+incremental_updates: false
+logging:
+ formatters:
+ brief:
+ format: '%(levelname)s %(name)s %(message)-30s'
+ custom:
+ format: '%(asctime)-15s %(levelname)s %(name)s %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: custom
+ level: 10
+ stream: ext://sys.stdout
+ file:
+ backupCount: 3
+ class: logging.handlers.RotatingFileHandler
+ filename: moon.log
+ formatter: custom
+ level: DEBUG
+ maxBytes: 1048576
+ loggers:
+ moon:
+ handlers:
+ - console
+ - file
+ level: DEBUG
+ propagate: false
+ root:
+ handlers:
+ - console
+ level: ERROR
+ version: 1
+management:
+ password: admin
+ url: http://127.0.0.1:8000
+ user: admin
+orchestration:
+ config_dir: /tmp
+ connection: local
+ driver: moon_engine.plugins.pyorchestrator
+ port: 20000...20100
+plugins:
+ directory: /var/moon/plugins
+type: wrapper
+uuid: 2dd13f3dd36048d88346962d62920ac6
diff --git a/moon_engine/tests/func_postman/run.sh b/moon_engine/tests/func_postman/run.sh
new file mode 100755
index 00000000..f4153d28
--- /dev/null
+++ b/moon_engine/tests/func_postman/run.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+hug -m moon_engine.server -p 10000 gunicorn.cfg