-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add in-equivalence tests for system accounts
Signed-off-by: Bilyana Gospodinova <bilyana.gospodinova14@gmail.com>
- Loading branch information
1 parent
e4a28be
commit b2618d6
Showing
8 changed files
with
343 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 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 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
18 changes: 18 additions & 0 deletions
18
...java/com/hedera/mirror/test/e2e/acceptance/response/GeneralContractExecutionResponse.java
This file contains 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,18 @@ | ||
package com.hedera.mirror.test.e2e.acceptance.response; | ||
|
||
import com.hedera.mirror.test.e2e.acceptance.util.ContractCallResponseWrapper; | ||
|
||
/** | ||
* This is a class that represents a response either from the consensus node (with initialized transactionId, | ||
* networkResponse, errorMessage) or from the mirror node (with initialized contractCallResponse). | ||
* This is needed for the NetworkAdapter logic. | ||
*/ | ||
public record GeneralContractExecutionResponse(String transactionId, NetworkTransactionResponse networkResponse, String errorMessage, ContractCallResponseWrapper contractCallResponse) { | ||
public GeneralContractExecutionResponse(ContractCallResponseWrapper contractCallResponse) { | ||
this(null, null, null, contractCallResponse); | ||
} | ||
|
||
public GeneralContractExecutionResponse(String transactionId, NetworkTransactionResponse networkResponse, String errorMessage) { | ||
this(transactionId, networkResponse, errorMessage, null); | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...t/src/test/java/com/hedera/mirror/test/e2e/acceptance/response/MirrorActionsResponse.java
This file contains 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,67 @@ | ||
/* | ||
* Copyright (C) 2023 Hedera Hashgraph, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.hedera.mirror.test.e2e.acceptance.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class MirrorActionsResponse { | ||
private List<Action> actions; | ||
|
||
@Data | ||
public static class Action { | ||
@JsonProperty("call_depth") | ||
private int callDepth; | ||
|
||
@JsonProperty("call_operation_type") | ||
private String callOperationType; | ||
|
||
@JsonProperty("call_type") | ||
private String callType; | ||
|
||
private String caller; | ||
|
||
@JsonProperty("caller_type") | ||
private String callerType; | ||
|
||
private String from; | ||
private long gas; | ||
|
||
@JsonProperty("gas_used") | ||
private long gasUsed; | ||
|
||
private int index; | ||
private String input; | ||
|
||
private String recipient; | ||
|
||
@JsonProperty("recipient_type") | ||
private String recipientType; | ||
|
||
@JsonProperty("result_data") | ||
private String resultData; | ||
|
||
@JsonProperty("result_data_type") | ||
private String resultDataType; | ||
|
||
private String timestamp; | ||
private String to; | ||
private long value; | ||
} | ||
} |
This file contains 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
Oops, something went wrong.