File: connection.feature

package info (click to toggle)
mycli 1.42.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,036 kB
  • sloc: python: 8,587; makefile: 10
file content (35 lines) | stat: -rw-r--r-- 1,201 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature: connect to a database:

  @requires_local_db
  Scenario: run mycli on localhost without port
    When we run mycli with arguments "host=localhost" without arguments "port"
      When we query "status"
      Then status contains "via UNIX socket"

  Scenario: run mycli on TCP host without port
    When we run mycli without arguments "port"
      When we query "status"
      Then status contains "via TCP/IP"

  Scenario: run mycli with port but without host
    When we run mycli without arguments "host"
      When we query "status"
      Then status contains "via TCP/IP"

  @requires_local_db
  Scenario: run mycli without host and port
    When we run mycli without arguments "host port"
      When we query "status"
      Then status contains "via UNIX socket"

  Scenario: run mycli with my.cnf configuration
    When we create my.cnf file
    When we run mycli without arguments "host port user pass defaults_file"
      Then we are logged in

  Scenario: run mycli with mylogin.cnf configuration
    When we create mylogin.cnf file
    When we run mycli with arguments "login_path=test_login_path" without arguments "host port user pass defaults_file"
      Then we are logged in