Skip to content

Commit

Permalink
Chore: Create deleteAccount.MD
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuel Pargov <bamzedev@gmail.com>
  • Loading branch information
bamzedev committed Aug 30, 2023
1 parent 6c79036 commit af29f73
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test-specifications/deleteAccount.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Deleter account - Test specification

## Description:
This test specification for delete acount is to be one of many for testing the functionality of the Hedera SDKs. The SDK under test will use the language specific JSON-RPC server return responses back to the test driver.

## Design:
Each test within the test specification is linked to one of the properties within AccountDeleteTransaction. Each property is tested with a mix of boundaries. The inputs for each test are a range of valid, minimum, maximum, negative and invalid values for the method. The expected response of a passed test can be a correct error or a results of node queries. Success on the consensus node can be obtained by a queries such as AccountInfoQuery or AccountBalanceQuery, and on the mirror node through the rest API. Error codes are obtained from the response code proto files.

**Transaction properties:**

[https://docs.hedera.com/hedera/sdks-and-apis/sdks/cryptocurrency/delete-an-account](https://docs.hedera.com/hedera/sdks-and-apis/sdks/cryptocurrency/delete-an-account)

**Crypto create protobufs:**

[https://github.com/hashgraph/hedera-protobufs/blob/main/services/crypto_delete.proto](https://github.com/hashgraph/hedera-protobufs/blob/main/services/crypto_delete.proto)

**Response codes:**

[https://github.com/hashgraph/hedera-protobufs/blob/main/services/response_code.proto](https://github.com/hashgraph/hedera-protobufs/blob/main/services/response_code.proto)

## Initialisation:

```jsx
new AccountCreateTransaction()

//example

const transaction = new AccountDeleteTransaction()
.setAccountId(accountId)
```

## Properties

### **AccountID:**

- The AccountID of the account to be deleted

| Test no | Name | Input | Expected response |
| ------- | -------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | deleteAccount | AccountID to delete and a recipient of funds account | The account deletion succeeds. The recipient account received the funds |

0 comments on commit af29f73

Please sign in to comment.