From bd04a6307ea1b12129ab6e7d6c106d38816c49bf Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Fri, 20 Jan 2023 10:24:38 +0530 Subject: [PATCH] remove duplicate examples --- .../client/testutil/examples/binary_example.yml | 9 --------- .../examples/chain_registration_example.yml | 12 ------------ .../testutil/examples/docker_image_example.yml | 8 -------- x/registry/client/testutil/examples/example1.yml | 7 ------- .../client/testutil/examples/git_repo_example.yml | 6 ------ .../testutil/examples/js_package_example.yml | 8 -------- .../examples/responder_contract_example.yml | 9 --------- .../examples/service_provider_example.yml | 13 ------------- .../examples/watcher_registraion_example.yml | 15 --------------- .../examples/website_registration_example.yml | 10 ---------- x/registry/client/testutil/grpc.go | 6 +++--- x/registry/client/testutil/query.go | 2 +- x/registry/client/testutil/tx.go | 6 +++--- 13 files changed, 7 insertions(+), 104 deletions(-) delete mode 100644 x/registry/client/testutil/examples/binary_example.yml delete mode 100644 x/registry/client/testutil/examples/chain_registration_example.yml delete mode 100644 x/registry/client/testutil/examples/docker_image_example.yml delete mode 100644 x/registry/client/testutil/examples/example1.yml delete mode 100644 x/registry/client/testutil/examples/git_repo_example.yml delete mode 100644 x/registry/client/testutil/examples/js_package_example.yml delete mode 100644 x/registry/client/testutil/examples/responder_contract_example.yml delete mode 100644 x/registry/client/testutil/examples/service_provider_example.yml delete mode 100644 x/registry/client/testutil/examples/watcher_registraion_example.yml delete mode 100644 x/registry/client/testutil/examples/website_registration_example.yml diff --git a/x/registry/client/testutil/examples/binary_example.yml b/x/registry/client/testutil/examples/binary_example.yml deleted file mode 100644 index f0e2f090..00000000 --- a/x/registry/client/testutil/examples/binary_example.yml +++ /dev/null @@ -1,9 +0,0 @@ -record: - hash_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - targeted_arch: x86_64 - runtime_version: go 1.18 - repo_hash_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - version: 1.0.0 - type: Binary \ No newline at end of file diff --git a/x/registry/client/testutil/examples/chain_registration_example.yml b/x/registry/client/testutil/examples/chain_registration_example.yml deleted file mode 100644 index c7578c2e..00000000 --- a/x/registry/client/testutil/examples/chain_registration_example.yml +++ /dev/null @@ -1,12 +0,0 @@ -record: - name: Laconic - ipld_types: - - type3 - - type11 - - schema2 - - codec5 - type: ChainRegistrationRecord - version: 0.11.2 - chain_id: laconic_9000-1 - network_id: 1392 - genesis_hash: f6fbe71210275adc7c7ef585a72c065cdb85f0c8d13dea0f229fd7c22d445a26 \ No newline at end of file diff --git a/x/registry/client/testutil/examples/docker_image_example.yml b/x/registry/client/testutil/examples/docker_image_example.yml deleted file mode 100644 index 39fce06d..00000000 --- a/x/registry/client/testutil/examples/docker_image_example.yml +++ /dev/null @@ -1,8 +0,0 @@ -record: - image_id: 77af4d6b9913 - binary_hash_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - repo_hash_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - version: 1.0.0 - type: DockerImage \ No newline at end of file diff --git a/x/registry/client/testutil/examples/example1.yml b/x/registry/client/testutil/examples/example1.yml deleted file mode 100644 index 3f7b4863..00000000 --- a/x/registry/client/testutil/examples/example1.yml +++ /dev/null @@ -1,7 +0,0 @@ -record: - attr1: value1 - attr2: value2 - link1: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - link2: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 diff --git a/x/registry/client/testutil/examples/git_repo_example.yml b/x/registry/client/testutil/examples/git_repo_example.yml deleted file mode 100644 index 5cae5c96..00000000 --- a/x/registry/client/testutil/examples/git_repo_example.yml +++ /dev/null @@ -1,6 +0,0 @@ -record: - name: cosmos-sdk - repo_reference: https://github.com/cosmos/cosmos-sdk - description: This is a description string - version: 0.46.7 - type: GitRepository \ No newline at end of file diff --git a/x/registry/client/testutil/examples/js_package_example.yml b/x/registry/client/testutil/examples/js_package_example.yml deleted file mode 100644 index e478d698..00000000 --- a/x/registry/client/testutil/examples/js_package_example.yml +++ /dev/null @@ -1,8 +0,0 @@ -record: - repo_hash_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - js_package_hash_ref: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - version: 1.0.0 - type: JSPackage - name: test-JSPackage \ No newline at end of file diff --git a/x/registry/client/testutil/examples/responder_contract_example.yml b/x/registry/client/testutil/examples/responder_contract_example.yml deleted file mode 100644 index f87463a8..00000000 --- a/x/registry/client/testutil/examples/responder_contract_example.yml +++ /dev/null @@ -1,9 +0,0 @@ -record: - service_provider_hash_ref: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - auction_hash_ref: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - watcher_hash_ref: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR - version: 1.0.0 - type: ResponderContract \ No newline at end of file diff --git a/x/registry/client/testutil/examples/service_provider_example.yml b/x/registry/client/testutil/examples/service_provider_example.yml deleted file mode 100644 index 741cc5ea..00000000 --- a/x/registry/client/testutil/examples/service_provider_example.yml +++ /dev/null @@ -1,13 +0,0 @@ - -record: - type: ServiceProviderRecord - bond_id: madeUpBondID - laconic_id: madeUpLaconicID - version: 1.0.0 - x500: - common_name: cerc-io - organization_unit: xyz - organization_name: abc - state_name: california - country: US - locality_name: local \ No newline at end of file diff --git a/x/registry/client/testutil/examples/watcher_registraion_example.yml b/x/registry/client/testutil/examples/watcher_registraion_example.yml deleted file mode 100644 index c4cd6737..00000000 --- a/x/registry/client/testutil/examples/watcher_registraion_example.yml +++ /dev/null @@ -1,15 +0,0 @@ -record: - metadata: - version: 0.32.0 - chain_hash_reference: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - repo_hash_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - wasm: - hash_reference: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR - metadata: - compiler_version: 1.15.0 - execution_engine_version: 0.16.1 - version: 1.0.0 - type: WatcherRegistrationRecord \ No newline at end of file diff --git a/x/registry/client/testutil/examples/website_registration_example.yml b/x/registry/client/testutil/examples/website_registration_example.yml deleted file mode 100644 index 2f398ed8..00000000 --- a/x/registry/client/testutil/examples/website_registration_example.yml +++ /dev/null @@ -1,10 +0,0 @@ -record: - type: WebsiteRegistrationRecord - url: https://cerc.io - repo_hash_reference: - /: QmSnuWmxptJZdLJpKRarxBMS2Ju2oANVrgbr2xWbie9b2D - build_artifact_hash_ref: - /: QmP8jTG1m9GSDJLCbeWhVSVgEzCPPwXRdCRuJtQ5Tz9Kc9 - tls_cert_hash_ref: - /: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR - version: 1.0.0 \ No newline at end of file diff --git a/x/registry/client/testutil/grpc.go b/x/registry/client/testutil/grpc.go index b0210b3d..df168ccc 100644 --- a/x/registry/client/testutil/grpc.go +++ b/x/registry/client/testutil/grpc.go @@ -209,7 +209,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryRecordExpiryQueue() { func(bondId string) { dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" args := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), @@ -353,7 +353,7 @@ func (s *IntegrationTestSuite) TestGRPCQueryListRecords() { func(bondId string) { dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" args := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), @@ -626,7 +626,7 @@ func createRecord(bondID string, s *IntegrationTestSuite) { dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" args := []string{ fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName), fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation), diff --git a/x/registry/client/testutil/query.go b/x/registry/client/testutil/query.go index 947b8c8e..d0ff0a2d 100644 --- a/x/registry/client/testutil/query.go +++ b/x/registry/client/testutil/query.go @@ -79,7 +79,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryForRecords() { bondID := GetBondID(s) dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" args := []string{ payloadPath, bondID, fmt.Sprintf("--%s=%s", flags.FlagFrom, accountName), diff --git a/x/registry/client/testutil/tx.go b/x/registry/client/testutil/tx.go index 7c3b4997..e5858306 100644 --- a/x/registry/client/testutil/tx.go +++ b/x/registry/client/testutil/tx.go @@ -198,7 +198,7 @@ func (s *IntegrationTestSuite) TestGetCmdSetRecord() { bondID := GetBondID(s) dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" tc.args = append([]string{payloadPath, bondID}, tc.args...) } @@ -580,7 +580,7 @@ func (s *IntegrationTestSuite) TestGetCmdDissociateBond() { bondID := GetBondID(s) dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" args := []string{ payloadPath, bondID, @@ -822,7 +822,7 @@ func (s *IntegrationTestSuite) TestGetCmdAssociateBond() { bondID := GetBondID(s) dir, err := os.Getwd() sr.NoError(err) - payloadPath := dir + "/examples/service_provider_example.yml" + payloadPath := dir + "/../helpers/examples/service_provider_example.yml" txArgs := []string{ payloadPath, bondID,