Skip to content

Commit

Permalink
Merge pull request singnet#45 from anandrgitnirman/master
Browse files Browse the repository at this point in the history
singnet#44 - Support organization
  • Loading branch information
anandrgitnirman authored Dec 12, 2019
2 parents 43b2dbd + e08668a commit 46d0dd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/publish_service.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Feature: Publish example service
| Ethereum RPC port | user name | IPFS port |
| 8545 | "snet-user" | 5002 |
Given Organization is added:
| organization |etcd endpoint|group name|
| ExampleOrganization |http://127.0.0.1:2379|default_group|
| 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
Expand Down
3 changes: 2 additions & 1 deletion setup_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ func organizationIsAdded(table *gherkin.DataTable) (err error) {
organization := getTableValue(table, "organization")
etcd_endpoint := getTableValue(table, "etcd endpoint")
group_name := getTableValue(table, "group name")
org_type := getTableValue(table, "type")

//snet organization add-group group1 0x42A605c07EdE0E1f648aB054775D6D4E38496144 5.5.6.7:8089

err = NewCommand().
Run("snet organization metadata-init %s %s", organization, organization).
Run("snet organization metadata-init %s %s %s", organization, organization, org_type).
Run("snet organization add-group %s `snet account print --wallet-index 1` %s ", group_name, etcd_endpoint).
Run("snet organization create %s -y", organization).
Err()
Expand Down

0 comments on commit 46d0dd9

Please sign in to comment.