Skip to content

Commit

Permalink
Leaving the solution provider test for now and just removing the bill…
Browse files Browse the repository at this point in the history
…ing part
  • Loading branch information
sameh-farouk committed Aug 26, 2024
1 parent db42dce commit c62a30f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions substrate-node/tests/integration_tests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c62a30f

Please sign in to comment.