Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cmd/kafka/topic/topiccmdutil/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
legalNameChars = "^[a-zA-Z0-9._-]+$"
maxNameLength = 249
minPartitions = 1
maxPartitions = 100
maxPartitions = 1000
)

// Validator is a type for validating Kafka topic configuration values
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/kafka/topic/topiccmdutil/validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ func TestValidatePartitionsN(t *testing.T) {
wantErr: true,
},
{
name: "Should be valid when equal to max allowed value(100)",
name: "Should be valid when equal to max allowed value(1000)",
args: args{
partitions: "100",
partitions: "1000",
},
wantErr: false,
},
{
name: "Should be invalid when exceeds 100",
name: "Should be invalid when exceeds 1000",
args: args{
partitions: "102",
partitions: "1002",
},
wantErr: true,
},
Expand Down