Skip to content

Commit b15e3be

Browse files
committed
Swap run with try so it doesnt fail locally if the user exists
1 parent 4266069 commit b15e3be

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

features/config-create.feature

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ Feature: Create a wp-config file
247247
Scenario: Configure with required SSL connection
248248
Given an empty directory
249249
And WP files
250-
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "CREATE USER IF NOT EXISTS 'wp_cli_test_ssl'@'127.0.0.1';"`
251-
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "SET PASSWORD FOR 'wp_cli_test_ssl'@'127.0.0.1' = 'password2';"`
252-
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "ALTER user 'wp_cli_test_ssl'@'127.0.0.1' REQUIRE SSL;"`
250+
And I try `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "CREATE USER 'wp_cli_test_ssl'@'127.0.0.1' IDENTIFIED BY 'password2' REQUIRE SSL;"`
253251
254252
When I try `wp config create --dbhost=127.0.0.1 --dbname=wp_cli_test --dbuser=wp_cli_test_ssl --dbpass=password2 --ssl`
255253
Then the return code should be 0

0 commit comments

Comments
 (0)