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
Remove test code for non-GA content packages
  • Loading branch information
jsoriano committed May 27, 2025
commit 1309b22623943c2350d9b5bf187d680f310c5257
10 changes: 0 additions & 10 deletions internal/packages/archetype/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"path/filepath"
"testing"

"github.com/Masterminds/semver/v3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -63,15 +62,6 @@ func createPackageDescriptorForTest(packageType, kibanaVersion string) PackageDe
if err != nil {
panic(err)
}
if packageType == "content" {
minSpecVersion := semver.MustParse("3.4.0")
if !specVersion.LessThan(minSpecVersion) {
panic("this code can be removed")
}
version = "0.1.0"
specVersion = *minSpecVersion
excludeChecks = append(excludeChecks, "PSR00002")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle this code is not needed anymore because content packages are already GA cc @mrodm.

return PackageDescriptor{
Manifest: packages.PackageManifest{
SpecVersion: specVersion.String(),
Expand Down