@kumologica/sdk 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/bin/kl.js +3 -0
- package/cli/cli.js +6 -0
- package/cli/commands/build-commands/aws.js +49 -0
- package/cli/commands/build-commands/azure.js +43 -0
- package/cli/commands/build-commands/kumohub.js +7 -0
- package/cli/commands/build.js +6 -0
- package/cli/commands/create.js +32 -0
- package/cli/commands/deploy-commands/kumohub.js +114 -0
- package/cli/commands/deploy.js +6 -0
- package/cli/commands/doc-commands/html.js +61 -0
- package/cli/commands/doc.js +6 -0
- package/cli/commands/export-commands/cloudformation.js +338 -0
- package/cli/commands/export-commands/serverless.js +164 -0
- package/cli/commands/export-commands/terraform-commands/aws.js +193 -0
- package/cli/commands/export-commands/terraform-commands/azure.js +148 -0
- package/cli/commands/export-commands/terraform.js +6 -0
- package/cli/commands/export-commands/utils/validator.js +152 -0
- package/cli/commands/export.js +6 -0
- package/cli/commands/import-commands/mulesoft.js +61 -0
- package/cli/commands/import.js +6 -0
- package/cli/commands/open.js +46 -0
- package/cli/commands/test-utils/TestSuiteController.js +359 -0
- package/cli/commands/test-utils/TestSuiteController.test.js +171 -0
- package/cli/commands/test-utils/fixtures/example3-flow.json +148 -0
- package/cli/commands/test-utils/fixtures/package.json +6 -0
- package/cli/commands/test-utils/fixtures/s3-event.js +43 -0
- package/cli/commands/test-utils/util/output.js +14 -0
- package/cli/commands/test-utils/util/updates/index.js +17 -0
- package/cli/commands/test-utils/util/updates/pkg.js +13 -0
- package/cli/commands/test-utils/util/updates/templates/default-settings.js +209 -0
- package/cli/commands/test.js +66 -0
- package/cli/commands/utils.js +14 -0
- package/package.json +158 -0
- package/src/app/lib/aws/aws-profile.js +43 -0
- package/src/app/lib/aws/ca-alexa-api.js +29 -0
- package/src/app/lib/aws/ca-apigw-api.js +216 -0
- package/src/app/lib/aws/ca-cloudwatch-api.js +78 -0
- package/src/app/lib/aws/ca-codecommit-api.js +63 -0
- package/src/app/lib/aws/ca-dynamodb-api.js +27 -0
- package/src/app/lib/aws/ca-elb-api.js +44 -0
- package/src/app/lib/aws/ca-events-api.js +27 -0
- package/src/app/lib/aws/ca-iot-api.js +105 -0
- package/src/app/lib/aws/ca-s3-api.js +115 -0
- package/src/app/lib/aws/ca-sns-api.js +38 -0
- package/src/app/lib/aws/ca-sqs-api.js +51 -0
- package/src/app/lib/aws/cf.js +439 -0
- package/src/app/lib/aws/index.js +970 -0
- package/src/app/lib/aws/kl-iam-api.js +27 -0
- package/src/app/lib/aws/kl-rekognition-api.js +66 -0
- package/src/app/lib/aws/kl-ssm-api.js +24 -0
- package/src/app/lib/azure/index.js +80 -0
- package/src/app/lib/dependencies.js +50 -0
- package/src/app/lib/kumohub/index.js +201 -0
- package/src/app/lib/runtime-loader/index.js +42 -0
- package/src/app/lib/serverless/index.js +318 -0
- package/src/app/lib/stores/aws-cloud-config-store.js +35 -0
- package/src/app/lib/stores/azure-config-store.js +24 -0
- package/src/app/lib/stores/kumohub-config-store.js +24 -0
- package/src/app/lib/stores/project-info-config-store.js +26 -0
- package/src/app/lib/stores/settings-cloud-store.js +117 -0
- package/src/app/lib/stores/settings-cloud-store.spec.js +26 -0
- package/src/app/lib/stores/settings-network-store.js +119 -0
- package/src/app/lib/stores/settings-network-store.spec.js +27 -0
- package/src/app/lib/stores/store.js +97 -0
- package/src/app/lib/stores/test-config-store.js +26 -0
- package/src/app/lib/stores/user-preference-store.js +44 -0
- package/src/app/lib/utils/editor.js +98 -0
- package/src/app/lib/utils/fix-path.js +15 -0
- package/src/app/main-process/favicon.ico +0 -0
- package/src/app/main-process/main-window.js +209 -0
- package/src/app/main-process/menu.js +219 -0
- package/src/app/main-process/modal-home.js +118 -0
- package/src/app/main-process/modal-newproject.js +119 -0
- package/src/app/main-process/modal-nodelibrary.js +90 -0
- package/src/app/main-process/modal-welcome.js +114 -0
- package/src/app/main-process/runtime-manager.js +141 -0
- package/src/app/main.js +590 -0
- package/src/app/preload.js +633 -0
- package/src/app/ui/editor-api/lib/admin/context.js +42 -0
- package/src/app/ui/editor-api/lib/admin/flow.js +55 -0
- package/src/app/ui/editor-api/lib/admin/flows.js +53 -0
- package/src/app/ui/editor-api/lib/admin/index.js +155 -0
- package/src/app/ui/editor-api/lib/admin/nodes.js +164 -0
- package/src/app/ui/editor-api/lib/auth/clients.js +17 -0
- package/src/app/ui/editor-api/lib/auth/index.js +267 -0
- package/src/app/ui/editor-api/lib/auth/permissions.js +51 -0
- package/src/app/ui/editor-api/lib/auth/strategies.js +144 -0
- package/src/app/ui/editor-api/lib/auth/tokens.js +138 -0
- package/src/app/ui/editor-api/lib/auth/users.js +122 -0
- package/src/app/ui/editor-api/lib/editor/comms.js +247 -0
- package/src/app/ui/editor-api/lib/editor/credentials.js +22 -0
- package/src/app/ui/editor-api/lib/editor/index.js +234 -0
- package/src/app/ui/editor-api/lib/editor/library.js +69 -0
- package/src/app/ui/editor-api/lib/editor/locales.js +37 -0
- package/src/app/ui/editor-api/lib/editor/projects.js +497 -0
- package/src/app/ui/editor-api/lib/editor/settings.js +118 -0
- package/src/app/ui/editor-api/lib/editor/sshkeys.js +87 -0
- package/src/app/ui/editor-api/lib/editor/theme.js +184 -0
- package/src/app/ui/editor-api/lib/editor/ui.js +149 -0
- package/src/app/ui/editor-api/lib/index.js +149 -0
- package/src/app/ui/editor-api/lib/runner/index.js +81 -0
- package/src/app/ui/editor-api/lib/util.js +51 -0
- package/src/app/ui/editor-client/README.md +10 -0
- package/src/app/ui/editor-client/constants.js +5 -0
- package/src/app/ui/editor-client/index.js +3 -0
- package/src/app/ui/editor-client/public/favicon.ico +0 -0
- package/src/app/ui/editor-client/public/red/images/bolt.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/continue-full.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/continue-outline.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/pause.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/restart.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/stepover.png +0 -0
- package/src/app/ui/editor-client/public/red/images/debugger/stop.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-flows-o.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-flows.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-full-o.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-full.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-nodes-o.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-nodes.png +0 -0
- package/src/app/ui/editor-client/public/red/images/deploy-reload.png +0 -0
- package/src/app/ui/editor-client/public/red/images/grip.png +0 -0
- package/src/app/ui/editor-client/public/red/images/icons/arrow-in.png +0 -0
- package/src/app/ui/editor-client/public/red/images/icons/bolt.png +0 -0
- package/src/app/ui/editor-client/public/red/images/icons/node-changed.png +0 -0
- package/src/app/ui/editor-client/public/red/images/icons/node-error.png +0 -0
- package/src/app/ui/editor-client/public/red/images/icons/node-play.png +0 -0
- package/src/app/ui/editor-client/public/red/images/kumologica-app.png +0 -0
- package/src/app/ui/editor-client/public/red/images/node-red-256.png +0 -0
- package/src/app/ui/editor-client/public/red/images/node-red-icon-black.svg +9 -0
- package/src/app/ui/editor-client/public/red/images/node-red-icon.svg +33 -0
- package/src/app/ui/editor-client/public/red/images/node-red.png +0 -0
- package/src/app/ui/editor-client/public/red/images/pw_maze_white.png +0 -0
- package/src/app/ui/editor-client/public/red/images/spin.svg +41 -0
- package/src/app/ui/editor-client/public/red/images/spinner.gif +0 -0
- package/src/app/ui/editor-client/public/red/images/subflow_tab.png +0 -0
- package/src/app/ui/editor-client/public/red/images/test-icon.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/09.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/az.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/bin.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/bool.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/env.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/expr.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/json.png +0 -0
- package/src/app/ui/editor-client/public/red/images/typedInput/re.png +0 -0
- package/src/app/ui/editor-client/public/red/keymap.json +54 -0
- package/src/app/ui/editor-client/public/red/main-modals.js +14 -0
- package/src/app/ui/editor-client/public/red/main-modals.min.js +16 -0
- package/src/app/ui/editor-client/public/red/main.js +10 -0
- package/src/app/ui/editor-client/public/red/main.min.js +16 -0
- package/src/app/ui/editor-client/public/red/red.js +44903 -0
- package/src/app/ui/editor-client/public/red/red.min.js +16 -0
- package/src/app/ui/editor-client/public/red/style.min.css +24 -0
- package/src/app/ui/editor-client/public/vendor/ace/LICENSE +24 -0
- package/src/app/ui/editor-client/public/vendor/ace/ace.js +17 -0
- package/src/app/ui/editor-client/public/vendor/ace/ext-language_tools.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/ext-searchbox.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-css.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-handlebars.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-html.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-javascript.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-json.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-jsonata.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-markdown.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-properties.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-python.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-sql.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-swift.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-text.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-xml.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/mode-yaml.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/css.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/handlebars.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/html.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/javascript.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/json.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/jsonata.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/markdown.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/properties.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/python.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/sql.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/swift.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/text.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/xml.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/snippets/yaml.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/theme-chrome.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/theme-tomorrow.js +8 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-css.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-html.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-javascript.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-json.js +1 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-jsonata.js +2140 -0
- package/src/app/ui/editor-client/public/vendor/ace/worker-xml.js +1 -0
- package/src/app/ui/editor-client/public/vendor/beautifyjs/beautify.min.js +1 -0
- package/src/app/ui/editor-client/public/vendor/bootstrap/css/bootstrap.min.css +9 -0
- package/src/app/ui/editor-client/public/vendor/bootstrap/img/glyphicons-halflings-white.png +0 -0
- package/src/app/ui/editor-client/public/vendor/bootstrap/img/glyphicons-halflings.png +0 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/active-line.js +72 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/coffeescript-lint.js +47 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/javascript-hint.js +157 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/javascript-lint.js +63 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/jshint.js +29591 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/lint.css +73 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/lint.js +252 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/show-hint.css +36 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/show-hint.js +460 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/addon/sql-hint.js +304 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/lib/codemirror.css +350 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/lib/codemirror.js +9800 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/mode/javascript.js +927 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/mode/sql.js +494 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/theme/base16-dark.css +38 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/theme/monokai.css +42 -0
- package/src/app/ui/editor-client/public/vendor/code-mirror/theme/solarized.css +168 -0
- package/src/app/ui/editor-client/public/vendor/d3-context-menu/d3-context-menu.css +43 -0
- package/src/app/ui/editor-client/public/vendor/d3-context-menu/d3-context-menu.js +87 -0
- package/src/app/ui/editor-client/public/vendor/easy-json-schema/index.js +88 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/css/font-awesome.min.css +4 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/src/app/ui/editor-client/public/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/src/app/ui/editor-client/public/vendor/icofont/fonts/icofont.eot +0 -0
- package/src/app/ui/editor-client/public/vendor/icofont/fonts/icofont.svg +2105 -0
- package/src/app/ui/editor-client/public/vendor/icofont/fonts/icofont.ttf +0 -0
- package/src/app/ui/editor-client/public/vendor/icofont/fonts/icofont.woff +0 -0
- package/src/app/ui/editor-client/public/vendor/icofont/fonts/icofont.woff2 +0 -0
- package/src/app/ui/editor-client/public/vendor/icofont/icofont.min.css +7 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/animated-overlay.gif +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/app/ui/editor-client/public/vendor/jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css +5 -0
- package/src/app/ui/editor-client/public/vendor/jsonata/jsonata.min.js +183 -0
- package/src/app/ui/editor-client/public/vendor/misc/toggleswitch.css +181 -0
- package/src/app/ui/editor-client/public/vendor/misc/toggleswitch.js +48 -0
- package/src/app/ui/editor-client/public/vendor/simplemde/simplemde.min.css +7 -0
- package/src/app/ui/editor-client/public/vendor/simplemde/simplemde.min.js +15 -0
- package/src/app/ui/editor-client/public/vendor/vendor.css +0 -0
- package/src/app/ui/editor-client/public/vendor/vendor.js +125 -0
- package/src/app/ui/editor-client/public/vendor/xterm/lib/xterm.js +2 -0
- package/src/app/ui/editor-client/src/ace/README.md +50 -0
- package/src/app/ui/editor-client/src/ace/mode/nrjavascript.js +35 -0
- package/src/app/ui/editor-client/src/ace/mode/nrjavascript_worker.js +189 -0
- package/src/app/ui/editor-client/src/favicon.ico +0 -0
- package/src/app/ui/editor-client/src/images/bolt.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/continue-full.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/continue-outline.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/pause.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/restart.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/stepover.png +0 -0
- package/src/app/ui/editor-client/src/images/debugger/stop.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-flows-o.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-flows.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-full-o.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-full.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-nodes-o.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-nodes.png +0 -0
- package/src/app/ui/editor-client/src/images/deploy-reload.png +0 -0
- package/src/app/ui/editor-client/src/images/grip.png +0 -0
- package/src/app/ui/editor-client/src/images/icons/arrow-in.png +0 -0
- package/src/app/ui/editor-client/src/images/icons/bolt.png +0 -0
- package/src/app/ui/editor-client/src/images/icons/node-changed.png +0 -0
- package/src/app/ui/editor-client/src/images/icons/node-error.png +0 -0
- package/src/app/ui/editor-client/src/images/icons/node-play.png +0 -0
- package/src/app/ui/editor-client/src/images/kumologica-app.png +0 -0
- package/src/app/ui/editor-client/src/images/node-red-256.png +0 -0
- package/src/app/ui/editor-client/src/images/node-red-icon-black.svg +9 -0
- package/src/app/ui/editor-client/src/images/node-red-icon.svg +33 -0
- package/src/app/ui/editor-client/src/images/node-red.png +0 -0
- package/src/app/ui/editor-client/src/images/pw_maze_white.png +0 -0
- package/src/app/ui/editor-client/src/images/spin.svg +41 -0
- package/src/app/ui/editor-client/src/images/spinner.gif +0 -0
- package/src/app/ui/editor-client/src/images/subflow_tab.png +0 -0
- package/src/app/ui/editor-client/src/images/test-icon.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/09.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/az.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/bin.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/bool.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/env.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/expr.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/json.png +0 -0
- package/src/app/ui/editor-client/src/images/typedInput/re.png +0 -0
- package/src/app/ui/editor-client/src/js/comms.js +174 -0
- package/src/app/ui/editor-client/src/js/events.js +39 -0
- package/src/app/ui/editor-client/src/js/font-awesome.js +818 -0
- package/src/app/ui/editor-client/src/js/history.js +337 -0
- package/src/app/ui/editor-client/src/js/i18n.js +81 -0
- package/src/app/ui/editor-client/src/js/jquery-addons.js +21 -0
- package/src/app/ui/editor-client/src/js/keymap.json +54 -0
- package/src/app/ui/editor-client/src/js/main-modals.js +14 -0
- package/src/app/ui/editor-client/src/js/main.js +10 -0
- package/src/app/ui/editor-client/src/js/modals/modal-home.js +162 -0
- package/src/app/ui/editor-client/src/js/modals/modal-new-project.js +86 -0
- package/src/app/ui/editor-client/src/js/modals/modal-node-library.js +255 -0
- package/src/app/ui/editor-client/src/js/modals/modal-welcome.js +102 -0
- package/src/app/ui/editor-client/src/js/nodes.js +1736 -0
- package/src/app/ui/editor-client/src/js/red.js +704 -0
- package/src/app/ui/editor-client/src/js/settings.js +275 -0
- package/src/app/ui/editor-client/src/js/text/bidi.js +116 -0
- package/src/app/ui/editor-client/src/js/text/format.js +1316 -0
- package/src/app/ui/editor-client/src/js/ui/actions.js +39 -0
- package/src/app/ui/editor-client/src/js/ui/clipboard.js +510 -0
- package/src/app/ui/editor-client/src/js/ui/common/checkboxSet.js +117 -0
- package/src/app/ui/editor-client/src/js/ui/common/editableList.js +322 -0
- package/src/app/ui/editor-client/src/js/ui/common/menu.js +277 -0
- package/src/app/ui/editor-client/src/js/ui/common/panels.js +104 -0
- package/src/app/ui/editor-client/src/js/ui/common/popover.js +268 -0
- package/src/app/ui/editor-client/src/js/ui/common/searchBox.js +98 -0
- package/src/app/ui/editor-client/src/js/ui/common/stack.js +184 -0
- package/src/app/ui/editor-client/src/js/ui/common/tabs.js +730 -0
- package/src/app/ui/editor-client/src/js/ui/common/treeList.js +170 -0
- package/src/app/ui/editor-client/src/js/ui/common/typedInput.js +819 -0
- package/src/app/ui/editor-client/src/js/ui/common/typedInputLong.js +829 -0
- package/src/app/ui/editor-client/src/js/ui/deploy.js +422 -0
- package/src/app/ui/editor-client/src/js/ui/diff.js +2225 -0
- package/src/app/ui/editor-client/src/js/ui/editor.js +3020 -0
- package/src/app/ui/editor-client/src/js/ui/editors/buffer.js +195 -0
- package/src/app/ui/editor-client/src/js/ui/editors/expression.js +627 -0
- package/src/app/ui/editor-client/src/js/ui/editors/js.js +89 -0
- package/src/app/ui/editor-client/src/js/ui/editors/json.js +107 -0
- package/src/app/ui/editor-client/src/js/ui/editors/markdown.js +267 -0
- package/src/app/ui/editor-client/src/js/ui/editors/string.js +75 -0
- package/src/app/ui/editor-client/src/js/ui/event-log.js +107 -0
- package/src/app/ui/editor-client/src/js/ui/header.js +372 -0
- package/src/app/ui/editor-client/src/js/ui/keyboard.js +565 -0
- package/src/app/ui/editor-client/src/js/ui/library.js +570 -0
- package/src/app/ui/editor-client/src/js/ui/logviewer.js +116 -0
- package/src/app/ui/editor-client/src/js/ui/notifications.js +282 -0
- package/src/app/ui/editor-client/src/js/ui/palette-editor.js +1061 -0
- package/src/app/ui/editor-client/src/js/ui/palette.js +788 -0
- package/src/app/ui/editor-client/src/js/ui/project-info.js +232 -0
- package/src/app/ui/editor-client/src/js/ui/projects/projectSettings.js +1651 -0
- package/src/app/ui/editor-client/src/js/ui/projects/projectUserSettings.js +404 -0
- package/src/app/ui/editor-client/src/js/ui/projects/projects.js +2395 -0
- package/src/app/ui/editor-client/src/js/ui/projects/tab-versionControl.js +1383 -0
- package/src/app/ui/editor-client/src/js/ui/search.js +366 -0
- package/src/app/ui/editor-client/src/js/ui/sidebar.js +409 -0
- package/src/app/ui/editor-client/src/js/ui/state.js +14 -0
- package/src/app/ui/editor-client/src/js/ui/subflow.js +748 -0
- package/src/app/ui/editor-client/src/js/ui/tab-awsDeploy.js +1427 -0
- package/src/app/ui/editor-client/src/js/ui/tab-azure.js +852 -0
- package/src/app/ui/editor-client/src/js/ui/tab-config.js +452 -0
- package/src/app/ui/editor-client/src/js/ui/tab-context.js +406 -0
- package/src/app/ui/editor-client/src/js/ui/tab-info.js +661 -0
- package/src/app/ui/editor-client/src/js/ui/tab-kumohub.js +800 -0
- package/src/app/ui/editor-client/src/js/ui/tab-nodeInfo.js +60 -0
- package/src/app/ui/editor-client/src/js/ui/tab-test.js +915 -0
- package/src/app/ui/editor-client/src/js/ui/terminal.js +240 -0
- package/src/app/ui/editor-client/src/js/ui/touch/radialMenu.js +170 -0
- package/src/app/ui/editor-client/src/js/ui/tray.js +411 -0
- package/src/app/ui/editor-client/src/js/ui/typeSearch.js +411 -0
- package/src/app/ui/editor-client/src/js/ui/ui-settings.js +422 -0
- package/src/app/ui/editor-client/src/js/ui/update-panel.js +84 -0
- package/src/app/ui/editor-client/src/js/ui/userSettings.js +673 -0
- package/src/app/ui/editor-client/src/js/ui/utils.js +1287 -0
- package/src/app/ui/editor-client/src/js/ui/view-navigator.js +169 -0
- package/src/app/ui/editor-client/src/js/ui/view-tools.js +123 -0
- package/src/app/ui/editor-client/src/js/ui/view.js +5333 -0
- package/src/app/ui/editor-client/src/js/ui/workspaces.js +498 -0
- package/src/app/ui/editor-client/src/js/user.js +282 -0
- package/src/app/ui/editor-client/src/js/validators.js +54 -0
- package/src/app/ui/editor-client/src/kumologica-app.png +0 -0
- package/src/app/ui/editor-client/src/sass/ace.scss +29 -0
- package/src/app/ui/editor-client/src/sass/bootstrap.scss +21 -0
- package/src/app/ui/editor-client/src/sass/colors.scss +76 -0
- package/src/app/ui/editor-client/src/sass/debug.scss +383 -0
- package/src/app/ui/editor-client/src/sass/diff.scss +695 -0
- package/src/app/ui/editor-client/src/sass/dragdrop.scss +37 -0
- package/src/app/ui/editor-client/src/sass/dropdownMenu.scss +93 -0
- package/src/app/ui/editor-client/src/sass/editor.scss +683 -0
- package/src/app/ui/editor-client/src/sass/flow.scss +330 -0
- package/src/app/ui/editor-client/src/sass/forms.scss +1093 -0
- package/src/app/ui/editor-client/src/sass/header.scss +502 -0
- package/src/app/ui/editor-client/src/sass/jquery.scss +152 -0
- package/src/app/ui/editor-client/src/sass/keyboard.scss +136 -0
- package/src/app/ui/editor-client/src/sass/library.scss +54 -0
- package/src/app/ui/editor-client/src/sass/mixins.scss +283 -0
- package/src/app/ui/editor-client/src/sass/modals/modalHome.scss +138 -0
- package/src/app/ui/editor-client/src/sass/modals/modalNewProject.scss +96 -0
- package/src/app/ui/editor-client/src/sass/modals/modalNodeLibrary.scss +131 -0
- package/src/app/ui/editor-client/src/sass/modals/modalWelcome.scss +102 -0
- package/src/app/ui/editor-client/src/sass/notifications.scss +118 -0
- package/src/app/ui/editor-client/src/sass/palette-editor.scss +275 -0
- package/src/app/ui/editor-client/src/sass/palette.scss +279 -0
- package/src/app/ui/editor-client/src/sass/panels.scss +61 -0
- package/src/app/ui/editor-client/src/sass/popover.scss +166 -0
- package/src/app/ui/editor-client/src/sass/project-info.scss +74 -0
- package/src/app/ui/editor-client/src/sass/projects.scss +875 -0
- package/src/app/ui/editor-client/src/sass/search.scss +201 -0
- package/src/app/ui/editor-client/src/sass/sidebar.scss +201 -0
- package/src/app/ui/editor-client/src/sass/style.scss +170 -0
- package/src/app/ui/editor-client/src/sass/tab-azure.scss +68 -0
- package/src/app/ui/editor-client/src/sass/tab-cloud.scss +67 -0
- package/src/app/ui/editor-client/src/sass/tab-config.scss +100 -0
- package/src/app/ui/editor-client/src/sass/tab-context.scss +54 -0
- package/src/app/ui/editor-client/src/sass/tab-info.scss +307 -0
- package/src/app/ui/editor-client/src/sass/tab-kumohub.scss +68 -0
- package/src/app/ui/editor-client/src/sass/tab-test.scss +257 -0
- package/src/app/ui/editor-client/src/sass/tabs.scss +395 -0
- package/src/app/ui/editor-client/src/sass/terminal.scss +246 -0
- package/src/app/ui/editor-client/src/sass/ui/common/checkboxSet.scss +29 -0
- package/src/app/ui/editor-client/src/sass/ui/common/editableList.scss +81 -0
- package/src/app/ui/editor-client/src/sass/ui/common/nodeList.scss +65 -0
- package/src/app/ui/editor-client/src/sass/ui/common/searchBox.scss +77 -0
- package/src/app/ui/editor-client/src/sass/ui/common/stack.scss +26 -0
- package/src/app/ui/editor-client/src/sass/ui/common/treeList.scss +108 -0
- package/src/app/ui/editor-client/src/sass/ui/common/typedInput.scss +181 -0
- package/src/app/ui/editor-client/src/sass/ui/common/typedInputLong.scss +183 -0
- package/src/app/ui/editor-client/src/sass/ui-settings.scss +119 -0
- package/src/app/ui/editor-client/src/sass/update-panel.scss +18 -0
- package/src/app/ui/editor-client/src/sass/userSettings.scss +93 -0
- package/src/app/ui/editor-client/src/sass/widgetStyle.scss +23 -0
- package/src/app/ui/editor-client/src/sass/workspace.scss +123 -0
- package/src/app/ui/editor-client/src/sass/workspaceToolbar.scss +85 -0
- package/src/app/ui/editor-client/src/vendor/ace/LICENSE +24 -0
- package/src/app/ui/editor-client/src/vendor/ace/ace.js +17 -0
- package/src/app/ui/editor-client/src/vendor/ace/ext-language_tools.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/ext-searchbox.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-css.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-handlebars.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-html.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-javascript.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-json.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-markdown.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-properties.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-python.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-sql.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-swift.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-text.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-xml.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/mode-yaml.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/css.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/handlebars.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/html.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/javascript.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/json.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/markdown.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/properties.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/python.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/sql.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/swift.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/text.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/xml.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/snippets/yaml.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/theme-chrome.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/theme-tomorrow.js +8 -0
- package/src/app/ui/editor-client/src/vendor/ace/worker-css.js +1 -0
- package/src/app/ui/editor-client/src/vendor/ace/worker-html.js +1 -0
- package/src/app/ui/editor-client/src/vendor/ace/worker-javascript.js +1 -0
- package/src/app/ui/editor-client/src/vendor/ace/worker-json.js +1 -0
- package/src/app/ui/editor-client/src/vendor/ace/worker-xml.js +1 -0
- package/src/app/ui/editor-client/src/vendor/beautifyjs/beautify.min.js +1 -0
- package/src/app/ui/editor-client/src/vendor/bootstrap/css/bootstrap.css +5406 -0
- package/src/app/ui/editor-client/src/vendor/bootstrap/css/bootstrap.min.css +9 -0
- package/src/app/ui/editor-client/src/vendor/bootstrap/img/glyphicons-halflings-white.png +0 -0
- package/src/app/ui/editor-client/src/vendor/bootstrap/img/glyphicons-halflings.png +0 -0
- package/src/app/ui/editor-client/src/vendor/bootstrap/js/bootstrap.min.js +6 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/active-line.js +72 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/coffeescript-lint.js +47 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/javascript-hint.js +157 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/javascript-lint.js +63 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/jshint.js +29591 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/lint.css +73 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/lint.js +252 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/show-hint.css +36 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/show-hint.js +460 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/addon/sql-hint.js +304 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/lib/codemirror.css +350 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/lib/codemirror.js +9800 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/mode/javascript.js +927 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/mode/sql.js +494 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/theme/base16-dark.css +38 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/theme/monokai.css +42 -0
- package/src/app/ui/editor-client/src/vendor/code-mirror/theme/solarized.css +168 -0
- package/src/app/ui/editor-client/src/vendor/d3/d3.v3.min.js +4 -0
- package/src/app/ui/editor-client/src/vendor/d3/d3.v4.min.js +2 -0
- package/src/app/ui/editor-client/src/vendor/d3-context-menu/d3-context-menu.css +43 -0
- package/src/app/ui/editor-client/src/vendor/d3-context-menu/d3-context-menu.js +87 -0
- package/src/app/ui/editor-client/src/vendor/easy-json-schema/index.js +88 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/css/font-awesome.min.css +4 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/src/app/ui/editor-client/src/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/src/app/ui/editor-client/src/vendor/i18next/i18next.min.js +5 -0
- package/src/app/ui/editor-client/src/vendor/icofont/fonts/icofont.eot +0 -0
- package/src/app/ui/editor-client/src/vendor/icofont/fonts/icofont.svg +2105 -0
- package/src/app/ui/editor-client/src/vendor/icofont/fonts/icofont.ttf +0 -0
- package/src/app/ui/editor-client/src/vendor/icofont/fonts/icofont.woff +0 -0
- package/src/app/ui/editor-client/src/vendor/icofont/fonts/icofont.woff2 +0 -0
- package/src/app/ui/editor-client/src/vendor/icofont/icofont.min.css +7 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/animated-overlay.gif +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/app/ui/editor-client/src/vendor/jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css +5 -0
- package/src/app/ui/editor-client/src/vendor/jquery/js/jquery-1.11.3.min.js +5 -0
- package/src/app/ui/editor-client/src/vendor/jquery/js/jquery-ui-1.10.3.custom.min.js +7 -0
- package/src/app/ui/editor-client/src/vendor/jquery/js/jquery.ui.touch-punch.min.js +11 -0
- package/src/app/ui/editor-client/src/vendor/jsonata/formatter.js +183 -0
- package/src/app/ui/editor-client/src/vendor/jsonata/mode-jsonata.js +134 -0
- package/src/app/ui/editor-client/src/vendor/jsonata/snippets-jsonata.js +11 -0
- package/src/app/ui/editor-client/src/vendor/jsonata/worker-jsonata.js +2140 -0
- package/src/app/ui/editor-client/src/vendor/marked/marked.min.js +6 -0
- package/src/app/ui/editor-client/src/vendor/misc/toggleswitch.css +181 -0
- package/src/app/ui/editor-client/src/vendor/misc/toggleswitch.js +48 -0
- package/src/app/ui/editor-client/templates/index.mst +314 -0
- package/src/app/ui/editor-client/templates/modals/modalHome.mst +107 -0
- package/src/app/ui/editor-client/templates/modals/modalNewProject.mst +104 -0
- package/src/app/ui/editor-client/templates/modals/modalNodeLibrary.mst +72 -0
- package/src/app/ui/editor-client/templates/modals/modalWelcome.mst +111 -0
- package/src/assets/eula.txt +170 -0
- package/src/assets/icon.icns +0 -0
- package/src/assets/kumologica-app.png +0 -0
- package/src/assets/license_en.txt +170 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "main.flow",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "main",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": ""
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "test.flow",
|
|
11
|
+
"type": "tab",
|
|
12
|
+
"label": "test",
|
|
13
|
+
"disabled": false,
|
|
14
|
+
"info": ""
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "eacbb9ef.69d5c8",
|
|
18
|
+
"type": "EventListener",
|
|
19
|
+
"z": "main.flow",
|
|
20
|
+
"name": "GET /hello",
|
|
21
|
+
"provider": "aws",
|
|
22
|
+
"eventSource": "api",
|
|
23
|
+
"dynamodbOperation": "",
|
|
24
|
+
"apiMethod": "get",
|
|
25
|
+
"apiUrl": "/",
|
|
26
|
+
"albMethod": "any",
|
|
27
|
+
"albUrl": "",
|
|
28
|
+
"bucketName": "",
|
|
29
|
+
"event": "s3:ObjectCreated:*",
|
|
30
|
+
"kapiUrl": "",
|
|
31
|
+
"kcronexpression": "",
|
|
32
|
+
"x": 120,
|
|
33
|
+
"y": 160,
|
|
34
|
+
"wires": [
|
|
35
|
+
[
|
|
36
|
+
"5eb3cd61.894f04"
|
|
37
|
+
]
|
|
38
|
+
],
|
|
39
|
+
"caname": "event-handler",
|
|
40
|
+
"category": "general"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "5eb3cd61.894f04",
|
|
44
|
+
"type": "Logger",
|
|
45
|
+
"z": "main.flow",
|
|
46
|
+
"name": "Log",
|
|
47
|
+
"level": "INFO",
|
|
48
|
+
"message": "Request received",
|
|
49
|
+
"x": 262.5,
|
|
50
|
+
"y": 160,
|
|
51
|
+
"wires": [
|
|
52
|
+
[
|
|
53
|
+
"b5fc6ccd.17dd7"
|
|
54
|
+
]
|
|
55
|
+
],
|
|
56
|
+
"caname": "logger",
|
|
57
|
+
"category": "logging"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "b5fc6ccd.17dd7",
|
|
61
|
+
"type": "EventListener-End",
|
|
62
|
+
"z": "main.flow",
|
|
63
|
+
"name": "Success",
|
|
64
|
+
"statusCode": "500",
|
|
65
|
+
"headers": {
|
|
66
|
+
"Content-Type": "application/json"
|
|
67
|
+
},
|
|
68
|
+
"payload": "{\"hello\": \"world\"}",
|
|
69
|
+
"x": 522.5,
|
|
70
|
+
"y": 160,
|
|
71
|
+
"wires": [],
|
|
72
|
+
"caname": "eventlistenerend",
|
|
73
|
+
"category": "general"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "b970b7d2.5454c8",
|
|
77
|
+
"type": "Assertion",
|
|
78
|
+
"z": "test.flow",
|
|
79
|
+
"name": "check response",
|
|
80
|
+
"selector": "jsonBody",
|
|
81
|
+
"property": "hello",
|
|
82
|
+
"comparison": "equals",
|
|
83
|
+
"value": "world",
|
|
84
|
+
"x": 265,
|
|
85
|
+
"y": 160,
|
|
86
|
+
"wires": [
|
|
87
|
+
[
|
|
88
|
+
"e0721cc7.653eb"
|
|
89
|
+
]
|
|
90
|
+
],
|
|
91
|
+
"caname": "test-assertion",
|
|
92
|
+
"category": "testing"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "e0721cc7.653eb",
|
|
96
|
+
"type": "TestCaseEnd",
|
|
97
|
+
"z": "test.flow",
|
|
98
|
+
"name": "TestCaseEnd",
|
|
99
|
+
"x": 425,
|
|
100
|
+
"y": 160,
|
|
101
|
+
"wires": [],
|
|
102
|
+
"caname": "test-case-end",
|
|
103
|
+
"category": "testing"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "e8fb91dc.46c24",
|
|
107
|
+
"type": "HTTPTestCase",
|
|
108
|
+
"z": "test.flow",
|
|
109
|
+
"name": "HTTPTestCase",
|
|
110
|
+
"method": "GET",
|
|
111
|
+
"path": "/",
|
|
112
|
+
"headers": {
|
|
113
|
+
"Accept": "application/json"
|
|
114
|
+
},
|
|
115
|
+
"authtype": "none",
|
|
116
|
+
"secUser": "",
|
|
117
|
+
"secPassword": "",
|
|
118
|
+
"secToken": "",
|
|
119
|
+
"payload": "",
|
|
120
|
+
"x": 122.5,
|
|
121
|
+
"y": 160,
|
|
122
|
+
"wires": [
|
|
123
|
+
[
|
|
124
|
+
"b970b7d2.5454c8"
|
|
125
|
+
]
|
|
126
|
+
],
|
|
127
|
+
"caname": "http-test-case",
|
|
128
|
+
"category": "testing"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "d974781.eca0588",
|
|
132
|
+
"type": "TestCase",
|
|
133
|
+
"z": "test.flow",
|
|
134
|
+
"name": "TestCase",
|
|
135
|
+
"selectedTargetNode": "eacbb9ef.69d5c8",
|
|
136
|
+
"payload": "{\n \"path\": \"/settings\",\n \"headers\": {\n \"Accept\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\n \"Accept-Encoding\": \"gzip, deflate, lzma, sdch, br\",\n \"Accept-Language\": \"en-US,en;q=0.8\",\n \"CloudFront-Forwarded-Proto\": \"https\",\n \"CloudFront-Is-Desktop-Viewer\": \"true\",\n \"CloudFront-Is-Mobile-Viewer\": \"false\",\n \"CloudFront-Is-SmartTV-Viewer\": \"false\",\n \"CloudFront-Is-Tablet-Viewer\": \"false\",\n \"CloudFront-Viewer-Country\": \"US\",\n \"Host\": \"wt6mne2s9k.execute-api.us-west-2.amazonaws.com\",\n \"Upgrade-Insecure-Requests\": \"1\",\n \"User-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48\",\n \"Via\": \"1.1 fb7cca60f0ecd82ce07790c9c5eef16c.cloudfront.net (CloudFront)\",\n \"X-Amz-Cf-Id\": \"nBsWBOrSHMgnaROZJK1wGCZ9PcRcSpq_oSXZNQwQ10OTZL4cimZo3g==\",\n \"X-Forwarded-For\": \"192.168.100.1, 192.168.1.1\",\n \"X-Forwarded-Port\": \"443\",\n \"X-Forwarded-Proto\": \"https\"\n },\n \"pathParameters\": {\n \"proxy\": \"hello\"\n },\n \"requestContext\": {\n \"accountId\": \"123456789012\",\n \"resourceId\": \"us4z18\",\n \"stage\": \"test\",\n \"requestId\": \"41b45ea3-70b5-11e6-b7bd-69b5aaebc7d9\",\n \"identity\": {\n \"cognitoIdentityPoolId\": \"\",\n \"accountId\": \"\",\n \"cognitoIdentityId\": \"\",\n \"caller\": \"\",\n \"apiKey\": \"\",\n \"sourceIp\": \"192.168.100.1\",\n \"cognitoAuthenticationType\": \"\",\n \"cognitoAuthenticationProvider\": \"\",\n \"userArn\": \"\",\n \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48\",\n \"user\": \"\"\n },\n \"resourcePath\": \"/{proxy+}\",\n \"httpMethod\": \"GET\",\n \"apiId\": \"wt6mne2s9k\"\n },\n \"resource\": \"/{proxy+}\",\n \"httpMethod\": \"GET\",\n \"queryStringParameters\": {\n \"name\": \"me\"\n },\n \"stageVariables\": {\n \"stageVarName\": \"stageVarValue\"\n }\n}",
|
|
137
|
+
"initialLoad": "false",
|
|
138
|
+
"x": 122.5,
|
|
139
|
+
"y": 60,
|
|
140
|
+
"wires": [
|
|
141
|
+
[
|
|
142
|
+
"b970b7d2.5454c8"
|
|
143
|
+
]
|
|
144
|
+
],
|
|
145
|
+
"caname": "test-case",
|
|
146
|
+
"category": "testing"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const MOCK_S3_EVENT = {
|
|
2
|
+
Records: [
|
|
3
|
+
{
|
|
4
|
+
eventVersion: '2.1',
|
|
5
|
+
eventSource: 'aws:s3',
|
|
6
|
+
awsRegion: 'us-east-2',
|
|
7
|
+
eventTime: '2019-09-03T19:37:27.192Z',
|
|
8
|
+
eventName: 'ObjectCreated:Put',
|
|
9
|
+
userIdentity: {
|
|
10
|
+
principalId: 'AWS:AIDAINPONIXQXHT3IKHL2'
|
|
11
|
+
},
|
|
12
|
+
requestParameters: {
|
|
13
|
+
sourceIPAddress: '205.255.255.255'
|
|
14
|
+
},
|
|
15
|
+
responseElements: {
|
|
16
|
+
'x-amz-request-id': 'D82B88E5F771F645',
|
|
17
|
+
'x-amz-id-2':
|
|
18
|
+
'vlR7PnpV2Ce81l0PRw6jlUpck7Jo5ZsQjryTjKlc5aLWGVHPZLj5NeC6qMa0emYBDXOo6QBU0Wo='
|
|
19
|
+
},
|
|
20
|
+
s3: {
|
|
21
|
+
s3SchemaVersion: '1.0',
|
|
22
|
+
configurationId: '828aa6fc-f7b5-4305-8584-487c791949c1',
|
|
23
|
+
bucket: {
|
|
24
|
+
name: 'lambda-artifacts-deafc19498e3f2df',
|
|
25
|
+
ownerIdentity: {
|
|
26
|
+
principalId: 'A3I5XTEXAMAI3E'
|
|
27
|
+
},
|
|
28
|
+
arn: 'arn:aws:s3:::lambda-artifacts-deafc19498e3f2df'
|
|
29
|
+
},
|
|
30
|
+
object: {
|
|
31
|
+
key: 'b21b84d653bb07b05b1e6b33684dc11b',
|
|
32
|
+
size: 1305107,
|
|
33
|
+
eTag: 'b21b84d653bb07b05b1e6b33684dc11b',
|
|
34
|
+
sequencer: '0C0F6F405D6ED209E1'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
MOCK_S3_EVENT
|
|
43
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const updateNotifier = require('update-notifier');
|
|
2
|
+
const chalk = require('chalk');
|
|
3
|
+
const pkg = require('./pkg');
|
|
4
|
+
|
|
5
|
+
module.exports = () => {
|
|
6
|
+
const { update } = updateNotifier({ pkg });
|
|
7
|
+
|
|
8
|
+
if (!update) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
console.log(
|
|
13
|
+
`${chalk.white.bold.bgRed(
|
|
14
|
+
'UPDATE AVAILABLE'
|
|
15
|
+
)} The latest version of Kumologica CLI is ${chalk.bold(update.latest)}`
|
|
16
|
+
);
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/no-unresolved */
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const pkg = require('../../../package.json');
|
|
5
|
+
|
|
6
|
+
try {
|
|
7
|
+
const distDir = path.dirname(process.execPath);
|
|
8
|
+
pkg._npmPkg = require(path.join(distDir, '../../package.json'));
|
|
9
|
+
} catch (err) {
|
|
10
|
+
pkg._npmPkg = null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = pkg;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright JS Foundation and other contributors, http://js.foundation
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
// The `https` setting requires the `fs` module. Uncomment the following
|
|
18
|
+
// to make it available:
|
|
19
|
+
//var fs = require("fs");
|
|
20
|
+
|
|
21
|
+
module.exports = {
|
|
22
|
+
// the tcp port that the kumologica-core web server is listening on
|
|
23
|
+
uiPort: process.env.PORT || 1880,
|
|
24
|
+
awsRegion: 'ap-southeast-2',
|
|
25
|
+
// awsS3Bucket: 'jteso-experiment',
|
|
26
|
+
awsS3Appname: 'funcname123',
|
|
27
|
+
// storageModule: require('./cloud-red/extra/storage-s3'),
|
|
28
|
+
// By default, the kumologica-core UI accepts connections on all IPv4 interfaces.
|
|
29
|
+
// The following property can be used to listen on a specific interface. For
|
|
30
|
+
// example, the following would only allow connections from the local machine.
|
|
31
|
+
//uiHost: "127.0.0.1",
|
|
32
|
+
|
|
33
|
+
// Retry time in milliseconds for MQTT connections
|
|
34
|
+
mqttReconnectTime: 15000,
|
|
35
|
+
|
|
36
|
+
// Retry time in milliseconds for Serial port connections
|
|
37
|
+
serialReconnectTime: 15000,
|
|
38
|
+
|
|
39
|
+
// Retry time in milliseconds for TCP socket connections
|
|
40
|
+
//socketReconnectTime: 10000,
|
|
41
|
+
|
|
42
|
+
// Timeout in milliseconds for TCP server socket connections
|
|
43
|
+
// defaults to no timeout
|
|
44
|
+
//socketTimeout: 120000,
|
|
45
|
+
|
|
46
|
+
// Timeout in milliseconds for HTTP request connections
|
|
47
|
+
// defaults to 120 seconds
|
|
48
|
+
//httpRequestTimeout: 120000,
|
|
49
|
+
|
|
50
|
+
// The maximum length, in characters, of any message sent to the debug sidebar tab
|
|
51
|
+
debugMaxLength: 1000,
|
|
52
|
+
|
|
53
|
+
// Colourise the console output of the debug node
|
|
54
|
+
//debugUseColors: true,
|
|
55
|
+
|
|
56
|
+
// To enabled pretty-printing of the flow within the flow file, set the following
|
|
57
|
+
// property to true:
|
|
58
|
+
//flowFilePretty: true,
|
|
59
|
+
|
|
60
|
+
// By default, credentials are encrypted in storage using a generated key. To
|
|
61
|
+
// specify your own secret, set the following property.
|
|
62
|
+
// If you want to disable encryption of credentials, set this property to false.
|
|
63
|
+
// Note: once you set this property, do not change it - doing so will prevent
|
|
64
|
+
// kumologica-core from being able to decrypt your existing credentials and they will be
|
|
65
|
+
// lost.
|
|
66
|
+
credentialSecret: process.env.NODE_RED_SECRET || 'a-secret-key',
|
|
67
|
+
|
|
68
|
+
// By default, all user data is stored in location . To
|
|
69
|
+
// use a different location, the following property can be used
|
|
70
|
+
// TODO: Documentation needs update - default is now the directory where the editor has been opened
|
|
71
|
+
//userDir: '/home/nol/.kumologica-core/',
|
|
72
|
+
|
|
73
|
+
// kumologica-core scans the `nodes` directory in the install directory to find nodes.
|
|
74
|
+
// The following property can be used to specify an additional directory to scan.
|
|
75
|
+
//nodesDir: '/home/nol/.kumologica-core/nodes',
|
|
76
|
+
|
|
77
|
+
// By default, the kumologica-core UI is available at http://localhost:1880/
|
|
78
|
+
// The following property can be used to specifiy a different root path.
|
|
79
|
+
// If set to false, this is disabled.
|
|
80
|
+
//httpAdminRoot: '/admin',
|
|
81
|
+
|
|
82
|
+
// Some nodes, such as HTTP In, can be used to listen for incoming http requests.
|
|
83
|
+
// By default, these are served relative to '/'. The following property
|
|
84
|
+
// can be used to specifiy a different root path. If set to false, this is
|
|
85
|
+
// disabled.
|
|
86
|
+
//httpNodeRoot: '/red-nodes',
|
|
87
|
+
|
|
88
|
+
// The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
|
|
89
|
+
// to apply the same root to both parts.
|
|
90
|
+
//httpRoot: '/red',
|
|
91
|
+
|
|
92
|
+
// When httpAdminRoot is used to move the UI to a different root path, the
|
|
93
|
+
// following property can be used to identify a directory of static content
|
|
94
|
+
// that should be served at http://localhost:1880/.
|
|
95
|
+
//httpStatic: '/home/nol/kumologica-core-static/',
|
|
96
|
+
|
|
97
|
+
// The maximum size of HTTP request that will be accepted by the runtime api.
|
|
98
|
+
// Default: 5mb
|
|
99
|
+
//apiMaxLength: '5mb',
|
|
100
|
+
|
|
101
|
+
// If you installed the optional kumologica-core-dashboard you can set it's path
|
|
102
|
+
// relative to httpRoot
|
|
103
|
+
//ui: { path: "ui" },
|
|
104
|
+
|
|
105
|
+
// Securing kumologica-core
|
|
106
|
+
// -----------------
|
|
107
|
+
// To password protect the kumologica-core editor and admin API, the following
|
|
108
|
+
// property can be used. See http://nodered.org/docs/security.html for details.
|
|
109
|
+
//adminAuth: {
|
|
110
|
+
// type: "credentials",
|
|
111
|
+
// users: [{
|
|
112
|
+
// username: "admin",
|
|
113
|
+
// password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
|
|
114
|
+
// permissions: "*"
|
|
115
|
+
// }]
|
|
116
|
+
//},
|
|
117
|
+
|
|
118
|
+
// To password protect the node-defined HTTP endpoints (httpNodeRoot), or
|
|
119
|
+
// the static content (httpStatic), the following properties can be used.
|
|
120
|
+
// The pass field is a bcrypt hash of the password.
|
|
121
|
+
// See http://nodered.org/docs/security.html#generating-the-password-hash
|
|
122
|
+
//httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
|
|
123
|
+
//httpStaticAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
|
|
124
|
+
|
|
125
|
+
// The following property can be used to enable HTTPS
|
|
126
|
+
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
|
|
127
|
+
// for details on its contents.
|
|
128
|
+
// See the comment at the top of this file on how to load the `fs` module used by
|
|
129
|
+
// this setting.
|
|
130
|
+
//
|
|
131
|
+
//https: {
|
|
132
|
+
// key: fs.readFileSync('privatekey.pem'),
|
|
133
|
+
// cert: fs.readFileSync('certificate.pem')
|
|
134
|
+
//},
|
|
135
|
+
|
|
136
|
+
// The following property can be used to cause insecure HTTP connections to
|
|
137
|
+
// be redirected to HTTPS.
|
|
138
|
+
//requireHttps: true
|
|
139
|
+
|
|
140
|
+
// The following property can be used to disable the editor. The admin API
|
|
141
|
+
// is not affected by this option. To disable both the editor and the admin
|
|
142
|
+
// API, use either the httpRoot or httpAdminRoot properties
|
|
143
|
+
//disableEditor: false,
|
|
144
|
+
|
|
145
|
+
// The following property can be used to configure cross-origin resource sharing
|
|
146
|
+
// in the HTTP nodes.
|
|
147
|
+
// See https://github.com/troygoode/node-cors#configuration-options for
|
|
148
|
+
// details on its contents. The following is a basic permissive set of options:
|
|
149
|
+
//httpNodeCors: {
|
|
150
|
+
// origin: "*",
|
|
151
|
+
// methods: "GET,PUT,POST,DELETE"
|
|
152
|
+
//},
|
|
153
|
+
|
|
154
|
+
// If you need to set an http proxy please set an environment variable
|
|
155
|
+
// called http_proxy (or HTTP_PROXY) outside of kumologica-core in the operating system.
|
|
156
|
+
// For example - http_proxy=http://myproxy.com:8080
|
|
157
|
+
// (Setting it here will have no effect)
|
|
158
|
+
// You may also specify no_proxy (or NO_PROXY) to supply a comma separated
|
|
159
|
+
// list of domains to not proxy, eg - no_proxy=.acme.co,.acme.co.uk
|
|
160
|
+
|
|
161
|
+
// The following property can be used to add a custom middleware function
|
|
162
|
+
// in front of all http in nodes. This allows custom authentication to be
|
|
163
|
+
// applied to all http in nodes, or any other sort of common request processing.
|
|
164
|
+
//httpNodeMiddleware: function(req,res,next) {
|
|
165
|
+
// // Handle/reject the request, or pass it on to the http in node by calling next();
|
|
166
|
+
// // Optionally skip our rawBodyParser by setting this to true;
|
|
167
|
+
// //req.skipRawBodyParser = true;
|
|
168
|
+
// next();
|
|
169
|
+
//},
|
|
170
|
+
|
|
171
|
+
// Anything in this hash is globally available to all functions.
|
|
172
|
+
// It is accessed as context.global.
|
|
173
|
+
// eg:
|
|
174
|
+
// functionGlobalContext: { os:require('os') }
|
|
175
|
+
// can be accessed in a function block as:
|
|
176
|
+
// context.global.os
|
|
177
|
+
|
|
178
|
+
functionGlobalContext: {
|
|
179
|
+
// os:require('os'),
|
|
180
|
+
// octalbonescript:require('octalbonescript'),
|
|
181
|
+
// jfive:require("johnny-five"),
|
|
182
|
+
// j5board:require("johnny-five").Board({repl:false})
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
// The following property can be used to order the categories in the editor
|
|
186
|
+
// palette. If a node's category is not in the list, the category will get
|
|
187
|
+
// added to the end of the palette.
|
|
188
|
+
// If not set, the following default order is used:
|
|
189
|
+
//paletteCategories: ['subflows', 'input', 'output', 'function', 'social', 'mobile', 'storage', 'analysis', 'advanced'],
|
|
190
|
+
|
|
191
|
+
// Configure the logging output
|
|
192
|
+
logging: {
|
|
193
|
+
// Only console logging is currently supported
|
|
194
|
+
console: {
|
|
195
|
+
// Level of logging to be recorded. Options are:
|
|
196
|
+
// fatal - only those errors which make the application unusable should be recorded
|
|
197
|
+
// error - record errors which are deemed fatal for a particular request + fatal errors
|
|
198
|
+
// warn - record problems which are non fatal + errors + fatal errors
|
|
199
|
+
// info - record information about the general running of the application + warn + error + fatal errors
|
|
200
|
+
// debug - record information which is more verbose than info + info + warn + error + fatal errors
|
|
201
|
+
// trace - record very detailed logging + debug + info + warn + error + fatal errors
|
|
202
|
+
level: 'info',
|
|
203
|
+
// Whether or not to include metric events in the log output
|
|
204
|
+
metrics: false,
|
|
205
|
+
// Whether or not to include audit events in the log output
|
|
206
|
+
audit: false
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
exports.command = 'test';
|
|
2
|
+
exports.desc = `Run test suite`;
|
|
3
|
+
|
|
4
|
+
exports.builder = {
|
|
5
|
+
"flow-file-name": {
|
|
6
|
+
describe: "The name of kumologica flow file.\n Auto search if not provided.",
|
|
7
|
+
type: 'string',
|
|
8
|
+
alias: 'f',
|
|
9
|
+
nargs: 1
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const chalk = require('chalk');
|
|
14
|
+
const log = console.log;
|
|
15
|
+
const APP_SERVER_PORT = 1990;
|
|
16
|
+
const { AppServer } = require('@kumologica/runtime');
|
|
17
|
+
const { TestSuiteController } = require('./test-utils/TestSuiteController');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
const { codegen } = require('@kumologica/builder');
|
|
20
|
+
|
|
21
|
+
async function runTest(flowFilePath) {
|
|
22
|
+
log(`Starting runtime on port ${APP_SERVER_PORT}...`);
|
|
23
|
+
|
|
24
|
+
let appServer = new AppServer({
|
|
25
|
+
projectDir: process.cwd(),
|
|
26
|
+
flowFilePath: flowFilePath,
|
|
27
|
+
port: APP_SERVER_PORT,
|
|
28
|
+
serverMode: AppServer.mode.HEADLESS_DEFAULT_EXPRESS,
|
|
29
|
+
logLevel: AppServer.logLevel.ERROR,
|
|
30
|
+
editorApi: undefined,
|
|
31
|
+
startupEmitter: undefined
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
await appServer.start();
|
|
36
|
+
log(`FlowFile to be tested: ${chalk.bold(flowFilePath)}`);
|
|
37
|
+
let testSuiteController = new TestSuiteController(appServer);
|
|
38
|
+
await testSuiteController.runTestSuite(); // no need to wait for response
|
|
39
|
+
process.exit(0);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
log(
|
|
42
|
+
chalk.red(
|
|
43
|
+
`Unexpected error occurred while starting server due to <${err.message}>`
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function display(argv) {
|
|
51
|
+
console.log(`\nRunning test suite with following parameters: \n`);
|
|
52
|
+
console.log('flow-file-name: %s', argv["flow-file-name"]||'');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports.handler = function (argv) {
|
|
56
|
+
display(argv);
|
|
57
|
+
let projectDir = process.cwd();
|
|
58
|
+
let projectFlowName = argv["flow-file-name"] || codegen.findFlowFile(projectDir);
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
runTest(path.join(projectDir, projectFlowName));
|
|
62
|
+
} catch (e) {
|
|
63
|
+
console.log(`${e.message}`);
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
}
|