Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Apply suggestion from @mrodm
Co-authored-by: Mario Rodriguez Molins <[email protected]>
  • Loading branch information
teresaromero and mrodm authored Sep 16, 2025
commit 4bcc8283811f5398c88cf09367a10f38daf8b981
8 changes: 4 additions & 4 deletions cmd/create_data_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func TestCreateDataStreamDescriptorFromAnswers_SubobjectsTrueForSpecVersionGTE3_
}
descriptor := createDataStreamDescriptorFromAnswers(answers, "/tmp/package", specVersion)

// Should not set Elasticsearch.IndexTemplate.Mappings.Subobjects
if descriptor.Manifest.Elasticsearch != nil && descriptor.Manifest.Elasticsearch.IndexTemplate != nil && descriptor.Manifest.Elasticsearch.IndexTemplate.Mappings != nil {
assert.NotEqual(t, false, descriptor.Manifest.Elasticsearch.IndexTemplate.Mappings.Subobjects)
}
require.NotNil(t, descriptor.Manifest.Elasticsearch)
require.NotNil(t, descriptor.Manifest.Elasticsearch.IndexTemplate)
require.NotNil(t, descriptor.Manifest.Elasticsearch.IndexTemplate.Mappings)
assert.False(t, descriptor.Manifest.Elasticsearch.IndexTemplate.Mappings.Subobjects)
}