Repository navigation
test(integration): add live test harness and Exchange scan test - #234
Open
rsmanasa-google wants to merge 1 commit into
Open
rsmanasa-google wants to merge 1 commit into
rsmanasa-google wants to merge 1 commit into
Conversation
| def load_scan_inputs() -> Dict[str, Any]: | ||
| """Returns the scan inputs file contents, or {} when there is none.""" | ||
| path = os.environ.get(SCAN_INPUTS_ENV) or DEFAULT_SCAN_INPUTS | ||
| if not os.path.exists(path): |
| path = os.environ.get(SCAN_INPUTS_ENV) or DEFAULT_SCAN_INPUTS | ||
| if not os.path.exists(path): | ||
| return {} | ||
| with open(path, encoding="utf-8") as f: |
| path = os.path.join(target, name) | ||
| if not os.path.exists(path): | ||
| _restored_files.append(path) # Only files the tests put there are removed afterwards. | ||
| shutil.copyfile(os.path.join(source, name), path) |
Adds the shared harness and the runner that starts a planner scan without clicks, in a child process, from an uploaded CSV naming one user. Adds the first test that uses them: an Exchange scan against a real Microsoft 365 tenant, checking that the scan completes without errors, the run log is clean, and the report and batch CSVs are written. Counts and ETAs are not compared. The test is skipped unless credentials and a scan inputs file are provided.
rsmanasa-google
force-pushed
the
test/integration-exchange
branch
from
November 30, 2026 08:33
4943095 to
44a9bce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the shared harness and the runner that starts a planner scan without clicks, in a child process, from an uploaded CSV naming one user. Adds the first test that uses them: an Exchange scan against a real Microsoft 365 tenant, checking that the scan completes without errors, the run log is clean, and the report and batch CSVs are written. Counts and ETAs are not compared.
The test is skipped unless credentials and a scan inputs file are provided.