1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%% Copyright (c) 2018-2021 VMware, Inc. or its affiliates. All rights reserved.
%%
-module(feature_flags_with_unpriveleged_user_SUITE).
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
-export([suite/0,
all/0,
groups/0,
init_per_suite/1,
end_per_suite/1,
init_per_group/2,
end_per_group/2,
init_per_testcase/2,
end_per_testcase/2,
enable_feature_flag_when_ff_file_is_unwritable/1
]).
suite() ->
[{timetrap, {minutes, 15}}].
all() ->
[
{group, enabling_on_single_node},
{group, enabling_in_cluster}
].
groups() ->
[
{enabling_on_single_node, [],
[
enable_feature_flag_when_ff_file_is_unwritable
]},
{enabling_in_cluster, [],
[
enable_feature_flag_when_ff_file_is_unwritable
]}
].
%% This suite exists to allow running a portion of the feature_flags_SUITE
%% under separate conditions in ci
init_per_suite(Config) ->
feature_flags_SUITE:init_per_suite(Config).
end_per_suite(Config) ->
feature_flags_SUITE:end_per_suite(Config).
init_per_group(Group, Config) ->
feature_flags_SUITE:init_per_group(Group, Config).
end_per_group(Group, Config) ->
feature_flags_SUITE:end_per_group(Group, Config).
init_per_testcase(Testcase, Config) ->
feature_flags_SUITE:init_per_testcase(Testcase, Config).
end_per_testcase(Testcase, Config) ->
feature_flags_SUITE:end_per_testcase(Testcase, Config).
%% -------------------------------------------------------------------
%% Testcases.
%% -------------------------------------------------------------------
enable_feature_flag_when_ff_file_is_unwritable(Config) ->
feature_flags_SUITE:enable_feature_flag_when_ff_file_is_unwritable(Config).
|