@@ -44,13 +44,6 @@ RSpec.describe AlertManagement::MetricImages::UploadService do
project.add_developer(current_user)
end
it_behaves_like'no metric saved, an error given','You are not authorized to upload metric images'
context'with license'do
beforedo
stub_licensed_features(alert_metric_upload: true)
end
it_behaves_like'uploads the metric'
context'no url given'do
...
...
@@ -71,7 +64,7 @@ RSpec.describe AlertManagement::MetricImages::UploadService do
}
end
it_behaves_like'no metric saved, an error given',/File does not have a supported extension. Only png, jpg, jpeg, gif, bmp, tiff, ico, and webp are supported/
it_behaves_like'no metric saved, an error given',/File does not have a supported extension. Only png, jpg, jpeg, gif, bmp, tiff, ico, and webp are supported/# rubocop: disable Layout/LineLength
end
context'user is guest'do
...
...
@@ -83,5 +76,4 @@ RSpec.describe AlertManagement::MetricImages::UploadService do