owncloud / testing

🔧 app for testing ownCloud
GNU Affero General Public License v3.0
3 stars 4 forks source link

CI failing on trusted server tests #123

Closed phil-davis closed 5 years ago

phil-davis commented 5 years ago

e.g. https://drone.owncloud.com/owncloud/testing/724/16/9

  Scenario Outline: Add new trusted server using the testing api                                # /var/www/owncloud/testrunner/apps/testing/tests/acceptance/features/apiTestingApp/trustedServer.feature:4
    Given using OCS API version "<ocs-api-version>"                                             # FeatureContext::usingOcsApiVersion()
    When the administrator adds url "http://new-oc.com" as trusted server using the testing API # FeatureContext::theAdministratorAddsUrlAsTrustedServerUsingTheTestingApi()
    Then the HTTP status code should be "<http-status>"                                         # FeatureContext::theHTTPStatusCodeShouldBe()
    And the HTTP reason phrase should be "<http-reason-phrase>"                                 # FeatureContext::theHTTPReasonPhraseShouldBe()
    And the OCS status code should be "<ocs-status>"                                            # OCSContext::theOCSStatusCodeShouldBe()
    And url "http://new-oc.com" should be a trusted server                                      # FeatureContext::urlShouldBeATrustedServer()

    Examples:
      | ocs-api-version | ocs-status | http-status | http-reason-phrase |
      | 1               | 201        | 201         | Created            |
      | 2               | 201        | 201         | Created            |
        HTTP status code is not the expected value
        Failed asserting that 200 matches expected '201'.

and later fails.

Some status codes seem to have changed.

Needs investigation to understand what changed and why, then fix code or tests.