|
| 1 | +%% This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | +%% License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | +%% file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 4 | +%% |
| 5 | +%% Copyright (c) 2007-2025 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved. |
| 6 | +%% |
| 7 | + |
| 8 | +-module(config_schema_SUITE). |
| 9 | + |
| 10 | +-compile(export_all). |
| 11 | + |
| 12 | +all() -> |
| 13 | + [ |
| 14 | + run_snippets |
| 15 | + ]. |
| 16 | + |
| 17 | +%% ------------------------------------------------------------------- |
| 18 | +%% Testsuite setup/teardown. |
| 19 | +%% ------------------------------------------------------------------- |
| 20 | + |
| 21 | +init_per_suite(Config) -> |
| 22 | + rabbit_ct_helpers:log_environment(), |
| 23 | + Config1 = rabbit_ct_helpers:run_setup_steps(Config), |
| 24 | + rabbit_ct_config_schema:init_schemas(rabbitmq_aws, Config1). |
| 25 | + |
| 26 | +end_per_suite(Config) -> |
| 27 | + rabbit_ct_helpers:run_teardown_steps(Config). |
| 28 | + |
| 29 | +init_per_testcase(Testcase, Config) -> |
| 30 | + rabbit_ct_helpers:testcase_started(Config, Testcase), |
| 31 | + Config1 = rabbit_ct_helpers:set_config(Config, [ |
| 32 | + {rmq_nodename_suffix, Testcase} |
| 33 | + ]), |
| 34 | + rabbit_ct_helpers:run_steps(Config1, |
| 35 | + rabbit_ct_broker_helpers:setup_steps() ++ |
| 36 | + rabbit_ct_client_helpers:setup_steps()). |
| 37 | + |
| 38 | +end_per_testcase(Testcase, Config) -> |
| 39 | + Config1 = rabbit_ct_helpers:run_steps(Config, |
| 40 | + rabbit_ct_client_helpers:teardown_steps() ++ |
| 41 | + rabbit_ct_broker_helpers:teardown_steps()), |
| 42 | + rabbit_ct_helpers:testcase_finished(Config1, Testcase). |
| 43 | + |
| 44 | +%% ------------------------------------------------------------------- |
| 45 | +%% Testcases. |
| 46 | +%% ------------------------------------------------------------------- |
| 47 | + |
| 48 | +run_snippets(Config) -> |
| 49 | + ok = rabbit_ct_broker_helpers:rpc(Config, 0, |
| 50 | + ?MODULE, run_snippets1, [Config]). |
| 51 | + |
| 52 | +run_snippets1(Config) -> |
| 53 | + rabbit_ct_config_schema:run_snippets(Config). |
0 commit comments