2024-06-12 15:38:21 -04:00
|
|
|
package plugin_tests
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2024-08-15 10:05:27 -04:00
|
|
|
"github.com/hashicorp/packer/packer_test/common"
|
2024-06-12 15:38:21 -04:00
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type PackerPluginTestSuite struct {
|
2024-08-15 10:05:27 -04:00
|
|
|
*common.PackerTestSuite
|
2024-06-12 15:38:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func Test_PackerPluginSuite(t *testing.T) {
|
2024-08-15 10:05:27 -04:00
|
|
|
baseSuite, cleanup := common.InitBaseSuite(t)
|
2024-06-12 15:38:21 -04:00
|
|
|
defer cleanup()
|
2024-08-14 16:18:24 -04:00
|
|
|
baseSuite.CompileTestPluginVersions(t,
|
2024-06-12 15:38:21 -04:00
|
|
|
"1.0.0",
|
|
|
|
|
"1.0.0+metadata",
|
|
|
|
|
"1.0.1-alpha1",
|
|
|
|
|
"1.0.9",
|
|
|
|
|
"1.0.10",
|
|
|
|
|
"1.0.0-dev",
|
|
|
|
|
"1.0.0-dev+metadata",
|
|
|
|
|
"1.0.10+metadata",
|
|
|
|
|
"1.0.1-dev",
|
|
|
|
|
"2.0.0",
|
|
|
|
|
)
|
|
|
|
|
|
2024-08-14 16:18:24 -04:00
|
|
|
ts := &PackerPluginTestSuite{
|
|
|
|
|
baseSuite,
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-12 15:38:21 -04:00
|
|
|
suite.Run(t, ts)
|
|
|
|
|
}
|