---
# System prepended metadata

title: Testing
tags: [Firovm bridge testing 2]

---

---
tags: Firovm bridge testing 2
---

# Testing

## Seting up

1. create **user1**, **user2**(internal-wallet) and **bridge** address then create 2 nodes for each network following:

    **NODE1 - Firo bridge node**: hold user2 and bridge keys
    **NODE2 - Firo user node**: hold user1 key
    **NODE3 - Firo VM bridge node**: hold user2 and bridge keys
    **NODE4 - Firo VM user node**: hold user1 key
    
2. Put some fund for all addresses for both networks

## Functional

## 1. Issue

### 1.1 Issue from internal-wallet address

**Scenario**: send from user2 to bridge address via **NODE1**
**Expected**: FVM should be added to account **user2**
**Pass**: Yes

### 1.2 Issue from external-wallet address

**Scenario**: send from user1 to bridge address via **NODE2**
**Expected**: FVM should be added to account **user1**
**Pass**: No
**Result**: the request is not detected 

## 2. Redeem

### 2.1 Redeem from internal-wallet address

**Scenario**: send from user2 to bridge address via **NODE3**
**Expected**: Firo should be added to account **user2**
**Pass**: Yes

### 2.1 Redeem from internal-wallet address

**Scenario**: send from user1 to bridge address via **NODE4**
**Expected**: Firo should be added to account **user1**
**Pass**: Yes

## 3. Resolve requests when the process resumimg

### 3.1 Issue

**Scenario**: send from user2 to bridge address via **NODE1** while bridge is not running then start the **bridge**
**Expected**: All issues should be detected and executed
**Pass**: no
**Result**: those issues are ignored

### 3.2 Redeem

**Scenario**: send from user1 to bridge address via **NODE4** while bridge is not running then start the **bridge**
**Expected**: All redeems should be detected and executed
**Pass**: no
**Result**: those redeems are ignored
