1#!/usr/bin/env bash
2# Copyright 2022 Nordic Semiconductor
3# SPDX-License-Identifier: Apache-2.0
4
5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
6
7# Test a node re-provisioning through Remote Provisioning models. Procedure:
8# 1. A provisioner with the RPR client provisions itself;
9# 2. The provisioner provisions a device with the RPR server;
10# 3. The provisioner starts scanning for an unprovisioned device through the node with RPR server;
11# 4. The provisioner finds an unprovisioned device and provisions it;
12# 5. The provisioner configures the health server on the recently provisioned device and sends Node
13#   Reset;
14# 6. Repeat steps 3-5 multiple times.
15RunTest mesh_prov_pb_remote_reprovision \
16	prov_provisioner_pb_remote_client_reprovision \
17	prov_device_pb_remote_server_unproved \
18	prov_device_pb_adv_reprovision
19
20overlay=overlay_psa_conf
21RunTest mesh_prov_pb_remote_reprovision_psa \
22	prov_provisioner_pb_remote_client_reprovision \
23	prov_device_pb_remote_server_unproved \
24	prov_device_pb_adv_reprovision
25