From c62a30f9bb2066374e1d8848bcb384560f9f47a5 Mon Sep 17 00:00:00 2001 From: Sameh Abouel-saad Date: Mon, 26 Aug 2024 21:11:28 +0300 Subject: [PATCH] Leaving the solution provider test for now and just removing the billing part --- substrate-node/tests/integration_tests.robot | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/substrate-node/tests/integration_tests.robot b/substrate-node/tests/integration_tests.robot index 031981f84..5ceb4c7ca 100644 --- a/substrate-node/tests/integration_tests.robot +++ b/substrate-node/tests/integration_tests.robot @@ -439,6 +439,35 @@ Test Billing Tear Down Multi Node Network +Test Solution Provider + [Documentation] Testing creating and validating a solution provider + Setup Multi Node Network log_name=test_create_approve_solution_provider amt=${2} + + # Setup + Setup Predefined Account who=Alice + Setup Predefined Account who=Bob + Setup Predefined Account who=Charlie + Setup Predefined Account who=Dave + Create Farm name=alice_farm + Create Node farm_id=${1} hru=${1024} sru=${512} cru=${8} mru=${16} longitude=2.17403 latitude=41.40338 country=Belgium city=Ghent + + # lets add two providers: charlie gets 30% and Dave 10% + ${providers} = Create Dictionary Charlie ${30} Dave ${10} + Create Solution Provider description=mysolutionprovider providers=${providers} + ${solution_provider} = Get Solution Provider id=${1} + Should Not Be Equal ${solution_provider} ${None} + Should Be Equal ${solution_provider}[description] mysolutionprovider + Should Be Equal ${solution_provider}[approved] ${False} + Length Should Be ${solution_provider}[providers] ${2} + + # The solution provider has to be approved + Approve Solution Provider solution_provider_id=${1} who=Council + ${solution_provider} = Get Solution Provider id=${1} + Should Not Be Equal ${solution_provider} ${None} + Should Be Equal ${solution_provider}[approved] ${True} + + Tear Down Multi Node Network + Test Client Go integration tests [Documentation] Run go client integration tests Setup Multi Node Network log_name=test_client_go_integration_tests