|
| 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) 2018-2021 VMware, Inc. or its affiliates. All rights reserved. |
| 6 | +%% |
| 7 | + |
| 8 | +-module(feature_flags_with_unpriveleged_user_SUITE). |
| 9 | + |
| 10 | +-include_lib("common_test/include/ct.hrl"). |
| 11 | +-include_lib("eunit/include/eunit.hrl"). |
| 12 | + |
| 13 | +-export([suite/0, |
| 14 | + all/0, |
| 15 | + groups/0, |
| 16 | + init_per_suite/1, |
| 17 | + end_per_suite/1, |
| 18 | + init_per_group/2, |
| 19 | + end_per_group/2, |
| 20 | + init_per_testcase/2, |
| 21 | + end_per_testcase/2, |
| 22 | + |
| 23 | + enable_feature_flag_when_ff_file_is_unwritable/1 |
| 24 | + ]). |
| 25 | + |
| 26 | +suite() -> |
| 27 | + [{timetrap, {minutes, 15}}]. |
| 28 | + |
| 29 | +all() -> |
| 30 | + [ |
| 31 | + {group, enabling_on_single_node}, |
| 32 | + {group, enabling_in_cluster} |
| 33 | + ]. |
| 34 | + |
| 35 | +groups() -> |
| 36 | + [ |
| 37 | + {enabling_on_single_node, [], |
| 38 | + [ |
| 39 | + enable_feature_flag_when_ff_file_is_unwritable |
| 40 | + ]}, |
| 41 | + {enabling_in_cluster, [], |
| 42 | + [ |
| 43 | + enable_feature_flag_when_ff_file_is_unwritable |
| 44 | + ]} |
| 45 | + ]. |
| 46 | + |
| 47 | +%% This suite exists to allow running a portion of the feature_flags_SUITE |
| 48 | +%% under separate conditions in ci |
| 49 | + |
| 50 | +init_per_suite(Config) -> |
| 51 | + feature_flags_SUITE:init_per_suite(Config). |
| 52 | + |
| 53 | +end_per_suite(Config) -> |
| 54 | + feature_flags_SUITE:end_per_suite(Config). |
| 55 | + |
| 56 | + |
| 57 | +init_per_group(Group, Config) -> |
| 58 | + feature_flags_SUITE:init_per_group(Group, Config). |
| 59 | + |
| 60 | +end_per_group(Group, Config) -> |
| 61 | + feature_flags_SUITE:end_per_group(Group, Config). |
| 62 | + |
| 63 | +init_per_testcase(Testcase, Config) -> |
| 64 | + feature_flags_SUITE:init_per_testcase(Testcase, Config). |
| 65 | + |
| 66 | +end_per_testcase(Testcase, Config) -> |
| 67 | + feature_flags_SUITE:end_per_testcase(Testcase, Config). |
| 68 | + |
| 69 | +%% ------------------------------------------------------------------- |
| 70 | +%% Testcases. |
| 71 | +%% ------------------------------------------------------------------- |
| 72 | + |
| 73 | +enable_feature_flag_when_ff_file_is_unwritable(Config) -> |
| 74 | + feature_flags_SUITE:enable_feature_flag_when_ff_file_is_unwritable(Config). |
0 commit comments