Skip to content

Commit

Permalink
test: update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Jan 6, 2025
1 parent 5e6f1e2 commit df9178b
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 124 deletions.
68 changes: 34 additions & 34 deletions internal/test_helpers/fixtures/describe_topic_partitions/pass
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@ Debug = true
[stage-4] -----+-------------------------------------------------+-----------------
[stage-4] 0000 | 00 00 00 31 00 4b 00 00 60 5a 05 cd 00 0c 6b 61 | ...1.K..`Z....ka
[stage-4] 0010 | 66 6b 61 2d 74 65 73 74 65 72 00 02 12 75 6e 6b | fka-tester...unk
[stage-4] 0020 | 6e 6f 77 6e 2d 74 6f 70 69 63 2d 70 61 7a 00 00 | nown-topic-paz..
[stage-4] 0020 | 6e 6f 77 6e 2d 74 6f 70 69 63 2d 71 75 7a 00 00 | nown-topic-quz..
[stage-4] 0030 | 00 00 01 ff 00 | .....
[stage-4] 
[stage-4] Hexdump of received "DescribeTopicPartitions" response: 
[stage-4] Idx | Hex | ASCII
[stage-4] -----+-------------------------------------------------+-----------------
[stage-4] 0000 | 00 00 00 37 60 5a 05 cd 00 00 00 00 00 02 00 03 | ...7`Z..........
[stage-4] 0010 | 12 75 6e 6b 6e 6f 77 6e 2d 74 6f 70 69 63 2d 70 | .unknown-topic-p
[stage-4] 0020 | 61 7a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | az..............
[stage-4] 0010 | 12 75 6e 6b 6e 6f 77 6e 2d 74 6f 70 69 63 2d 71 | .unknown-topic-q
[stage-4] 0020 | 75 7a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | uz..............
[stage-4] 0030 | 00 00 00 01 00 00 0d f8 00 ff 00 | ...........
[stage-4] 
[stage-4] [Decoder] - .ResponseHeader
Expand All @@ -402,7 +402,7 @@ Debug = true
[stage-4] [Decoder]  - .topic.length (1)
[stage-4] [Decoder]  - .Topics[0]
[stage-4] [Decoder]  - .error_code (3)
[stage-4] [Decoder]  - .name (unknown-topic-paz)
[stage-4] [Decoder]  - .name (unknown-topic-quz)
[stage-4] [Decoder]  - .topic_id (00000000-0000-0000-0000-000000000000)
[stage-4] [Decoder]  - .is_internal (false)
[stage-4] [Decoder]  - .num_partitions (0)
Expand All @@ -413,21 +413,21 @@ Debug = true
[stage-4] ✓ Correlation ID: 1616512461
[stage-4] ✓ Throttle Time: 0
[stage-4]  ✓ TopicResponse[0] Error code: 3
[stage-4]  ✓ TopicResponse[0] Topic Name: unknown-topic-paz
[stage-4]  ✓ TopicResponse[0] Topic Name: unknown-topic-quz
[stage-4]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-0000-0000-000000000000
[stage-4] Test passed.
[stage-4] Terminating program
[stage-4] Program terminated successfully

