Unverified Commit c5cabedc authored by Vincent Petry's avatar Vincent Petry
Browse files

Add no_encryption filter for incompatible int tests

Added filter to disable some tests when encryption is enabled.
parent e558602b
......@@ -276,6 +276,7 @@ Feature: provisioning
And the HTTP status code should be "200"
And group "España" does not exist
@no_encryption
Scenario: get enabled apps
Given As an "admin"
When sending "GET" to "/cloud/apps?filter=enabled"
......
Feature: transfer-ownership
@no_encryption
Scenario: transfering ownership of a file
Given user "user0" exists
And user "user1" exists
......@@ -10,6 +11,7 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership of a folder
Given user "user0" exists
And user "user1" exists
......@@ -21,6 +23,7 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership of file shares
Given user "user0" exists
And user "user1" exists
......@@ -32,6 +35,7 @@ Feature: transfer-ownership
And As an "user2"
Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership of folder shared with third user
Given user "user0" exists
And user "user1" exists
......@@ -44,6 +48,7 @@ Feature: transfer-ownership
And As an "user2"
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership of folder shared with transfer recipient
Given user "user0" exists
And user "user1" exists
......@@ -57,6 +62,7 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership of folder doubly shared with third user
Given group "group1" exists
And user "user0" exists
......@@ -72,6 +78,7 @@ Feature: transfer-ownership
And As an "user2"
Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
@no_encryption
Scenario: transfering ownership does not transfer received shares
Given user "user0" exists
And user "user1" exists
......@@ -84,6 +91,7 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
Then as "user1" the folder "/test" does not exist
@no_encryption
@local_storage
Scenario: transfering ownership does not transfer external storage
Given user "user0" exists
......@@ -94,6 +102,7 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
Then as "user1" the folder "/local_storage" does not exist
@no_encryption
Scenario: transfering ownership does not fail with shared trashed files
Given user "user0" exists
And user "user1" exists
......
......@@ -4,6 +4,7 @@ composer install
OC_PATH=../../
OCC=${OC_PATH}occ
BEHAT=vendor/bin/behat
SCENARIO_TO_RUN=$1
HIDE_OC_LOGS=$2
......@@ -63,9 +64,20 @@ fi
# Enable encryption if requested
if test "$OC_TEST_ENCRYPTION_ENABLED" = "1"; then
env_encryption_enable
BEHAT_FILTER_TAGS="~@no_encryption"
fi
vendor/bin/behat --strict -f junit -f pretty $SCENARIO_TO_RUN
if test "$BEHAT_FILTER_TAGS"; then
BEHAT_PARAMS='{
"gherkin": {
"filters": {
"tags": "'"$BEHAT_FILTER_TAGS"'"
}
}
}'
fi
BEHAT_PARAMS="$BEHAT_PARAMS" $BEHAT --strict -f junit -f pretty $SCENARIO_TO_RUN
RESULT=$?
kill $PHPPID
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment