Skip to content

Commit

Permalink
Make fetching from smash server maintenance action pending
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Nov 30, 2023
1 parent 021cf7d commit 05843b5
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions test/e2e/spec/shelley_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 05843b5

Please sign in to comment.