WIP: tests, REST API support (auth).
This commit is contained in:
17
src/test/json/strawboss.config.json
Normal file
17
src/test/json/strawboss.config.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"artifactsRepo": "artifacts",
|
||||
"users": [
|
||||
{ "name": "bob@builder.com", "hashedPwd": "testvalue" },
|
||||
{ "name": "sam@sousa.com", "hashedPwd": "testvalue" }
|
||||
],
|
||||
"authSecret": "change me",
|
||||
"projects": [
|
||||
{ "name": "test-project-1",
|
||||
"repo": "/non-existent/dir",
|
||||
"cfgFilePath": "strawhat.json",
|
||||
"defaultBranch": "deploy",
|
||||
"envVars": { "VAR1": "value" }
|
||||
},
|
||||
{ "name": "test-strawboss",
|
||||
"repo": "https://git.jdb-labs.com:jdb/test-strawboss.git" } ]
|
||||
}
|
16
src/test/json/test-project-1.config.json
Normal file
16
src/test/json/test-project-1.config.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "test-project-1",
|
||||
"versionCmd": "git describe --all --always",
|
||||
"steps": {
|
||||
"build": {
|
||||
"depends": ["test"],
|
||||
"workingDir": "dir1",
|
||||
"stepCmd": "cust-build",
|
||||
"artifacts": ["bin1", "doc1"],
|
||||
"expectedEnv": ["VAR1"],
|
||||
"dontSkip": true,
|
||||
"cmdInput": ["test", "this"]
|
||||
},
|
||||
"test": { }
|
||||
}
|
||||
}
|
4
src/test/json/test-status.json
Normal file
4
src/test/json/test-status.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"state": "failed",
|
||||
"details": "some very good reason"
|
||||
}
|
Reference in New Issue
Block a user