-
Notifications
You must be signed in to change notification settings - Fork 7
/
publish_service.feature
33 lines (31 loc) · 1.83 KB
/
publish_service.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Publish example service
Scenario: Run all services
Given Ethereum network is running on port 8545
Given Contracts are deployed using Truffle
Given IPFS is running with API port 5002 and Gateway port 8081
Given snet is configured local rpc
| Ethereum RPC port | user name | IPFS port |
| 8545 | "snet-user" | 5002 |
Given Organization is added
| organization |etcd endpoint|group name|type|
| ExampleOrganization |http://127.0.0.1:2379|default_group|individual|
Scenario: Publish example-service-services
When example-service service is registered
| name | display name | organization name | daemon port |group name|
| ExampleService | Example Service | ExampleOrganization | 8090 |default_group|
When example-service service snet-daemon config file is created
| name | organization name | daemon port | price |daemon group|
| ExampleService | ExampleOrganization | 8090 | 10 |default_group|
When example-service service is running
Then example-service make a call using payment channel
| group name | organization name | daemon port |service name|
| default_group | ExampleOrganization | 8090 |ExampleService|
Then example-service claim channel by treasurer server
| daemon port |
| 8090 |
Then example-service make a call using payment channel
| group name | organization name | daemon port |service name|
| default_group | ExampleOrganization | 8090 |ExampleService|
Then example-service claim channel by treasurer server
| daemon port |
| 8090 |