diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-25 15:07:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-25 15:07:22 +0300 |
commit | fc4faf47ac4e5f1ddc40640c42c32405c38c9455 (patch) | |
tree | f6d8642f577eda485efc0570300b5da28f0a7dfe /scripts | |
parent | 91a7f1897e7cb14d60c2aaf3afa76ebdc879d939 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/verify-tff-mapping | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/verify-tff-mapping b/scripts/verify-tff-mapping index 496e0b75f84..4ce0ec306d7 100755 --- a/scripts/verify-tff-mapping +++ b/scripts/verify-tff-mapping @@ -43,8 +43,13 @@ tests = [ { explanation: 'https://gitlab.com/gitlab-org/gitlab/-/issues/368628', - source: 'lib/gitlab/usage_data_counters/foo.rb', - expected: ['spec/lib/gitlab/usage_data_spec.rb'] + source: 'lib/gitlab/usage_data_counters/wiki_page_counter.rb', + expected: ['spec/lib/gitlab/usage_data_spec.rb', 'spec/lib/gitlab/usage_data_counters/wiki_page_counter_spec.rb'] + }, + { + explanation: 'EE usage counters map to usage data spec', + source: 'ee/lib/gitlab/usage_data_counters/licenses_list.rb', + expected: ['ee/spec/lib/gitlab/usage_data_counters/licenses_list_spec.rb', 'spec/lib/gitlab/usage_data_spec.rb'] }, { @@ -252,7 +257,12 @@ class MappingTest end def failure_message - "#{explanation}: #{source}: Expected #{expected_set.to_a}, got #{actual_set.to_a}." + <<~MESSAGE + #{explanation}: + Source #{source} + Expected #{expected_set.to_a} + Actual #{actual_set.to_a} + MESSAGE end private @@ -273,6 +283,7 @@ failed_tests = results.select(&:failed?) if failed_tests.any? puts <<~MESSAGE tff mapping verification failed: + #{failed_tests.map(&:failure_message).join("\n")} MESSAGE |