Skip to content

Commit

Permalink
(CAT-2225) Update expected error message to account for changes to JSON
Browse files Browse the repository at this point in the history
The error message being returned has changed, as the PDK is merely a wrapper for the JSON gem in this case and the error message is still understandable, we will simply update what is expected by the tests.
  • Loading branch information
david22swan committed Feb 12, 2025
1 parent 7f14032 commit 8cf874b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
source: 'metadata-syntax',
state: :failure,
severity: 'error',
message: a_string_matching(/unexpected token at/)
message: a_string_matching(/expected \'\:\' after object key/)

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 3.2) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 3.2) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 3.2) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 2.7) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 2.7) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal

Check failure on line 81 in spec/unit/pdk/validate/metadata/metadata_syntax_validator_spec.rb

View workflow job for this annotation

GitHub Actions / spec (ruby 2.7) / spec

Style/RedundantRegexpEscape: Redundant escape inside regexp literal
})
expect(return_value).to eq(1)
end
Expand Down

0 comments on commit 8cf874b

Please sign in to comment.