Sha256: 65386c8e11678914fecb87a689a282c7f164006d1f95990576ba4803d955f539

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

@pull
Feature: Pull code from salesforce

  As a developer
  I want to be able to retrieve code from a sandbox

  Scenario: Retrieve code from the default sandbox
    When I run `sf pull`
    Then the exit status should be 0
    And the output should match:
    """
    ^INFO: Pulling changes from env_a using url https://test.salesforce.com.*OK
    """

  Scenario: Retrieve code from a specific sandbox
    When I run `sf pull -s env_b`
    Then the exit status should be 0
    And the output should match:
    """
    ^INFO: Pulling changes from env_b using url https://test.salesforce.com.*OK
    """

  Scenario: Retrieve code from a sandbox using a specific URL
    Given I set the environment variables to:
      | variable             | value                                                   |
      | SFDT_SALESFORCE_URL  | https://invalid_url.salesforce.com |
    When I run `sf pull`
    Then the exit status should be 1
    And the output should match:
    """
    ^INFO: Pulling changes from env_a using url https://invalid_url.*
    """

  Scenario: Retrieve code from a production
    When I run `sf pull -s prod`
    Then the exit status should be 0
    And the output should match:
    """
    ^INFO: Pulling changes from prod using url https://login.salesforce.com.*OK$
    """

  Scenario: Retrieve code from the default sandbox with debug output
    When I run `sf pull -d`
    Then the exit status should be 0
    And the output should contain "BUILD SUCCESSFUL"
    And the output should match:
    """
    ^INFO: Pulling changes from env_a using url https://test.salesforce.com.*
    """

  Scenario: Retrieve code from a specific sandbox with debug output
    When I run `sf pull -s env_a -d`
    Then the exit status should be 0
    And the output should contain "BUILD SUCCESSFUL"
    And the output should match:
    """
    ^INFO: Pulling changes from env_a using url https://test.salesforce.com.*$
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
salesforce-deploy-tool-2.1.1 features/pull.feature
salesforce-deploy-tool-2.1.0 features/pull.feature
salesforce-deploy-tool-2.0.0 features/pull.feature
salesforce-deploy-tool-1.3.0 features/pull.feature