-
Notifications
You must be signed in to change notification settings - Fork 252
[DRAFT] UnitTest based tests #7906
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
Open
cjen1-msft
wants to merge
6
commits into
microsoft:main
Choose a base branch
from
cjen1-msft:unittest-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6efa202
Draft of NetworkTestCase
cjen1-msft 684ebbd
snagging
cjen1-msft d005e03
Close ledger file after reading
cjen1-msft ac62f3e
fix path issue
cjen1-msft bb25b67
add license notice
cjen1-msft 9a2098e
snagging
cjen1-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "binary_dir": "@CMAKE_BINARY_DIR@", | ||
| "log_level": "@TEST_LOGGING_LEVEL@", | ||
| "worker_threads": @WORKER_THREADS@, | ||
| "tick_ms": @NODE_TICK_MS@, | ||
| "default_constitution": @DEFAULT_CONSTITUTION_JSON@, | ||
| "historical_testdata": "@CMAKE_SOURCE_DIR@/tests/testdata", | ||
| "jinja_templates_path": "@CMAKE_SOURCE_DIR@/samples/templates" | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| # ./scripts/test-buckets-checks.sh -f | ||
|
|
||
| bucket_a: | ||
| e2e_unittests | ||
| lts_compatibility | ||
|
|
||
| bucket_b: | ||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the Apache 2.0 License. | ||
|
|
||
| import infra.logging_app as app | ||
| import infra | ||
| from e2e_operations import ( | ||
| test_backup_snapshot_fetch, | ||
| test_backup_snapshot_fetch_max_size, | ||
| test_error_message_on_failure_to_fetch_snapshot, | ||
| test_join_idempotency_short_circuits_on_backup, | ||
| test_join_time_snapshot_fetch_failure, | ||
| ) | ||
|
|
||
|
|
||
| class BackupSnapshotDownload(infra.network.NetworkTestCase): | ||
| label = "backup_snapshot_download" | ||
| test_config_overrides = lambda args: { | ||
|
cjen1-msft marked this conversation as resolved.
|
||
| "snapshot_tx_interval": 30, | ||
| "nodes": infra.e2e_args.max_nodes(args, f=0), | ||
| } | ||
| start_and_open_kwargs = {"backup_snapshot_fetch_enabled": True} | ||
| network_kwargs = lambda _: {"txs": app.LoggingTxs("user0")} | ||
| success_stop_kwargs = { | ||
| "skip_verification": True, | ||
| } | ||
|
|
||
| def test_backup_snapshot_fetch(self): | ||
| test_backup_snapshot_fetch(self.network, self.args) | ||
|
|
||
| def test_backup_snapshot_fetch_max_size(self): | ||
| test_backup_snapshot_fetch_max_size(self.network, self.args) | ||
|
|
||
| def test_join_idempotency_short_circuits_on_backup(self): | ||
| test_join_idempotency_short_circuits_on_backup(self.network, self.args) | ||
|
|
||
| def test_join_time_snapshot_fetch_failure(self): | ||
| test_join_time_snapshot_fetch_failure(self.network, self.args) | ||
|
|
||
| def test_error_message_on_failure_to_fetch_snapshot(self): | ||
| test_error_message_on_failure_to_fetch_snapshot(self.network, self.args) | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.