Skip to content

Commit

Permalink
Merge pull request #41 from wcm-io-devops/feature/unittests
Browse files Browse the repository at this point in the history
Feature/unittests
  • Loading branch information
BerSomBen authored Oct 24, 2024
2 parents 8da7948 + d6235f4 commit 2f0ce53
Show file tree
Hide file tree
Showing 29 changed files with 7,885 additions and 203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
/target
/pippo.json
/public
/test*
282 changes: 282 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - access-token",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"access-token",
"print"
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - download logs",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"log",
"save",
"--service",
"author",
"--log",
"aemaccess",
"--date",
"2024-10-18"
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - tail logs",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"log",
"tail",
"--service",
"author",
"--log",
"aemaccess"
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - domains list",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"domain",
"list",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - config init",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"domain",
"list",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - env list",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"env",
"list",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - execution list",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"-i",
"000000000",
"pipeline",
"list-executions",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - pipeline list",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"-i",
"000000000",
"pipeline",
"list",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Cargo Debug - program list",
"program": "${workspaceFolder}/target/debug/pippo",
"cargo": {
"args": [
"build",
]
},
"args": [
"-c",
"pippo.json",
"-p",
"00000",
"-e",
"00000",
"-i",
"000000000",
"program",
"list",
],
"cwd": "${workspaceFolder}",
"sourceLanguages": [
"rust"
],
"preLaunchTask": "cargo build",
"stopOnEntry": false,
"env": {},
"console": "integratedTerminal"
}
]
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "cargo build",
"type": "shell",
"command": "cargo",
"args": [
"build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$rustc"],
"detail": "Builds the Rust project"
}
]
}
Loading

0 comments on commit 2f0ce53

Please sign in to comment.