Skip to content

Commit

Permalink
chore: bumps engine test version to 4.2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Nov 20, 2024
1 parent 8ce4c7e commit d353576
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions cmd/engine_pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ func Test_pull(t *testing.T) {
pullPolicy: engine.PullAlways,
}},
{name: "pull specific docker version always", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeDockerCore,
pullPolicy: engine.PullAlways,
}},
{name: "pull specific docker version if not present", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeDockerCore,
pullPolicy: engine.PullIfNotPresent,
}},
{name: "pull docker all distro if not present", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeDockerAll,
pullPolicy: engine.PullIfNotPresent,
}},
{name: "pull docker all distro if not present", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeDockerDistroless,
pullPolicy: engine.PullIfNotPresent,
}},
Expand All @@ -62,12 +62,12 @@ func Test_pull(t *testing.T) {
pullPolicy: engine.PullAlways,
}},
{name: "pull specific jvm version always", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeJvmSingleJar,
pullPolicy: engine.PullAlways,
}},
{name: "pull specific jvm version if not present", args: args{
version: "3.44.1",
version: "4.2.2",
engineType: engine.EngineTypeJvmSingleJar,
pullPolicy: engine.PullIfNotPresent,
}},
Expand Down
8 changes: 4 additions & 4 deletions cmd/plugin_install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func Test_installPlugins(t *testing.T) {
name string
args args
}{
{name: "install no plugins", args: args{argPlugins: nil, configPlugins: nil, version: "3.44.1"}},
{name: "install plugins from args", args: args{argPlugins: []string{"store-redis"}, configPlugins: nil, version: "3.44.1"}},
{name: "install plugins from config", args: args{argPlugins: nil, configPlugins: []string{"store-redis"}, version: "3.44.1"}},
{name: "install and save plugins as default", args: args{argPlugins: []string{"store-redis"}, configPlugins: nil, version: "3.44.1", saveDefault: true}},
{name: "install no plugins", args: args{argPlugins: nil, configPlugins: nil, version: "4.2.2"}},
{name: "install plugins from args", args: args{argPlugins: []string{"store-redis"}, configPlugins: nil, version: "4.2.2"}},
{name: "install plugins from config", args: args{argPlugins: nil, configPlugins: []string{"store-redis"}, version: "4.2.2"}},
{name: "install and save plugins as default", args: args{argPlugins: []string{"store-redis"}, configPlugins: nil, version: "4.2.2", saveDefault: true}},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ func Test_describeVersions(t *testing.T) {
name: "print explicit version with docker engine",
args: args{
engineType: engine.EngineTypeDockerCore,
version: "3.44.1",
version: "4.2.2",
format: outputFormatPlain,
},
},
{
name: "print explicit version with jvm engine",
args: args{
engineType: engine.EngineTypeJvmSingleJar,
version: "3.44.1",
version: "4.2.2",
format: outputFormatPlain,
},
},
Expand All @@ -62,7 +62,7 @@ func Test_describeVersions(t *testing.T) {
name: "print explicit version in JSON format",
args: args{
engineType: engine.EngineTypeDockerCore,
version: "3.44.1",
version: "4.2.2",
format: outputFormatJson,
},
},
Expand Down
6 changes: 3 additions & 3 deletions engine/docker/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestEngine_StartStop(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand All @@ -73,7 +73,7 @@ func TestEngine_Restart(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand All @@ -98,7 +98,7 @@ func TestEngine_List(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand Down
6 changes: 3 additions & 3 deletions engine/jvm/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestEngine_StartStop(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand All @@ -74,7 +74,7 @@ func TestEngine_Restart(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand All @@ -100,7 +100,7 @@ func xTestEngine_List(t *testing.T) {
ConfigDir: testConfigPath,
Options: engine.StartOptions{
Port: enginetests.GetFreePort(),
Version: "3.44.1",
Version: "4.2.2",
PullPolicy: engine.PullIfNotPresent,
LogLevel: "DEBUG",
},
Expand Down
14 changes: 7 additions & 7 deletions plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestEnsurePlugin(t *testing.T) {
args args
wantErr bool
}{
{name: "fetch plugin", args: args{pluginName: "store-redis", version: "3.44.1"}, wantErr: false},
{name: "fetch plugin", args: args{pluginName: "store-redis", version: "4.2.2"}, wantErr: false},
{name: "fetch nonexistent plugin version", args: args{pluginName: "store-redis", version: "0.0.0"}, wantErr: true},
}
for _, tt := range tests {
Expand All @@ -81,8 +81,8 @@ func TestEnsurePlugins(t *testing.T) {
plugins []string
wantErr bool
}{
{name: "no op if no plugins configured", args: args{version: "3.44.1"}, plugins: nil, wantErr: false},
{name: "fetch configured plugins", args: args{version: "3.44.1"}, plugins: []string{"store-redis"}, wantErr: false},
{name: "no op if no plugins configured", args: args{version: "4.2.2"}, plugins: nil, wantErr: false},
{name: "fetch configured plugins", args: args{version: "4.2.2"}, plugins: []string{"store-redis"}, wantErr: false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down Expand Up @@ -116,16 +116,16 @@ func Test_getPluginFilePath(t *testing.T) {
}{
{
name: "get plugin file path",
args: args{pluginName: "store-redis", version: "3.44.1"},
args: args{pluginName: "store-redis", version: "4.2.2"},
wantFullPluginFileName: "imposter-plugin-store-redis.jar",
wantPluginFilePath: filepath.Join(homeDir, pluginBaseDir, "3.44.1", "imposter-plugin-store-redis.jar"),
wantPluginFilePath: filepath.Join(homeDir, pluginBaseDir, "4.2.2", "imposter-plugin-store-redis.jar"),
wantErr: false,
},
{
name: "get plugin file path with zip suffix",
args: args{pluginName: "js-graal:zip", version: "3.44.1"},
args: args{pluginName: "js-graal:zip", version: "4.2.2"},
wantFullPluginFileName: "imposter-plugin-js-graal.zip",
wantPluginFilePath: filepath.Join(homeDir, pluginBaseDir, "3.44.1", "imposter-plugin-js-graal.zip"),
wantPluginFilePath: filepath.Join(homeDir, pluginBaseDir, "4.2.2", "imposter-plugin-js-graal.zip"),
wantErr: false,
},
}
Expand Down

0 comments on commit d353576

Please sign in to comment.