it_behaves_like'Debian repository write endpoint','PUT distribution request',:success,/^{.*"codename":"existing-codename",.*"suite":"my-suite",/,authenticate_non_public: false
context'with invalid parameters'do
let(:api_params){{suite: distribution.codename}}
it_behaves_like'Debian repository write endpoint','GET request',:bad_request,/^{"message":{"suite":\["has already been taken as Codename"\]}}$/,authenticate_non_public: false