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

feat: Write tests for burn operations #12726 #12998

Merged
merged 4 commits into from May 14, 2024

Conversation

stefan-stefanooov
Copy link
Contributor

@stefan-stefanooov stefan-stefanooov commented Apr 25, 2024

Write E2E suites for HSCS operations affected by the security model
Token Burn
-->

Related issue(s):
#12726
Fixes #
#12726

@stefan-stefanooov stefan-stefanooov linked an issue Apr 25, 2024 that may be closed by this pull request
@stefan-stefanooov stefan-stefanooov self-assigned this Apr 25, 2024
@stefan-stefanooov stefan-stefanooov added Test Development Test Development Limechain Work planned for the LimeChain team labels Apr 25, 2024
@stefan-stefanooov stefan-stefanooov added this to the v0.46 milestone Apr 25, 2024
@stefan-stefanooov stefan-stefanooov force-pushed the 12726-write-tests-for-burn-operations branch from 140aa5a to 89db5fe Compare April 25, 2024 14:27
@stefan-stefanooov stefan-stefanooov marked this pull request as ready for review April 25, 2024 14:36
@stefan-stefanooov stefan-stefanooov requested review from a team as code owners April 25, 2024 14:36
@stefan-stefanooov stefan-stefanooov force-pushed the 12726-write-tests-for-burn-operations branch from 89db5fe to e082225 Compare April 25, 2024 14:39
Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Restart) Results

2 tests   2 ✅  8m 45s ⏱️
2 suites  0 💤
2 files    0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Node Death Reconnect) Results

2 tests   2 ✅  8m 57s ⏱️
2 suites  0 💤
2 files    0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Token) Results

235 tests   233 ✅  20m 43s ⏱️
 17 suites    2 💤
 17 files      0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Misc) Results

464 tests   454 ✅  41m 50s ⏱️
 77 suites   10 💤
 77 files      0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Crypto) Results

335 tests   335 ✅  39m 48s ⏱️
 25 suites    0 💤
 25 files      0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Time Consuming) Results

21 tests   21 ✅  53m 50s ⏱️
 3 suites   0 💤
 3 files     0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: HAPI Test (Smart Contract) Results

592 tests   592 ✅  1h 13m 40s ⏱️
 63 suites    0 💤
 63 files      0 ❌

Results for commit 9b21b83.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 25, 2024

Node: Unit Test Results

  2 282 files  + 2    2 282 suites  +2   2h 35m 15s ⏱️ + 22m 36s
118 827 tests +25  118 760 ✅ +25  67 💤 ±0  0 ❌ ±0 
127 315 runs  +28  127 248 ✅ +28  67 💤 ±0  0 ❌ ±0 

Results for commit 9b21b83. ± Comparison against base commit 0d82f26.

This pull request removes 4009 and adds 3797 tests. Note that renamed tests count towards both.

  
             IssuerDN: CN=s-aaaa
            SubjectDN: CN=s-aaaa
           Final Date: Fri Jan 01 00:00:00 UTC 2100
           Public Key: RSA Public Key [2e:28:bc:1e:d3:83:25:92:8e:cb:98:b1:b6:84:06:9c:d5:d8:14:d5],[56:66:d1:a4]
           Start Date: Sat Jan 01 00:00:00 UTC 2000
         SerialNumber: 12482092706667292405
        modulus: c1a0ff5d2372b53d12d12bb87dd03f5e…
        modulus: c1a0ff5d2372b53d12d12bb87dd03f5…
…
com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [4] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [6] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [7]   
  
com.hedera.node.app.hapi.utils.ethereum.EthTxDataTest ‑ [1] LEGACY_ETHEREUM
com.hedera.node.app.hapi.utils.ethereum.EthTxDataTest ‑ [2] EIP2930
com.hedera.node.app.hapi.utils.ethereum.EthTxDataTest ‑ [3] EIP1559
com.hedera.node.app.service.evm.contracts.execution.HederaEvmTxProcessorTest ‑ assertSuccessExecution050()
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [10] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@3de7aa69
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [11] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@4a78977
com.hedera.node.app.service.mono.state.codec.VirtualKeySerdesAdapterTest ‑ [12] com.hedera.node.app.service.mono.state.codec.VirtualBlobKey@487a613a
…

♻️ This comment has been updated with latest results.

fchitakova
fchitakova previously approved these changes Apr 26, 2024
@stefan-stefanooov stefan-stefanooov force-pushed the 12726-write-tests-for-burn-operations branch 4 times, most recently from 2349dd3 to 9717316 Compare April 26, 2024 10:20
@stefan-stefanooov stefan-stefanooov force-pushed the 12726-write-tests-for-burn-operations branch from 9717316 to ffaa9d8 Compare May 2, 2024 06:34
fchitakova
fchitakova previously approved these changes May 7, 2024
Copy link
Contributor

@petreze petreze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ContractKeysHTSV1SecurityModelSuite we have burnTokenWithFullPrefixAndPartialPrefixKeys() test that is not updated for v2. Is it on purpose?

@stefan-stefanooov
Copy link
Contributor Author

In ContractKeysHTSV1SecurityModelSuite we have burnTokenWithFullPrefixAndPartialPrefixKeys() test that is not updated for v2. Is it on purpose?

Hey, @petreze
I think it is.... the new name is V2SecurityBurnTokenWithFullPrefixAndPartialPrefixKeys.
Am I missing something ?

petreze
petreze previously approved these changes May 7, 2024
Copy link
Contributor

@petreze petreze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Stefan Stefanov <stefan.stefanooov@gmail.com>
@stefan-stefanooov stefan-stefanooov dismissed stale reviews from petreze and fchitakova via 2a5c574 May 9, 2024 14:19
@stefan-stefanooov stefan-stefanooov force-pushed the 12726-write-tests-for-burn-operations branch 2 times, most recently from 2a5c574 to 9296ec0 Compare May 9, 2024 14:19
petreze
petreze previously approved these changes May 10, 2024
Signed-off-by: Stefan Stefanov <stefan.stefanooov@gmail.com>
Signed-off-by: Stefan Stefanov <stefan.stefanooov@gmail.com>
Signed-off-by: Stefan Stefanov <stefan.stefanooov@gmail.com>
Copy link
Contributor

@petreze petreze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@mustafauzunn mustafauzunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kimbor kimbor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@stefan-stefanooov stefan-stefanooov merged commit 989abba into develop May 14, 2024
44 of 45 checks passed
@stefan-stefanooov stefan-stefanooov deleted the 12726-write-tests-for-burn-operations branch May 14, 2024 07:11
stoyanov-st pushed a commit that referenced this pull request May 15, 2024
Signed-off-by: Stefan Stefanov <stefan.stefanooov@gmail.com>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Limechain Work planned for the LimeChain team Test Development Test Development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write tests for burn operations
5 participants