Skip to content

Commit

Permalink
Merge 8675004 into 27526f3
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW authored Nov 26, 2022
2 parents 27526f3 + 8675004 commit 2070534
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Key features of `runn` are:
- **As a tool for scenario based testing.**
- **As a test helper package for the Go language.**
- **As a tool for workflow automation.**
- **Support HTTP request, gRPC request, DB query, Chrome DevTools Protocol, and command execution**
- **Support HTTP request, gRPC request, DB query, Chrome DevTools Protocol, and SSH/Local command execution**
- **OpenAPI Document-like syntax for HTTP request testing.**

## Quickstart
Expand Down Expand Up @@ -733,7 +733,7 @@ are recorded with the following structure.
Use dsn (Data Source Name) to specify DB Runner.
When step is executed, it executes the specified query the database.
When step is invoked, it executes the specified query the database.
``` yaml
runners:
Expand Down Expand Up @@ -1221,6 +1221,34 @@ actions:

<!-- repin:fndoc -->

### SSH Runner: execute commands on a remote server connected via SSH

Use `ssh://` scheme to specify SSH Runner.

When step is invoked, it executes commands on a remote server connected via SSH.

``` yaml
runners:
sc: ssh://username@hostname:port
steps:
-
desc: 'execute `hostname`' # description of step
sc:
command: hostname
```
See [testdata/book/sshd.yml](testdata/book/sshd.yml).
#### Structure of recorded responses
The response to the run command is always `stdout` and `stderr`.

``` yaml
[`step key` or `current` or `previous`]:
stdout: 'hello world' # current.stdout
stderr: '' # current.stderr
```
### Exec Runner: execute command
The `exec` runner is a built-in runner, so there is no need to specify it in the `runners:` section.
Expand Down

0 comments on commit 2070534

Please sign in to comment.