Skip to content

Commit

Permalink
Merge pull request #348 from mountaindude/167
Browse files Browse the repository at this point in the history
build: Add unit tests
  • Loading branch information
mountaindude committed Nov 19, 2023
2 parents e4f415d + 50bbae1 commit eb33693
Show file tree
Hide file tree
Showing 16 changed files with 1,140 additions and 226 deletions.
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"
// ]

}
]
}

0 comments on commit eb33693

Please sign in to comment.