Kafka
  1. Kafka
  2. KAFKA-647

Provide a property in System Test for no. of topics and topics string will be generated automatically

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      Currently the topics string is specified in the testcase_xxxx_properties.json file such as:

      testcase_9051_properties.json:
      "topic": "t001,t002,t003,t004,t005,t006,t007,t008,t009,t010,t011,t012,t013,t014,t015,t016,t017,t018,t019,t020",

        Activity

        Hide
        John Fung added a comment -

        Uploaded kafka-647-v1.patch for the following changes:

        1. To let System Test to generate the topic string with a specified no. of topics, add the testcase argument "num_topics_for_auto_generated_string" to system_test/xxxx_testsuite/testcase_xxxx/testcase_xxxx_properties.json such as:

        "testcase_args":

        { "broker_type": "leader", "bounce_broker": "false", . . . "num_topics_for_auto_generated_string": "20", . . . }

        ,

        2. The topics string generated would be in the format of:
        "topic_0001,topic_0002,topic_0003, . . .,topic_nnnn".

        3. The topic prefix is hard-coded to be "topic_". As long as the topics index are incremented by 1, it doesn't matter too much about the prefix.

        4. The existing topics specification in other test cases are still supported. This multi topics string will only be generated if the testcase argument in #1 is specified

        Show
        John Fung added a comment - Uploaded kafka-647-v1.patch for the following changes: 1. To let System Test to generate the topic string with a specified no. of topics, add the testcase argument "num_topics_for_auto_generated_string" to system_test/xxxx_testsuite/testcase_xxxx/testcase_xxxx_properties.json such as: "testcase_args": { "broker_type": "leader", "bounce_broker": "false", . . . "num_topics_for_auto_generated_string": "20", . . . } , 2. The topics string generated would be in the format of: "topic_0001,topic_0002,topic_0003, . . .,topic_nnnn". 3. The topic prefix is hard-coded to be "topic_". As long as the topics index are incremented by 1, it doesn't matter too much about the prefix. 4. The existing topics specification in other test cases are still supported. This multi topics string will only be generated if the testcase argument in #1 is specified
        Hide
        Neha Narkhede added a comment -

        +1, thanks for the patch.

        Show
        Neha Narkhede added a comment - +1, thanks for the patch.
        Hide
        Neha Narkhede added a comment -

        Checked in v1

        Show
        Neha Narkhede added a comment - Checked in v1

          People

          • Assignee:
            John Fung
            Reporter:
            John Fung
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development