X Tutup
Skip to content

Acceptance tests failing for changing display name of a local user #591

@phil-davis

Description

@phil-davis

e.g. https://drone.owncloud.com/owncloud/user_ldap/2680/28/11

  Scenario Outline: the administrator can edit a user display (the API allows editing the "display name" by using the key word "display") # /var/www/owncloud/testrunner/apps/user_ldap/tests/acceptance/features/apiProvisioningLDAP/users.feature:47
    Given using OCS API version "<ocs-api-version>"                                                                                       # FeatureContext::usingOcsApiVersion()
    And user "Alice" has been created with default attributes in the database user backend                                                # FeatureContext::userHasBeenCreatedOnDatabaseBackend()
    When the administrator changes the display of user "Alice" to "A New User" using the provisioning API                                 # FeatureContext::adminChangesTheDisplayOfUserUsingTheProvisioningApi()
    Then the OCS status code should be "<ocs-status-code>"                                                                                # OCSContext::theOCSStatusCodeShouldBe()
    And the HTTP status code should be "<http-status-code>"                                                                               # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the display name of user "Alice" should be "A New User"                                                                           # FeatureContext::theDisplayNameOfUserShouldBe()

    Examples:
      | ocs-api-version | ocs-status-code | http-status-code |
      | 1               | 100             | 200              |
        Failed asserting that two strings are equal.
        --- Expected
        +++ Actual
        @@ @@
        -'A New User'
        +'Alice Hansen'
      | 2               | 200             | 200              |
        Failed asserting that two strings are equal.
        --- Expected
        +++ Actual
        @@ @@
        -'A New User'
        +'Alice Hansen'

It seems that the step:

   And user "Alice" has been created with default attributes in the database user backend

Is actually creating Alice in LDAP.

  1. various pipelines seem to be struggling to fetch diocker image osixia/openldap and the delay is causing fails in the setup steps. PR Acceptance tests failing for changing display name of a local user #591 adds some wait for LDAP to become available before trying to configure the app settings.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup