From 9149b0a5f58a182e0cd2f3578052aec8a2ad92e8 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Mon, 31 May 2021 15:39:31 +0200 Subject: [PATCH] Sanity e2e check for utxo snapshot --- test/e2e/Gemfile | 2 +- test/e2e/Gemfile.lock | 4 ++-- test/e2e/spec/byron_spec.rb | 5 +++++ test/e2e/spec/shelley_spec.rb | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/test/e2e/Gemfile b/test/e2e/Gemfile index 4fffa92a385..d66bd8c28a2 100644 --- a/test/e2e/Gemfile +++ b/test/e2e/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -gem 'cardano_wallet', '~> 0.3.8' +gem 'cardano_wallet', '~> 0.3.9' # gem 'cardano_wallet', path: "~/wb/cardano_wallet" gem 'bip_mnemonic', '0.0.4' gem 'rake', '12.3.3' diff --git a/test/e2e/Gemfile.lock b/test/e2e/Gemfile.lock index c640202459b..c5f06cdd864 100644 --- a/test/e2e/Gemfile.lock +++ b/test/e2e/Gemfile.lock @@ -2,7 +2,7 @@ GEM remote: https://rubygems.org/ specs: bip_mnemonic (0.0.4) - cardano_wallet (0.3.8) + cardano_wallet (0.3.9) httparty (~> 0.18.0) diff-lcs (1.4.4) httparty (0.18.1) @@ -32,7 +32,7 @@ PLATFORMS DEPENDENCIES bip_mnemonic (= 0.0.4) - cardano_wallet (~> 0.3.8) + cardano_wallet (~> 0.3.9) rake (= 12.3.3) rspec (= 3.10.0) diff --git a/test/e2e/spec/byron_spec.rb b/test/e2e/spec/byron_spec.rb index 96f2a4a58b7..9c7c0082a4b 100644 --- a/test/e2e/spec/byron_spec.rb +++ b/test/e2e/spec/byron_spec.rb @@ -72,7 +72,12 @@ id = create_byron_wallet utxo = BYRON.wallets.utxo(id) expect(utxo).to be_correct_and_respond 200 + end + it "Can see utxo snapshot" do + id = create_byron_wallet + utxo = BYRON.wallets.utxo_snapshot(id) + expect(utxo).to be_correct_and_respond 200 end end diff --git a/test/e2e/spec/shelley_spec.rb b/test/e2e/spec/shelley_spec.rb index 93dabe58204..0835ce82e5e 100644 --- a/test/e2e/spec/shelley_spec.rb +++ b/test/e2e/spec/shelley_spec.rb @@ -111,6 +111,12 @@ utxo = SHELLEY.wallets.utxo(id) expect(utxo).to be_correct_and_respond 200 end + + it "Can see utxo snapshot" do + id = create_shelley_wallet + utxo = SHELLEY.wallets.utxo_snapshot(id) + expect(utxo).to be_correct_and_respond 200 + end end describe CardanoWallet::Shelley::Addresses do