features/pull.feature in salesforce-deploy-tool-1.2.0 vs features/pull.feature in salesforce-deploy-tool-1.3.0
- old
+ new
@@ -1,28 +1,59 @@
@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.*OK/
+ 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.*OK/
+ 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 "INFO: Pulling changes from env_a"
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 "INFO: Pulling changes from env_a"
And the output should contain "BUILD SUCCESSFUL"
+ And the output should match:
+ """
+ ^INFO: Pulling changes from env_a using url https://test.salesforce.com.*$
+ """