[Test] spec/services/admin/plan_limits/update_service_spec.rb | Admin::PlanLimits::UpdateService when current_user is an admin when the update is successful logs the allowed attributes only
Test metadata (don't modify)
| Field | Value |
|---|---|
| File URL | spec/services/admin/plan_limits/update_service_spec.rb#L47 |
| Filename | spec/services/admin/plan_limits/update_service_spec.rb |
| Description | Admin::PlanLimits::UpdateService when current_user is an admin when the update is successful logs the allowed attributes only |
| Test level | unit |
| Hash | 55a5a5d29b763f612c22365fc225fe9f508d74656 |
| Duration | 0.34 seconds |
| Expected duration | < 45.4 seconds |
Stack trace
Failure/Error:
expect(limits.limits_history).to eq(
{ "enforcement_limit" =>
[{ "user_id" => user.id, "username" => user.username,
"timestamp" => current_timestamp, "value" => 100 }],
"notification_limit" =>
[{ "user_id" => user.id, "username" => user.username,
"timestamp" => current_timestamp, "value" => 95 }],
"storage_size_limit" =>
[{ "user_id" => user.id, "username" => user.username,
"timestamp" => current_timestamp, "value" => 90 }] }
expected: {"enforcement_limit"=>[{"timestamp"=>1703558398, "user_id"=>1331, "username"=>"user777", "value"=>100...orage_size_limit"=>[{"timestamp"=>1703558398, "user_id"=>1331, "username"=>"user777", "value"=>90}]}
got: {"enforcement_limit"=>[{"timestamp"=>1703558397, "user_id"=>1331, "username"=>"user777", "value"=>100...orage_size_limit"=>[{"timestamp"=>1703558397, "user_id"=>1331, "username"=>"user777", "value"=>90}]}
(compared using ==)
Diff:
@@ -1,4 +1,4 @@
-"enforcement_limit" => [{"timestamp"=>1703558398, "user_id"=>1331, "username"=>"user777", "value"=>100}],
-"notification_limit" => [{"timestamp"=>1703558398, "user_id"=>1331, "username"=>"user777", "value"=>95}],
-"storage_size_limit" => [{"timestamp"=>1703558398, "user_id"=>1331, "username"=>"user777", "value"=>90}],
+"enforcement_limit" => [{"timestamp"=>1703558397, "user_id"=>1331, "username"=>"user777", "value"=>100}],
+"notification_limit" => [{"timestamp"=>1703558397, "user_id"=>1331, "username"=>"user777", "value"=>95}],
+"storage_size_limit" => [{"timestamp"=>1703558397, "user_id"=>1331, "username"=>"user777", "value"=>90}],
Reports (3)
- 2023-12-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/5820236944 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1119003447)
- 2023-12-29: https://gitlab.com/gitlab-org/gitlab/-/jobs/5833946296 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1121974182)
- 2023-12-29: https://gitlab.com/gitlab-org/gitlab/-/jobs/5833946330 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1121974182)
Edited by Ghost User