1#!/usr/bin/env bash 2# Copyright 2024 Nordic Semiconductor 3# SPDX-License-Identifier: Apache-2.0 4 5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh 6 7# Test verifies that the subnet bridge can bridge traffic when either the 8# incoming subnet, the outgoing subnet or both subnets are undergoing the 9# Key Refresh Procedure. 10# 11# 3 roles are used in this test: Tester (Tester), Subnet Bridge node, and Mesh node. 12# 13# Subnets topology*: 14# Tester 15# | 16# (subnet 0) 17# | 18# Subnet Bridge (bridges subnets 0 <-> 1) 19# | 20# (subnet 1) 21# | 22# Node 23# 24# (*) - All nodes are in the tester's range 25# 26# Test procedure: 27# 1. Tester configures itself and creates a subnet for the remote node. 28# 2. Tester provisions and configures Subnet Bridge node. 29# 3. Tester provisions and configures the non-bridge node for subnet 1. 30# 4. For each network key: 31# a. Tester starts KRP on relevant nodes for the network key. 32# b. Tester sends DATA and GET messages to the non-bridge node encrypted 33# with the primary key and verifies that the non-bridge node sends a 34# STATUS message with the content of the DATA messages. 35# c. Tester triggers transition to KRP phase 0x02 for relevant nodes for 36# the network key. 37# d. Messaging is verified like in step 4b. 38# e. Tester triggers transition to KRP phase 0x03 for relevant nodes for 39# the network key. 40# f Messaging is verified like in step 4b. 41# 5. Tester starts KRP on all nodes for all network keys 42# 6. Messaging is verified like in step 4b. 43# 7. Tester triggers transition to KRP phase 0x02 for all nodes and net keys. 44# 8. Messaging is verified like in step 4b. 45# 9. Tester triggers transition to KRP phase 0x03 for all nodes and net keys. 46# 10. Messaging is verified like in step 4b. 47 48RunTest mesh_brg_net_key_refresh \ 49 brg_tester_key_refresh brg_bridge_simple brg_device_simple 50 51overlay=overlay_psa_conf 52RunTest mesh_brg_net_key_refresh_psa \ 53 brg_tester_key_refresh brg_bridge_simple brg_device_simple 54