features/pull.feature in salesforce-deploy-tool-3.3.3 vs features/pull.feature in salesforce-deploy-tool-3.3.4
- old
+ new
@@ -63,11 +63,10 @@
And the output should match:
"""
^INFO: Pulling changes from testEnv using url https://test.salesforce.com.*$
"""
- @ant
Scenario: Retrieve code from the default sandbox with debug output and specifying ant library path
When I run `sf pull -d -l lib/ant34.jar`
Then the exit status should be 0
And the file "/tmp/sfdt-test/build.xml" should match /sf:retrieve/
And the output should match:
@@ -78,11 +77,10 @@
^Buildfile: .*$
^$
^retrieveCode:$
"""
- @ant
Scenario: Retrieve code from the default sandbox with debug output and specifying ant library path
Given I set the environment variables to:
| variable | value |
| SFDT_ANT_LIB | lib/ant34.jar |
When I run `sf pull -d`
@@ -96,13 +94,20 @@
^Buildfile: .*$
^$
^retrieveCode:$
"""
- @ant
Scenario: Retrieve code from the default sandbox with debug output and specifying a wrong ant library path
When I run `sf pull -d -l lib/invalid_ant34.jar`
Then the exit status should be 1
And the output should match:
"""
^error: ant library file .* not found$
+ """
+
+ Scenario: Pull code from a sandbox using a invalid parameter sequence should fail
+ When I run `sf pull -s -d prod`
+ Then the exit status should be 1
+ And the output should match:
+ """
+ ^invalid sandbox name .*. Please use a valid sandbox name$
"""