psychoinformatics-de / inm-icf-utilities

MIT License
0 stars 5 forks source link

Add dataladification tests #15

Closed christian-monch closed 1 year ago

jsheunis commented 1 year ago

Looks like the test times out when attempting to clone from the published dataset:

[INFO] Attempting a clone into /tmp/pytest-of-appveyor/pytest-0/test_dataladification0/ds_study_1_visit_a 
[INFO] Attempting to clone from datalad-annex::?type=external&externaltype=uncurl&url=http://data.inm-icf.de/~appveyor/study_1/visit_a_{{annex_key}}&encryption=none to /tmp/pytest-of-appveyor/pytest-0/test_dataladification0/ds_study_1_visit_a 
Credential needed for access to http://data.inm-icf.de/~appveyor/study_1/visit_a_XDLRA--refs
user: 

so it expects interactive input of username and password. My understanding is that this part in the test function is supposed to provide the credentials:

# Set credentials for the realm
    credman.set(**{
        **dataaccess_credential,
        'realm': 'http://data.inm-icf.de/Restricted'
    })

Or is there something I'm missing?

Good thing is that the dataladification part runs without failure.

christian-monch commented 1 year ago

so it expects interactive input of username and password. My understanding is that this part in the test function is supposed to provide the credentials:

# Set credentials for the realm
    credman.set(**{
        **dataaccess_credential,
        'realm': 'http://data.inm-icf.de/Restricted'
    })

Or is there something I'm missing? [,,,]

That is pretty much it (Protected instead of Restricted though) :-) Thanks.

christian-monch commented 1 year ago

Uhh. The protected realm is called Restricted on apache and Protected on the python http-server....