anchor.diff:        {"a user is found SQL",
          fun() ->
                  meck:expect(chef_db_darklaunch, is_enabled,
  -                           fun(<<"couchdb_clients">>, _) -> false end),
  +                           fun(<<"couchdb_clients">>, _) -> false;
  +                              (<<"couchdb_organizations">>, _) -> true
  +                           end),
   
                  meck:expect(chef_otto, connect, fun() -> otto_connect end),
  -               meck:expect(chef_otto, fetch_org_id,
  -                           fun(_, <<"mock-org">>) -> <<"mock-org-id-123">> end),
  +
  +               %%meck:expect(chef_otto, fetch_org_id,
  +               %%            fun(_, <<"mock-org">>) -> <<"mock-org-id-123">> end),
   
                  User = #chef_user{id = <<"a1">>,
                                    authz_id = <<"b2">>,
  
positive.code:       {"a client is found SQL cert",
         fun() ->
                 meck:expect(chef_otto, connect, fun() -> otto_connect end),
                 meck:expect(chef_otto, fetch_org_id,
                             fun(_, <<"mock-org">>) ->
                                     <<"mock-org-id-123">>
                             end),
                 Client = #chef_client{id = <<"mock-client-id">>,
                                       authz_id = <<"mock-client-authz-id">>,
                                       org_id = <<"org-id-123">>,
  
negative.code:      fun() ->
               meck:new(chef_sql),
               meck:new(chef_otto),
               meck:new(chef_db_darklaunch),
               meck:expect(chef_otto, connect, fun() -> otto_connect end),
               meck:expect(chef_db_darklaunch, is_enabled,
                           fun(<<"couchdb_organizations">>, _) -> true end),
               meck:expect(chef_otto, fetch_org_metadata,
                           fun(_, <<"mock-org">>) ->
                                   {<<"mock-org-id-123">>, <<"mock-org-authz-123">>}
                           end),
               set_app_env()
       end,
  