diff --git a/features/publish_service.feature b/features/publish_service.feature index 6febc89..0966940 100644 --- a/features/publish_service.feature +++ b/features/publish_service.feature @@ -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 diff --git a/setup_environment_test.go b/setup_environment_test.go index f86fea1..53b4336 100644 --- a/setup_environment_test.go +++ b/setup_environment_test.go @@ -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()