Sha256: afb831aeae857c5c974902bc631d533eee147ff7ad4466234a73d4320e7e99a5

Contents?: true

Size: 1.41 KB

Versions: 14

Compression:

Stored size: 1.41 KB

Contents

Feature: The dump command
  Most aspects of connection to a server are tested in shell feature.

  Scenario: Creating a dump of the development database
    When I run `geordi dump`
    Then the output should contain "Util.system! dumple development"
      And the output should contain "Successfully dumped the development database"


  Scenario: Creating a dump of a remote database
    Given a file named "Capfile" with "Capfile exists"
    And a file named "config/deploy.rb" with:
    """
    """
    And a file named "config/deploy/staging.rb" with:
    """
    set :rails_env, 'staging'
    set :deploy_to, '/var/www/example.com'
    set :user, 'user'

    server 'www.example.com'
    """

    When I run `geordi dump staging`
    Then the output should contain "# Dumping the database of staging"
      And the output should contain "> Connecting to www.example.com"
      And the output should contain "Util.system! ssh, user@www.example.com, -t, cd /var/www/example.com/current && bash --login -c 'dumple staging --for_download'"
      And the output should contain "> Downloading remote dump to tmp/staging.dump"
      # Omitting the absolute path in this regex (.*)
      And the output should match:
      """
      Util\.system! scp -C user@www\.example\.com:~\/dumps\/dump_for_download.dump .*?\/tmp\/aruba\/tmp\/staging.dump
      """
      And the output should contain "> Dumped the staging database to tmp/staging.dump"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geordi-2.12.3 features/dump.feature
geordi-2.12.2 features/dump.feature
geordi-2.12.1 features/dump.feature
geordi-2.12.0 features/dump.feature
geordi-2.11.0 features/dump.feature
geordi-2.10.1 features/dump.feature
geordi-2.10.0 features/dump.feature
geordi-2.9.0 features/dump.feature
geordi-2.8.0 features/dump.feature
geordi-2.7.0 features/dump.feature
geordi-2.6.0 features/dump.feature
geordi-2.5.0 features/dump.feature
geordi-2.4.0 features/dump.feature
geordi-2.3.0 features/dump.feature