From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jun 2020 10:06:52 +0200 Subject: Update to new version 5.4 Signed-off-by: Thomas Duval Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea --- ...t Authz through Wrapper.postman_collection.json | 24 +++++++++++ moon_engine/tests/func_postman/db.json | 1 + moon_engine/tests/func_postman/gunicorn.cfg | 3 ++ moon_engine/tests/func_postman/moon.yaml | 49 ++++++++++++++++++++++ moon_engine/tests/func_postman/run.sh | 3 ++ 5 files changed, 80 insertions(+) create mode 100644 moon_engine/tests/func_postman/Test Authz through Wrapper.postman_collection.json create mode 100644 moon_engine/tests/func_postman/db.json create mode 100644 moon_engine/tests/func_postman/gunicorn.cfg create mode 100644 moon_engine/tests/func_postman/moon.yaml create mode 100755 moon_engine/tests/func_postman/run.sh (limited to 'moon_engine/tests/func_postman') 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 -- cgit 1.2.3-korg