Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Feb 11, 2025
1 parent 678a213 commit e7b6bdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/create/create-topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestCreateTopicWithoutFlagsIntegration(t *testing.T) {

expected := `
name: %s
replicationFactor: 1
partitions:
- id: 0
oldestOffset: 0
Expand Down Expand Up @@ -62,6 +63,7 @@ func TestCreateTopicWithTwoPartitionsIntegration(t *testing.T) {

expected := `
name: %s
replicationFactor: 1
partitions:
- id: 0
oldestOffset: 0
Expand Down Expand Up @@ -99,6 +101,7 @@ func TestCreateTopicWithReplicationFactorIntegration(t *testing.T) {

expected := `
name: %s
replicationFactor: 3
partitions:
- id: 0
oldestOffset: 0
Expand Down Expand Up @@ -171,6 +174,7 @@ configs:

expected := `
name: %s
replicationFactor: 1
partitions:
- id: 0
oldestOffset: 0
Expand Down
2 changes: 1 addition & 1 deletion internal/topic/topic-operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

type Topic struct {
Name string
ReplicationFactor int
ReplicationFactor int `json:"replicationFactor" yaml:"replicationFactor"`
Partitions []Partition `json:",omitempty" yaml:",omitempty"`
Configs []internal.Config `json:",omitempty" yaml:",omitempty"`
}
Expand Down

0 comments on commit e7b6bdc

Please sign in to comment.