| 1 |
Feature: connect to a database: |
| 2 |
|
| 3 |
@requires_local_db |
| 4 |
Scenario: run mycli on localhost without port |
| 5 |
When we run mycli with arguments "host=localhost" without arguments "port" |
| 6 |
When we query "status" |
| 7 |
Then status contains "via UNIX socket" |
| 8 |
|
| 9 |
Scenario: run mycli on TCP host without port |
| 10 |
When we run mycli without arguments "port" |
| 11 |
When we query "status" |
| 12 |
Then status contains "via TCP/IP" |
| 13 |
|
| 14 |
Scenario: run mycli with port but without host |
| 15 |
When we run mycli without arguments "host" |
| 16 |
When we query "status" |
| 17 |
Then status contains "via TCP/IP" |
| 18 |
|
| 19 |
@requires_local_db |
| 20 |
Scenario: run mycli without host and port |
| 21 |
When we run mycli without arguments "host port" |
| 22 |
When we query "status" |
| 23 |
Then status contains "via UNIX socket" |