-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3006.x] Make sure the file client is destroyed upon used #64113
Conversation
fbcd39c
to
9174561
Compare
9174561
to
458a715
Compare
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.
Can we adapt this test to use destroy instead of removing it? Basically, test the case when we do and do not pass a file_client to SaltCacheLoader.
You mean the test that I removed? Or the one you added? |
The one getting removed. I think there is value in testing what happens when there is and is not a file client passed to SaltCacheLoader. |
Signed-off-by: Pedro Algarvio <[email protected]>
Signed-off-by: Pedro Algarvio <[email protected]>
Test importing jinja files
Signed-off-by: Pedro Algarvio <[email protected]>
Signed-off-by: Pedro Algarvio <[email protected]>
458a715
to
b14cf05
Compare
Unit test added. |
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.
Approved, though I'd like the destroy method to be simplified if possible.
Signed-off-by: Pedro Algarvio <[email protected]>
Signed-off-by: Pedro Algarvio <[email protected]>
Signed-off-by: Pedro Algarvio <[email protected]>
What does this PR do?
See title
Fixes: #64111