TestNodeConfig tests the node configuration
()
| 48 | |
| 49 | // TestNodeConfig tests the node configuration |
| 50 | func (t *Tester) TestNodeConfig() error { |
| 51 | log.Println("Testing node configuration") |
| 52 | // Perform tests on the node configuration |
| 53 | if t.nodeConfig.id == "" { |
| 54 | return fmt.Errorf("node ID is empty") |
| 55 | } |
| 56 | |
| 57 | for _, neighbor := range t.nodeConfig.neighbors { |
| 58 | if neighbor.id == "" { |
| 59 | return fmt.Errorf("neighbor ID is empty") |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | return nil |
| 64 | } |
| 65 | |
| 66 | // Test tests both the satellite and node configurations |
| 67 | func (t *Tester) Test() error { |