Skip to content

Commit

Permalink
Merge pull request #375 from mountaindude/366-vis.js
Browse files Browse the repository at this point in the history
366 vis.js
  • Loading branch information
mountaindude authored Dec 22, 2023
2 parents 6a206f6 + 4085282 commit 1629eec
Show file tree
Hide file tree
Showing 17 changed files with 676 additions and 88 deletions.
157 changes: 79 additions & 78 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -809,38 +809,40 @@
// ------------------------------------
// Get all bookmarks
// ------------------------------------
// "args": [
// "bookmark-get",
// "--host",
// "192.168.100.109",

// "--port",
// // "4747",
// "443",

// "--virtual-proxy",
// "jwt",
// "--auth-type",
// "jwt",
// "--auth-jwt",
// "<jwt>",

// "--app-id",
// "2933711d-6638-41d4-a2d2-6dd2d965208b",

// "--auth-user-dir",
// "LAB",
// "--auth-user-id",
// "goran",

// "--id-type",
// "id",
// // "--bookmark",
// // "Bookmark 1",
// // "Bookmark 3",
// "--output-format",
// "table"
// ]
"args": [
"bookmark-get",
"--host",
"192.168.100.109",

"--port",
"4747",
// "443",

// "--virtual-proxy",
// "jwt",
// "--auth-type",
// "jwt",
// "--auth-jwt",
// "<jwt>",

"--app-id",
// "2933711d-6638-41d4-a2d2-6dd2d965208b",
// "449f2186-0e86-4e19-b46f-c4c23212d730", // No bookmarks app
"e5d051f0-34c6-4f47-9bc8-7dfabf784f18", // Has 2 bookmarks

"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran",

"--id-type",
"id",
// "--bookmark",
// "Bookmark 1",
// "Bookmark 3",
"--output-format",
"table"
]

// ------------------------------------
// Get measure by id
Expand Down Expand Up @@ -1003,16 +1005,15 @@
// "connection-test",
// "--host",
// "192.168.100.109",
// // "--port",
// // "443",
// "--port",
// "443",

// // "--virtual-proxy",
// // "/jwt",
// // "/jwt",
// "--virtual-proxy",
// "/jwt",

// // "--auth-type",
// // "jwt",
// // "cert",
// "--auth-type",
// "jwt",
// // "cert",
// // "--host",
// // "192.168.100.109",
// // "--auth-cert-file",
Expand All @@ -1032,45 +1033,45 @@
// ]

// ------------------------------------
// Connection test
// Network chart visualization
// ------------------------------------
"args": [
"task-vis",
"--host",
"192.168.100.109",
// "--port",
// "443",

"--vis-host",
"192.168.100.143",
"--vis-port",
"3000",

// "--virtual-proxy",
// "/jwt",

"--auth-type",
// "jwt",
"cert",
// "--host",
// "192.168.100.109",
"--auth-cert-file",
"../../code/secret/pro2win1-nopwd/client.pem",
"--auth-cert-key-file",
"../../code/secret/pro2win1-nopwd/client_key.pem",
// "./cert/client.pem",
// "./cert/client_key.pem",
// "--auth-jwt",
// "....",

"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran",

"--log-level",
"verbose"
]
// "args": [
// "task-vis",
// "--host",
// "192.168.100.109",
// // "--port",
// // "443",

// "--vis-host",
// "192.168.100.143",
// "--vis-port",
// "3000",

// // "--virtual-proxy",
// // "/jwt",

// "--auth-type",
// // "jwt",
// "cert",
// // "--host",
// // "192.168.100.109",
// "--auth-cert-file",
// "../../code/secret/pro2win1-nopwd/client.pem",
// "--auth-cert-key-file",
// "../../code/secret/pro2win1-nopwd/client_key.pem",
// // "./cert/client.pem",
// // "./cert/client_key.pem",
// // "--auth-jwt",
// // "....",

// "--auth-user-dir",
// "LAB",
// "--auth-user-id",
// "goran",

// "--log-level",
// "verbose"
// ]
}
]
}
2 changes: 1 addition & 1 deletion src/__tests__/app_import_cert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ options.sheetName = 'App import';
options.port = '4242';

// Test suite for app export
describe('impor apps from QVF files (cert auth)', () => {
describe('import apps from QVF files (cert auth)', () => {
test('get tasks (verify parameters)', async () => {
expect(options.authCertFile).not.toHaveLength(0);
expect(options.authCertKeyFile).not.toHaveLength(0);
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/app_import_jwt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const { test, expect, describe } = require('@jest/globals');

const { importAppFromFile } = require('../lib/cmd/importapp');
const { appExistById, deleteAppById } = require('../lib/util/app');

const options = {
logLevel: process.env.CTRL_Q_LOG_LEVEL || 'info',
Expand Down Expand Up @@ -33,7 +34,7 @@ options.port = '443';
options.virtualProxy = 'jwt';

// Test suite for app export
describe('impor apps from QVF files (cert auth)', () => {
describe('import apps from QVF files (cert auth)', () => {
test('get tasks (verify parameters)', async () => {
expect(options.host).not.toHaveLength(0);
expect(options.authUserDir).not.toHaveLength(0);
Expand Down
Loading

0 comments on commit 1629eec

Please sign in to comment.