Skip to content
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

Test provider breaking Agreement #434

Merged
merged 16 commits into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
cf3bffe
Test breaking Agreement after no Activity was created for some period…
nieznanysprawiciel Mar 4, 2021
a67f609
Test breaking Agreement after DebitNotes accept timeout
nieznanysprawiciel Mar 8, 2021
519aa58
Merge branch 'master' of github.com:golemfactory/yagna-integration in…
nieznanysprawiciel Mar 9, 2021
4e88d93
[Test] Provider should break Agreement if Requestor daemon is unreach…
nieznanysprawiciel Mar 9, 2021
fc1a4bf
ProviderProbe: Add waiting for agreement broken; test_provider_idle_a…
nieznanysprawiciel Mar 10, 2021
7546de8
Fix test_provider_idle_agreement_after_2_activities (was temirnated b…
nieznanysprawiciel Mar 10, 2021
2308d31
Test rejecting second Activity created at the same time
nieznanysprawiciel Mar 11, 2021
0efdba1
Fix tests failing to start, when there are both debug and release bui…
nieznanysprawiciel Mar 12, 2021
2da4bdd
Kill daemon functionality
nieznanysprawiciel Mar 15, 2021
47895f9
Test break Agreement for unresponsive requestor
nieznanysprawiciel Mar 15, 2021
1737719
Merge branch 'master' of github.com:golemfactory/yagna-integration in…
nieznanysprawiciel Mar 15, 2021
47f2c3b
Merge branch 'master' of github.com:golemfactory/yagna-integration in…
nieznanysprawiciel Mar 26, 2021
77e3379
Merge master
nieznanysprawiciel Apr 20, 2021
af6d260
Merge branch 'master' of github.com:golemfactory/yagna-integration in…
nieznanysprawiciel Apr 26, 2021
29ff37c
Clean stuff moved to yagna repo or unnecessary
nieznanysprawiciel Apr 26, 2021
222e51d
Merge branch 'master' of github.com:golemfactory/yagna-integration in…
nieznanysprawiciel May 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions goth/runner/probe/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,14 @@ async def wait_for_invoice_sent(self: ProviderProbeProtocol):
async def wait_for_invoice_paid(self: ProviderProbeProtocol):
"""Wait until the invoice is paid."""
await self.provider_agent.wait_for_log("Invoice .+? for agreement .+? was paid")

@step()
async def wait_for_agreement_broken(self, reason: str):
"""Wait until Provider will break Agreement."""
pattern = rf"Breaking agreement .*, reason: {reason}"
await self.provider_agent.wait_for_log(pattern)

@step()
async def wait_for_log(self, pattern: str):
"""Wait for specific log."""
await self.provider_agent.wait_for_log(pattern)
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.