anchor.diff:      application:set_env(oidcc, cert_depth, 5),
       application:set_env(oidcc, cacertfile, "/etc/ssl/certs/ca-certificates.crt"),
       {ok, _} = application:ensure_all_started(watts),
  -    Conf.
  -
  -end_per_suite(Conf) ->
  -    ok = application:stop(watts),
  -    Conf.
  -
  -%% init_per_group(_Group, Conf) ->
  -%%     Conf.
  -%%
  -%% end_per_group(_Group, Conf) ->
  -%%     Conf.
  -%%
  -%% init_per_testcase(_TestCase, Conf) ->
  -%%      mock_oidcc(),
  -%%      Conf.
  -%%
  -%% end_per_testcase(_TestCase, Conf) ->
  -%%     unmock_oidcc(),
  -%%     Conf.
  -
  -
  +    ok.
  +
  +
  +config_db(sqlite) ->
  +    ?SETCONFIG(database_type, sqlite),
  +    ?SETCONFIG(persistent_module, watts_data_sqlite),
  +    ?SETCONFIG(sqlite_db, "/tmp/watts_common_test/watts_ct.db");
  +config_db(mnesia) ->
  +    ?SETCONFIG(database_type, mnesia),
  +    ?SETCONFIG(persistent_module, watts_data_mnesia),
  +    ?SETCONFIG(mnesia_dir, "/tmp/watts_common_test/mnesia").
   service_config(_Config) ->
       {ok, Services} = watts_service:get_list(),
       ct:log("service configs:~n~p~n", [Services]),
  
positive.code: -include("watts.hrl").
  
  -export([all/0,
           %% groups/0,
           %% group/1,
           %% suite/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,
  
  
negative.code: %%     [].
  
  init_per_suite(Conf) ->
      Conf.
  
  
  
  
  end_per_suite(Conf) ->
      Conf.
  
  init_per_group(Group, Conf) ->
      setup_group(Group),
      Conf.
  
  end_per_group(_Group, Conf) ->
      ok = application:stop(watts),
      ok = application:stop(jobs),
      ok = application:stop(ranch),
      ok = application:stop(cowboy),
      ok = application:stop(oidcc),
      ok = application:stop(oidcc_cowboy),
      Conf.
  
  %% init_per_testcase(_TestCase, Conf) ->
  %%      mock_oidcc(),
  %%      Conf.
  %%
  %% end_per_testcase(_TestCase, Conf) ->
  %%     unmock_oidcc(),
  %%     Conf.
  
  
  setup_group(DbType) ->
      config_db(DbType),
      ServiceList = [#{allow_same_state => false,
                    authz => #{allow => [{any,<<"sub">>,any,true}],
                      forbid => [],
  