Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

fix integration test test_auth_jenkins_oidc_client_credentials_me #718

Closed bossie closed 3 months ago

bossie commented 3 months ago
connection = <Connection to 'http://192.168.207.55:44737/openeo/1.1.0' with OidcBearerAuth>
auth_connection = <Connection to 'http://192.168.207.55:44737/openeo/1.1.0' with OidcBearerAuth>

    def test_auth_jenkins_oidc_client_credentials_me(connection, auth_connection):
        """
        WIP for #6: OIDC Client Credentials auth for jenkins user
        """
        # TODO: skip this test automatically when not running in Jenkins context?
        me = connection.describe_account()
        _log.info(f"connection.describe_account -> {me=}")
>       assert me["user_id"] == "openeo-jenkins-service-account"
E       AssertionError: assert '1ff4f5cf-95c...-b5096d95006a' == 'openeo-jenki...rvice-account'
E         
E         - openeo-jenkins-service-account
E         + 1ff4f5cf-95cc-4bbb-ad8f-b5096d95006a

openeo-geopyspark-integrationtests/tests/test_integration.py:2162: AssertionError
bossie commented 3 months ago

Fixed by updating the user_id.

soxofaan commented 3 months ago

FYI: "user id" mapping for client credentials changed under Open-EO/openeo-geopyspark-driver#708