From 05843b567e11e7a5fe34f1e0faabf302c7d2d87b Mon Sep 17 00:00:00 2001 From: paolino Date: Wed, 29 Nov 2023 10:30:08 +0000 Subject: [PATCH] Make fetching from smash server maintenance action pending --- test/e2e/spec/shelley_spec.rb | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/test/e2e/spec/shelley_spec.rb b/test/e2e/spec/shelley_spec.rb index db329520a16..ec8b1313757 100644 --- a/test/e2e/spec/shelley_spec.rb +++ b/test/e2e/spec/shelley_spec.rb @@ -447,8 +447,7 @@ describe 'Stake Pools GC Maintenance' do matrix = [{ 'direct' => 'not_applicable' }, - { 'none' => 'not_applicable' }, - { ENV.fetch('TESTS_E2E_SMASH', nil) => 'has_run' }] + { 'none' => 'not_applicable' }] matrix.each do |tc| it "GC metadata maintenance action on metadata source #{tc}" do settings = CW.misc.settings @@ -467,6 +466,27 @@ end end end + describe 'Stake Pools GC Maintenance' do + matrix = [{ ENV.fetch('TESTS_E2E_SMASH', nil) => 'has_run' }] + matrix.each do |tc| + it "GC metadata maintenance action on metadata source #{tc}" do + pending "GC metadata maintenance action on metadata source #{ENV.fetch('TESTS_E2E_SMASH', nil)}" + settings = CW.misc.settings + pools = SHELLEY.stake_pools + + s = settings.update({ pool_metadata_source: tc.keys.first }) + expect(s).to be_correct_and_respond 204 + + t = pools.trigger_maintenance_actions({ maintenance_action: 'gc_stake_pools' }) + expect(t).to be_correct_and_respond 204 + + eventually "Maintenance action has status = #{tc.values.first}" do + r = pools.view_maintenance_actions + (r.code == 200) && (r.to_s.include? tc.values.first) + end + end + end + end it 'I could quit stake pool - if I was delegating' do id = create_shelley_wallet