-
Notifications
You must be signed in to change notification settings - Fork 15
local-env-governance-utxo-with-plutus-script #617
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
base: master
Are you sure you want to change the base?
Conversation
I think it should be a test case in e2e-tests:
How many test scenarios are we going to squeeze into local-env setup? EDIT: if I revert my fix, I should have one test case failed. But if this is added to local-env setup, then almost all tests will be failed. |
@LGLO you've already covered it in unit tests, so it won't even get pass through What you're asking for is an integration level coverage which we can address separately. For now, it's not a bad idea to mimic real-life scenarios while we set up local-env. In case of failure the reason may not be clear, but it's a clear win-win solution, because we'll catch this bug (and probably others too) in CI. |
The bad news is that this won't cover scenario where UTXO has Native Script attached. I can assure you that we have a bug with If e2e-tests are going to cover multiple scenarios for |
2cd485e
to
5fb4139
Compare
@LGLO The approach to test such cases is to use integration tests. e2e-tests are not going to cover all of the above, but as I said, there is nothing wrong with enhancing initial setup with additional data, because the goal is to catch bugs. It serves now as a second safety net. Are you suggesting that we should not increase our coverage now (therefore increase the risk of unnoticed bugs) and wait until we have integration tests, because you don't like the fact that we're testing |
I'm saying local-env is not a place to make changes when we need another test scenario. We can merge this change now. The next day we'll find out that it does not cover ETCM-9632 and we do another update? And as I said before, this way we can only test one case. I do not block this PR and I don't want to be complicit in going in wrong direction. |
added: - governance authority in local env has plutus script attached to mimic real life scenarios Refs: ETCM-9630
5fb4139
to
0501e70
Compare
@@ -1,6 +1,6 @@ | |||
{ | |||
"deployment_mc_epoch": 2, | |||
"genesis_utxo": "f8fbe7316561e57de9ecd1c86ee8f8b512a314ba86499ba9a584bfa8fe2edc8d#0", | |||
"genesis_utxo": "83d513c0571bb0ad2dce3ec7cb1e40966e8a9e0b1610a57021932b98683582c1#0", |
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.
This UTOX does not have script attached.
added:
Refs: ETCM-9630