-
Notifications
You must be signed in to change notification settings - Fork 50
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
Integration tests for certificate policy manager #753
Commits on Jul 31, 2023
-
Infer needed directories from given state directory
Instead of having defaults for all needed directories in the certificate Python script, only make the state directory overridable since the others are descendants of it. This will ease integration testing as we will only need to expose the state directory and the global trust directory.
Configuration menu - View commit details
-
Copy full SHA for 45d326c - Browse repository at this point
Copy the full SHA 45d326cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee1209d - Browse repository at this point
Copy the full SHA ee1209dView commit details -
Make global trust and state dirs configurable
To aid in integration tests, these must be editable via the configuration file.
Configuration menu - View commit details
-
Copy full SHA for f826c9a - Browse repository at this point
Copy the full SHA f826c9aView commit details
Commits on Aug 1, 2023
-
Append to PYTHONPATH instead of overriding
To be able to use the samba mock in the integration tests we need to append to the PYTHONPATH variable instead of overriding it. This way previously set paths will take precedence.
Configuration menu - View commit details
-
Copy full SHA for f84a0fa - Browse repository at this point
Copy the full SHA f84a0faView commit details -
Use shutil to remove non-empty directory
Removing a directory with `os.removedirs` will fail if it's non-empty. We can circumvent this behavior by using `shutil.rmtree` instead.
Configuration menu - View commit details
-
Copy full SHA for d10233b - Browse repository at this point
Copy the full SHA d10233bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a2ae83 - Browse repository at this point
Copy the full SHA 6a2ae83View commit details -
Integration tests for certificate policy manager
Old data - policy configured & disabled Up to date - policy configured & enabled Some things to notice in the tests behavior: - no changes to user golden files with no initial state - purging machine policies removes the samba directory if it exists Fixes UDENG-1059
Configuration menu - View commit details
-
Copy full SHA for b6275a7 - Browse repository at this point
Copy the full SHA b6275a7View commit details -
Update the certificate test name to match the tested method name (and our convention).
Configuration menu - View commit details
-
Copy full SHA for 4de2c2a - Browse repository at this point
Copy the full SHA 4de2c2aView commit details