Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Add unit tests #348

Merged
merged 1 commit into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ tasks2.csv
tasks2.xlsx
tasks2.json

# Directories used during unit testing
qvfs_1
qvfs_2
qvfs_3

src/node_modules/*

Expand Down
177 changes: 93 additions & 84 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,45 +100,55 @@
// ------------------------------------
// Import tasks from CSV file
// ------------------------------------
// "args": [
// "task-import",
// "--auth-type",
// "cert",
// "--host",
// // "192.168.100.109",
// "10.211.55.15",

// "--auth-cert-file",
// "../../code/secret/winsrv.local/client.pem",
// "--auth-cert-key-file",
// "../../code/secret/winsrv.local/client_key.pem",
// // "--auth-cert-file",
// // "./cert/client.pem",
// // "--auth-cert-key-file",
// // "./cert/client_key.pem",
// "--auth-user-dir",
// "winsrv1",
// // "LAB",
// "--auth-user-id",
// "goran",

// "--file-type",
// "csv",
"args": [
"task-import",
"--auth-type",
"cert",

// "--file-name",
// // "tasks2source.csv",
// // "task-chain.csv",
// // "testdata/reload-tasks.csv",
// "./tasks_all.csv",
// p2w1
"--host",
"192.168.100.109",
"--auth-cert-file",
// "./cert/client.pem",
"../../code/secret/pro2win1-nopwd/client.pem",
"--auth-cert-key-file",
"../../code/secret/pro2win1-nopwd/client_key.pem",
// "./cert/client_key.pem",
"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran",

// // "--qvf-overwrite",
// // "no",
// Parallels
// "--host",
// "10.211.55.15",
// "--auth-cert-file",
// "../../code/secret/winsrv.local/client.pem",
// "--auth-cert-key-file",
// "../../code/secret/winsrv.local/client_key.pem",
// "--auth-user-dir",
// "winsrv1",
// "--auth-user-id",
// "goran",

"--file-type",
"csv",

"--file-name",
// "tasks2source.csv",
// "task-chain.csv",
// "testdata/reload-tasks.csv",
// "./tasks_all.csv",
"./testdata/tasks-1.csv"

// "--qvf-overwrite",
// "no",

// "--limit-import-count",
// "2",
// "--limit-import-count",
// "2",

// // "--dry-run"
// ]
// "--dry-run"
]

// ------------------------------------
// Export apps to QVF files
Expand Down Expand Up @@ -275,56 +285,56 @@
// ------------------------------------
// Get reload tasks as table
// ------------------------------------
"args": [
"task-get",
"--auth-type",
"cert",
"--host",
"192.168.100.109",
"--auth-cert-file",
"../../code/secret/pro2win1-nopwd/client.pem",
// "./cert/client.pem",
"--auth-cert-key-file",
"../../code/secret/pro2win1-nopwd/client_key.pem",
// "./cert/client_key.pem",
"--auth-user-dir",
"LAB",
"--auth-user-id",
"goran",
// "args": [
// "task-get",
// "--auth-type",
// "cert",
// "--host",
// "192.168.100.109",
// "--auth-cert-file",
// "../../code/secret/pro2win1-nopwd/client.pem",
// // "./cert/client.pem",
// "--auth-cert-key-file",
// "../../code/secret/pro2win1-nopwd/client_key.pem",
// // "./cert/client_key.pem",
// "--auth-user-dir",
// "LAB",
// "--auth-user-id",
// "goran",

// "--task-type",
// "reload",
"ext-program",

// "--task-id",
// "afc250bc-28c3-49a2-8d63-80966749abe3",
// "5748afa9-3abe-43ab-bb1f-127c48ced075",
// "5520e710-91ad-41d2-aeb6-434cafbf366b",
"--output-format",
// "table",
"tree",

"--output-dest",
"screen",
// "--output-file-name",
// "tasks.csv",
// "tasks.json",
// "--output-file-format",
// "csv",
// "json",
// "excel",

// "--text-color",
// "no",
// // "--task-type",
// // "reload",
// "ext-program",

// "--table-details",
// "common",
// "lastexecution",
// "tag",
// "customproperty",
// "schematrigger",
// "compositetrigger",
]
// // "--task-id",
// // "afc250bc-28c3-49a2-8d63-80966749abe3",
// // "5748afa9-3abe-43ab-bb1f-127c48ced075",
// // "5520e710-91ad-41d2-aeb6-434cafbf366b",
// "--output-format",
// // "table",
// "tree",

// "--output-dest",
// "screen",
// // "--output-file-name",
// // "tasks.csv",
// // "tasks.json",
// // "--output-file-format",
// // "csv",
// // "json",
// // "excel",

// // "--text-color",
// // "no",

// // "--table-details",
// // "common",
// // "lastexecution",
// // "tag",
// // "customproperty",
// // "schematrigger",
// // "compositetrigger",
// ]

// ------------------------------------
// Get reload tasks as CSV/Excel/JSON file
Expand Down Expand Up @@ -791,7 +801,6 @@
// "--log-level",
// "info"
// ]

}
]
}
Loading