anchor.diff:                           [{ok, bucketType, memcached}
                             | Candidates1];
                        membase ->
  -                         ReplicasNumResult = parse_validate_replicas_number(proplists:get_value("replicaNumber", Params), IsNew),
  +                         ReplicasNumResult =
  +                             validate_with_missing(
  +                               proplists:get_value("replicaNumber", Params),
  +                               %% replicaNumber doesn't have
  +                               %% default. Has to be given for
  +                               %% creates, but may be omitted for
  +                               %% updates. Later is for backwards
  +                               %% compat, the former is from earlier
  +                               %% code and stricter requirements is
  +                               %% IMO ok to keep.
  +                               undefined,
  +                               IsNew,
  +                               fun parse_validate_replicas_number/1),
                            [{ok, bucketType, membase},
                             ReplicasNumResult,
                             case IsNew of
  
positive.code:                     {auth_type, sasl},
                      {sasl_password, "asdasd"}]}],
      %% it is possible to create bucket with ok params
      {_OK1, E1} = basic_bucket_params_screening(true, "mcd",
                                                 [{"bucketType", "membase"},
                                                  {"authType", "sasl"}, {"saslPassword", ""},
                                                  {"ramQuotaMB", "400"}, {"replicaNumber", "2"}],
                                                 tl(AllBuckets)),
      [] = E1,
  
      %% it is not possible to create bucket with duplicate name
      {_OK2, E2} = basic_bucket_params_screening(true, "mcd",
  
negative.code:     {sasl_password, "password"} = lists:keyfind(sasl_password, 1, OK6),
      {auth_type, sasl} = lists:keyfind(auth_type, 1, OK6),
      [] = E6,
      ?assertEqual(false, lists:keyfind(num_threads, 1, OK6)),
      ?assertEqual(false, lists:keyfind(eviction_policy, 1, OK6)),
      ?assertEqual(false, lists:keyfind(replica_index, 1, OK6)),
  
      %% its not possible to update memcached bucket ram quota
      {_OK7, E7} = basic_bucket_params_screening(false, "mcd",
  