Skip to content

Return correct ORM AuthInfo class for JobCalculation._get_authinfo#2235

Merged
muhrin merged 1 commit into
aiidateam:developfrom
sphuber:fix_2234_job_calculation_get_authinfo
Nov 22, 2018
Merged

Return correct ORM AuthInfo class for JobCalculation._get_authinfo#2235
muhrin merged 1 commit into
aiidateam:developfrom
sphuber:fix_2234_job_calculation_get_authinfo

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Nov 22, 2018

Fixes #2234

The method returned the backend AuthInfo class, which does not have
the get_transport method that would be called for example in the
_get_transport method of the JobCalculation class. The fix is
to wrap the backend entity in the ORM class by calling

`AuthInfo.from_backend_entity`

Added two regression tests for this bug.

The method returned the backend AuthInfo class, which does not have
the `get_transport` method that would be called for example in the
`_get_transport` method of the `JobCalculation` class. The fix is
to wrap the backend entity in the ORM class by calling

    `AuthInfo.from_backend_entity`

Added two regression tests for this bug.
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 68.931% when pulling 118fab4 on sphuber:fix_2234_job_calculation_get_authinfo into 3bd6fb1 on aiidateam:develop.

@muhrin muhrin merged commit 7dfdccd into aiidateam:develop Nov 22, 2018
@muhrin muhrin deleted the fix_2234_job_calculation_get_authinfo branch November 22, 2018 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verdi calculation gotocomputer not working

3 participants