This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ask for default execution type (docker / local) with RIT INIT (#480)
* Add option to run rit with docker or local by default Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Fix lint Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Fix test Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Add stdin to rit set formula-runner command Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * add Apache license to file header Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create test for post_runner.go Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create more tests to cmd/formula.go Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Update README Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create more test to docker/runner Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create more test to docker/pre_runner Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create more test to docker/pre_run Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Create more test to docker/pre_run Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Fix tests Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Fix set formula runner cmd test name Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Adjust PR consideration Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com> * Remove comment Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com>
- Loading branch information
Showing
34 changed files
with
2,760 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,98 @@ | ||
[ | ||
{ | ||
"entry":"Init STDIN", | ||
"steps":[ | ||
"entry": "Init STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"addRepo\":\"yes\"}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"addCommons\": true,\"sendMetrics\": true, \"runType\": \"local\"}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"init --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "init --stdin", | ||
"action": "main" | ||
} | ||
|
||
], | ||
"result":"Initialization successful!" | ||
"result": "Initialization successful!" | ||
}, | ||
{ | ||
"entry":"Set context STDIN", | ||
"steps":[ | ||
"entry": "Set context STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"context\":\"Leonidas\"}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"context\":\"Leonidas\"}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"set context --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "set context --stdin", | ||
"action": "main" | ||
} | ||
|
||
], | ||
"result":"Set context successful!" | ||
"result": "Set context successful!" | ||
}, | ||
{ | ||
"entry":"Delete context STDIN", | ||
"steps":[ | ||
"entry": "Delete context STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"context\":\"Leonidas\"}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"context\":\"Leonidas\"}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"delete context --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "delete context --stdin", | ||
"action": "main" | ||
} | ||
|
||
], | ||
"result":"Delete context successful!" | ||
"result": "Delete context successful!" | ||
}, | ||
{ | ||
"entry":"Add new repo STDIN", | ||
"steps":[ | ||
"entry": "Add new repo STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"provider\":\"Github\", \"name\":\"Leonidas\", \"url\":\"https://github.com/viniciussousazup/ritchie-formulas\", \"version\":\"0.0.3\",\"priority\":999}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"provider\":\"Github\", \"name\":\"Leonidas\", \"url\":\"https://github.com/viniciussousazup/ritchie-formulas\", \"version\":\"0.0.3\",\"priority\":999}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"add repo --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "add repo --stdin", | ||
"action": "main" | ||
} | ||
], | ||
"result":"" | ||
"result": "" | ||
}, | ||
{ | ||
"entry":"Delete repo STDIN", | ||
"steps":[ | ||
"entry": "Delete repo STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"name\":\"Leonidas\"}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"name\":\"Leonidas\"}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"delete repo --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "delete repo --stdin", | ||
"action": "main" | ||
} | ||
], | ||
"result":"\"Leonidas\" was deleted with success" | ||
"result": "\"Leonidas\" was deleted with success" | ||
}, | ||
{ | ||
"entry":"Set credentials STDIN", | ||
"steps":[ | ||
"entry": "Set credentials STDIN", | ||
"steps": [ | ||
{ | ||
"key":"", | ||
"value":"{\"service\":\"Leonidas\",\"credential\": {\"username\":\"dmbarra\",\"token\": \"credentialToken\"}}", | ||
"action":"echo" | ||
"key": "", | ||
"value": "{\"service\":\"Leonidas\",\"credential\": {\"username\":\"dmbarra\",\"token\": \"credentialToken\"}}", | ||
"action": "echo" | ||
}, | ||
{ | ||
"key":"", | ||
"value":"set credential --stdin", | ||
"action":"main" | ||
"key": "", | ||
"value": "set credential --stdin", | ||
"action": "main" | ||
} | ||
], | ||
"result":"" | ||
"result": "" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.