|
19 | 19 | original_processes.reject! { |p| p.name == ADD_V2_COMPONENT_NAME } |
20 | 20 | projects.each do |target_project| |
21 | 21 | target_processes = target_project.processes.to_a |
| 22 | + target_processes.reject! { |p| p.name == ADD_COMPONENT_NAME } |
22 | 23 | expect(target_processes.length).to be original_processes.length |
23 | 24 | original_processes.each do |expected| |
24 | 25 | actual = target_processes.find { |p| p.name == expected.name } |
|
49 | 50 | projects.each do |target_project| |
50 | 51 | blueprint = GoodData::Model::ProjectBlueprint.new(original_project.blueprint) |
51 | 52 | diff = Support::ComparisonHelper.compare_ldm(blueprint, target_project.pid, @prod_rest_client) |
| 53 | + puts "DEBUGG - diff['updateOperations']: #{diff['updateOperations'].inspect}" |
| 54 | + puts "DEBUGG - diff['updateScripts']: #{diff['updateScripts'].inspect}" |
52 | 55 | expect(diff['updateOperations']).to eq([]) |
53 | 56 | expect(diff['updateScripts']).to eq([]) |
54 | 57 | end |
|
62 | 65 |
|
63 | 66 | it 'transfer tags for facts and datasets' do |
64 | 67 | projects.each do |p| |
| 68 | + puts "DEBUGG - p: #{p.inspect}" |
| 69 | + puts "DEBUGG - p.datasets(Support::DATASET_IDENTIFIER).tags.split: #{p.datasets(Support::DATASET_IDENTIFIER).tags.split.inspect}" |
| 70 | + puts "DEBUGG - p.facts(fact_id).tags.split: #{p.facts(fact_id).tags.split.inspect}" |
65 | 71 | expect(p.datasets(Support::DATASET_IDENTIFIER).tags.split).to include('dataset') |
66 | 72 | expect(p.facts(fact_id).tags.split).to include('fact') |
67 | 73 | end |
|
107 | 113 | diff = Support::ComparisonHelper.compare_dashboards(expected, actual) |
108 | 114 | expected_diff = [] |
109 | 115 | expected_diff << ['~', 'meta.tags', 'dashboard', '_lcm_managed_object dashboard'] if lcm_managed_tag |
| 116 | + puts "DEBUGG - expected_diff: #{expected_diff.inspect}" |
| 117 | + puts "DEBUGG - diff: #{diff.inspect}" |
110 | 118 | expect(diff).to eq expected_diff |
111 | 119 | end |
112 | 120 | end |
|
116 | 124 | used_reports = Support::ComparisonHelper.used_reports(original_project) |
117 | 125 | projects.each do |target_project| |
118 | 126 | target_reports = target_project.reports.to_a |
| 127 | + puts "DEBUGG - target_reports: #{target_reports.map(&:identifier).inspect}" |
| 128 | + puts "DEBUGG - used_reports: #{used_reports.map(&:identifier).inspect}" |
119 | 129 | expect(target_reports.length).to be used_reports.length |
120 | 130 | used_reports.each do |report| |
121 | 131 | actual = target_reports.find { |r| r.identifier == report.identifier } |
|
137 | 147 | .uniq(&:identifier) |
138 | 148 | .map(&:identifier) |
139 | 149 | projects.each do |target_project| |
| 150 | + puts "DEBUGG - target_project.metrics.map(&:identifier): #{target_project.metrics.map(&:identifier).inspect}" |
| 151 | + puts "DEBUGG - expected_metrics: #{expected_metrics.inspect}" |
140 | 152 | expect(target_project.metrics.map(&:identifier)).to match_array(expected_metrics) |
141 | 153 | end |
142 | 154 | end |
|
0 commit comments