[stage-3] Running tests for Stage #3: ea7
[stage-3] $ ./your_program.sh /tmp/server.properties
[stage-3] [Serializer] Writing log files to: /tmp/kraft-combined-logs
[stage-3] [Serializer]  - Wrote file to: /tmp/server.properties
[stage-3] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/meta.properties
[stage-3] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/.kafka_cleanshutdown
[stage-3] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/partition.metadata
[stage-3] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log
[stage-3] [Serializer] Finished writing log files to: /tmp/kraft-combined-logs
[stage-3] $ ./your_program.sh /tmp/server.properties
[stage-3] Connecting to broker at: localhost:9092
[stage-3] Connection to broker at localhost:9092 successful
[stage-3] Sending "DescribeTopicPartitions" (version: 0) request (Correlation id: 96710698)
Expand All @@ -443,7 +443,7 @@ Debug = true
[stage-3] -----+-------------------------------------------------+-----------------
[stage-3] 0000 | 00 00 00 45 05 c3 b0 2a 00 00 00 00 00 02 00 00 | ...E...*........
[stage-3] 0010 | 04 62 61 72 00 00 00 00 00 00 40 00 80 00 00 00 | .bar......@.....
[stage-3] 0020 | 00 00 00 42 00 02 00 00 00 00 00 00 00 00 00 01 | ...B............
[stage-3] 0020 | 00 00 00 20 00 02 00 00 00 00 00 00 00 00 00 01 | ... ............
[stage-3] 0030 | 00 00 00 00 02 00 00 00 01 02 00 00 00 01 01 01 | ................
[stage-3] 0040 | 01 00 00 00 0d f8 00 ff 00 | .........
[stage-3] 
Expand All @@ -456,7 +456,7 @@ Debug = true
[stage-3] [Decoder]  - .Topics[0]
[stage-3] [Decoder]  - .error_code (0)
[stage-3] [Decoder]  - .name (bar)
[stage-3] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000042)
[stage-3] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000020)
[stage-3] [Decoder]  - .is_internal (false)
[stage-3] [Decoder]  - .num_partitions (1)
[stage-3] [Decoder]  - .Partitions[0]
Expand All @@ -478,36 +478,36 @@ Debug = true
[stage-3] ✓ Throttle Time: 0
[stage-3]  ✓ TopicResponse[0] Error code: 0
[stage-3]  ✓ TopicResponse[0] Topic Name: bar
[stage-3]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000042
[stage-3]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000020
[stage-3] Test passed.
[stage-3] Terminating program
[stage-3] Program terminated successfully

[stage-2] Running tests for Stage #2: ku4
[stage-2] $ ./your_program.sh /tmp/server.properties
[stage-2] [Serializer] Writing log files to: /tmp/kraft-combined-logs
[stage-2] [Serializer]  - Wrote file to: /tmp/server.properties
[stage-2] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/meta.properties
[stage-2] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/.kafka_cleanshutdown
[stage-2] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/partition.metadata
[stage-2] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log
[stage-2] [Serializer] Finished writing log files to: /tmp/kraft-combined-logs
[stage-2] $ ./your_program.sh /tmp/server.properties
[stage-2] Connecting to broker at: localhost:9092
[stage-2] Connection to broker at localhost:9092 successful
[stage-2] Sending "DescribeTopicPartitions" (version: 0) request (Correlation id: 254678266)
[stage-2] Hexdump of sent "DescribeTopicPartitions" request: 
[stage-2] Idx | Hex | ASCII
[stage-2] -----+-------------------------------------------------+-----------------
[stage-2] 0000 | 00 00 00 23 00 4b 00 00 0f 2e 14 fa 00 0c 6b 61 | ...#.K........ka
[stage-2] 0010 | 66 6b 61 2d 74 65 73 74 65 72 00 02 04 66 6f 6f | fka-tester...foo
[stage-2] 0010 | 66 6b 61 2d 74 65 73 74 65 72 00 02 04 70 61 78 | fka-tester...pax
[stage-2] 0020 | 00 00 00 00 02 ff 00 | .......
[stage-2] 
[stage-2] Hexdump of received "DescribeTopicPartitions" response: 
[stage-2] Idx | Hex | ASCII
[stage-2] -----+-------------------------------------------------+-----------------
[stage-2] 0000 | 00 00 00 61 0f 2e 14 fa 00 00 00 00 00 02 00 00 | ...a............
[stage-2] 0010 | 04 66 6f 6f 00 00 00 00 00 00 40 00 80 00 00 00 | .foo......@.....
[stage-2] 0020 | 00 00 00 32 00 03 00 00 00 00 00 00 00 00 00 01 | ...2............
[stage-2] 0010 | 04 70 61 78 00 00 00 00 00 00 40 00 80 00 00 00 | .pax......@.....
[stage-2] 0020 | 00 00 00 15 00 03 00 00 00 00 00 00 00 00 00 01 | ................
[stage-2] 0030 | 00 00 00 00 02 00 00 00 01 02 00 00 00 01 01 01 | ................
[stage-2] 0040 | 01 00 00 00 00 00 00 01 00 00 00 01 00 00 00 00 | ................
[stage-2] 0050 | 02 00 00 00 01 02 00 00 00 01 01 01 01 00 00 00 | ................
Expand All @@ -521,8 +521,8 @@ Debug = true
[stage-2] [Decoder]  - .topic.length (1)
[stage-2] [Decoder]  - .Topics[0]
[stage-2] [Decoder]  - .error_code (0)
[stage-2] [Decoder]  - .name (foo)
[stage-2] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000032)
[stage-2] [Decoder]  - .name (pax)
[stage-2] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000015)
[stage-2] [Decoder]  - .is_internal (false)
[stage-2] [Decoder]  - .num_partitions (2)
[stage-2] [Decoder]  - .Partitions[0]
Expand Down Expand Up @@ -554,8 +554,8 @@ Debug = true
[stage-2] ✓ Correlation ID: 254678266
[stage-2] ✓ Throttle Time: 0
[stage-2]  ✓ TopicResponse[0] Error code: 0
[stage-2]  ✓ TopicResponse[0] Topic Name: foo
[stage-2]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000032
[stage-2]  ✓ TopicResponse[0] Topic Name: pax
[stage-2]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000015
[stage-2]  ✓ PartitionResponse[0] Error code: 0
[stage-2]  ✓ PartitionResponse[0] Partition Index: 0
[stage-2]  ✓ PartitionResponse[1] Error code: 0
Expand All @@ -565,14 +565,14 @@ Debug = true
[stage-2] Program terminated successfully

