-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port test_initremote_basic_sshurl over to use ria_sshserver fixture #58
base: main
Are you sure you want to change the base?
Conversation
I will give this a pass now. Rebased, and force-pushed. It passes for me locally. Let's see how windows does. Update: It does nothing https://ci.appveyor.com/project/mih/datalad-ria/builds/48082357 Apparently, we need to focus on going up the code stack, and first verify that |
This should be easier to use. The old implementation is now available in `ria_sshserver_setup` and should be considered internal. The new fixture returns the base RIA URL, and a local path to that same root directory (if one exists). It also sets `DATALAD_SSH_IDENTITYFILE`, which is needed by datalad-core's `SSHManager`. The setup may still need to use the `datalad_cfg` fixture, and possibly a dedicated reload to be effective. Closes #60
Put all the "should not work" in a dedicated test. Needs no dataset population, needs no store, needs no remote IO.
…lace with corresponding pytest/python functionality
datalad_ria/tests/test_ria_basics.py
Outdated
common_init_opts, | ||
populate_dataset, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT: My thoughts below are wrong, the differences just resulted from different environment variables set on the two computers. I think something odd is happening on Windows with regard to the path on the ssh server for the
with this one from Windows:
This path ( |
This change copies the entire function
_test_initremote_basic
over from datalad-core without any change other then removing two with_tempfile decorators.I further adjusts
test_initremote_basic_sshurl
. This test parametrizes the_test_initremote_basic
helper with things like the ssh url. My changes are supposed to make the helper use things from the ria_sshserver fixture, and it would be cool to know if the way I did this looks correct.This is the diff to what's in datalad-core for these two functions: