Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-16331

Configtxgen/encoder integration test

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Steps to Reproduce:
      (Please add steps to reproduce)

      Description

      internal/configtxgen/encoder/integration_test.go integration test are not correctly structured for ginkgo. This should use the table extension for ginkgo.

      var _ = Describe("Integration", func() {
      	for _, profile := range []string{
      		genesisconfig.SampleInsecureSoloProfile,
      		genesisconfig.SampleSingleMSPSoloProfile,
      		genesisconfig.SampleDevModeSoloProfile,
      		genesisconfig.SampleInsecureKafkaProfile,
      		genesisconfig.SampleSingleMSPKafkaProfile,
      		genesisconfig.SampleDevModeKafkaProfile,
      	} {
      		It(fmt.Sprintf("successfully parses the %s profile", profile), func() {
      			config := configtxgentest.Load(profile)
      			group, err := encoder.NewChannelGroup(config)
      			Expect(err).NotTo(HaveOccurred())
      
      			cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore())
      			Expect(err).NotTo(HaveOccurred())
      			_, err = channelconfig.NewBundle("test", &cb.Config{
      				ChannelGroup: group,
      			}, cryptoProvider)
      			Expect(err).NotTo(HaveOccurred())
      
      			err = hasModPolicySet("Channel", group)
      			Expect(err).NotTo(HaveOccurred())
      		})
      	}
      

        Attachments

          Activity

            People

            • Assignee:
              dereckluo Chongxin Luo
              Reporter:
              dereckluo Chongxin Luo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code