anchor.diff:               ExpectKeys = [<<"req_time">>,
                              <<"rdbms.chef_sql.fetch_cookbook_versions_time">>,
                              <<"rdbms.chef_sql.fetch_cookbook_versions_count">>,
  -                           <<"couchdb.chef_otto.fetch_org_id_time">>,
  -                           <<"couchdb.chef_otto.fetch_org_id_count">>,
  +                           <<"couchdb.chef_otto.fetch_org_metadata_time">>,
  +                           <<"couchdb.chef_otto.fetch_org_metadata_count">>,
                              <<"couchdb_count">>,
                              <<"couchdb_time">>,
                              <<"rdbms_time">>,
  
positive.code:       {"a user is found SQL",
         fun() ->
                 meck:expect(chef_db_darklaunch, is_enabled,
                             fun(<<"couchdb_clients">>, _) -> false 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),
  
                 User = #chef_user{id = <<"a1">>,
                                   authz_id = <<"b2">>,
  
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,
  