[stage-1] Running tests for Stage #1: wq2
[stage-1] $ ./your_program.sh /tmp/server.properties
[stage-1] [Serializer] Writing log files to: /tmp/kraft-combined-logs
[stage-1] [Serializer]  - Wrote file to: /tmp/server.properties
[stage-1] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/meta.properties
[stage-1] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/.kafka_cleanshutdown
[stage-1] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/partition.metadata
[stage-1] [Serializer]  - Wrote file to: /tmp/kraft-combined-logs/__cluster_metadata-0/00000000000000000000.log
[stage-1] [Serializer] Finished writing log files to: /tmp/kraft-combined-logs
[stage-1] $ ./your_program.sh /tmp/server.properties
[stage-1] Connecting to broker at: localhost:9092
[stage-1] Connection to broker at localhost:9092 successful
[stage-1] Sending "DescribeTopicPartitions" (version: 0) request (Correlation id: 1893237013)
Expand All @@ -581,22 +581,22 @@ Debug = true
[stage-1] -----+-------------------------------------------------+-----------------
[stage-1] 0000 | 00 00 00 2d 00 4b 00 00 70 d8 81 15 00 0c 6b 61 | ...-.K..p.....ka
[stage-1] 0010 | 66 6b 61 2d 74 65 73 74 65 72 00 04 04 62 61 72 | fka-tester...bar
[stage-1] 0020 | 00 04 62 61 7a 00 04 66 6f 6f 00 00 00 00 04 ff | ..baz..foo......
[stage-1] 0020 | 00 04 66 6f 6f 00 04 70 61 78 00 00 00 00 04 ff | ..foo..pax......
[stage-1] 0030 | 00 | .
[stage-1] 
[stage-1] Hexdump of received "DescribeTopicPartitions" response: 
[stage-1] Idx | Hex | ASCII
[stage-1] -----+-------------------------------------------------+-----------------
[stage-1] 0000 | 00 00 00 d3 70 d8 81 15 00 00 00 00 00 04 00 00 | ....p...........
[stage-1] 0010 | 04 62 61 72 00 00 00 00 00 00 40 00 80 00 00 00 | .bar......@.....
[stage-1] 0020 | 00 00 00 42 00 02 00 00 00 00 00 00 00 00 00 01 | ...B............
[stage-1] 0020 | 00 00 00 20 00 02 00 00 00 00 00 00 00 00 00 01 | ... ............
[stage-1] 0030 | 00 00 00 00 02 00 00 00 01 02 00 00 00 01 01 01 | ................
[stage-1] 0040 | 01 00 00 00 0d f8 00 00 00 04 62 61 7a 00 00 00 | ..........baz...
[stage-1] 0050 | 00 00 00 40 00 80 00 00 00 00 00 00 76 00 02 00 | ...@........v...
[stage-1] 0040 | 01 00 00 00 0d f8 00 00 00 04 66 6f 6f 00 00 00 | ..........foo...
[stage-1] 0050 | 00 00 00 40 00 80 00 00 00 00 00 00 96 00 02 00 | ...@............
[stage-1] 0060 | 00 00 00 00 00 00 00 00 01 00 00 00 00 02 00 00 | ................
[stage-1] 0070 | 00 01 02 00 00 00 01 01 01 01 00 00 00 0d f8 00 | ................
[stage-1] 0080 | 00 00 04 66 6f 6f 00 00 00 00 00 00 40 00 80 00 | ...foo......@...
[stage-1] 0090 | 00 00 00 00 00 32 00 03 00 00 00 00 00 00 00 00 | .....2..........
[stage-1] 0080 | 00 00 04 70 61 78 00 00 00 00 00 00 40 00 80 00 | ...pax......@...
[stage-1] 0090 | 00 00 00 00 00 15 00 03 00 00 00 00 00 00 00 00 | ................
[stage-1] 00a0 | 00 01 00 00 00 00 02 00 00 00 01 02 00 00 00 01 | ................
[stage-1] 00b0 | 01 01 01 00 00 00 00 00 00 01 00 00 00 01 00 00 | ................
[stage-1] 00c0 | 00 00 02 00 00 00 01 02 00 00 00 01 01 01 01 00 | ................
Expand All @@ -611,7 +611,7 @@ Debug = true
[stage-1] [Decoder]  - .Topics[0]
[stage-1] [Decoder]  - .error_code (0)
[stage-1] [Decoder]  - .name (bar)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000042)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000020)
[stage-1] [Decoder]  - .is_internal (false)
[stage-1] [Decoder]  - .num_partitions (1)
[stage-1] [Decoder]  - .Partitions[0]
Expand All @@ -629,8 +629,8 @@ Debug = true
[stage-1] [Decoder]  - .TAG_BUFFER
[stage-1] [Decoder]  - .Topics[1]
[stage-1] [Decoder]  - .error_code (0)
[stage-1] [Decoder]  - .name (baz)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000076)
[stage-1] [Decoder]  - .name (foo)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000096)
[stage-1] [Decoder]  - .is_internal (false)
[stage-1] [Decoder]  - .num_partitions (1)
[stage-1] [Decoder]  - .Partitions[0]
Expand All @@ -648,8 +648,8 @@ Debug = true
[stage-1] [Decoder]  - .TAG_BUFFER
[stage-1] [Decoder]  - .Topics[2]
[stage-1] [Decoder]  - .error_code (0)
[stage-1] [Decoder]  - .name (foo)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000032)
[stage-1] [Decoder]  - .name (pax)
[stage-1] [Decoder]  - .topic_id (00000000-0000-4000-8000-000000000015)
[stage-1] [Decoder]  - .is_internal (false)
[stage-1] [Decoder]  - .num_partitions (2)
[stage-1] [Decoder]  - .Partitions[0]
Expand Down Expand Up @@ -682,17 +682,17 @@ Debug = true
[stage-1] ✓ Throttle Time: 0
[stage-1]  ✓ TopicResponse[0] Error code: 0
[stage-1]  ✓ TopicResponse[0] Topic Name: bar
[stage-1]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000042
[stage-1]  ✓ TopicResponse[0] Topic UUID: 00000000-0000-4000-8000-000000000020
[stage-1]  ✓ PartitionResponse[0] Error code: 0
[stage-1]  ✓ PartitionResponse[0] Partition Index: 0
[stage-1]  ✓ TopicResponse[1] Error code: 0
[stage-1]  ✓ TopicResponse[1] Topic Name: baz
[stage-1]  ✓ TopicResponse[1] Topic UUID: 00000000-0000-4000-8000-000000000076
[stage-1]  ✓ TopicResponse[1] Topic Name: foo
[stage-1]  ✓ TopicResponse[1] Topic UUID: 00000000-0000-4000-8000-000000000096
[stage-1]  ✓ PartitionResponse[0] Error code: 0
[stage-1]  ✓ PartitionResponse[0] Partition Index: 0
[stage-1]  ✓ TopicResponse[2] Error code: 0
[stage-1]  ✓ TopicResponse[2] Topic Name: foo
[stage-1]  ✓ TopicResponse[2] Topic UUID: 00000000-0000-4000-8000-000000000032
[stage-1]  ✓ TopicResponse[2] Topic Name: pax
[stage-1]  ✓ TopicResponse[2] Topic UUID: 00000000-0000-4000-8000-000000000015
[stage-1]  ✓ PartitionResponse[0] Error code: 0
[stage-1]  ✓ PartitionResponse[0] Partition Index: 0
[stage-1]  ✓ PartitionResponse[1] Error code: 0
Expand Down
Loading

0 comments on commit df9178b

Please sign in to comment.