Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan-saradar committed Dec 13, 2023
1 parent 50876ca commit c3f3871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/services/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func TestPluginLoad(t *testing.T) {
manifest, err := p.Interface.Manifest(ctx)
require.NoError(err)
assert.Equal(p.name, manifest.Name)
assert.NoError(p.Interface.Execute(ctx, &ExecutedCommand{}, clientAPI))
assert.NoError(p.Interface.Execute(ctx, &ExecutedCommand{OsArgs: []string{"ignite", p.name}}, clientAPI))
assert.NoError(p.Interface.ExecuteHookPre(ctx, &ExecutedHook{}, clientAPI))
assert.NoError(p.Interface.ExecuteHookPost(ctx, &ExecutedHook{}, clientAPI))
assert.NoError(p.Interface.ExecuteHookCleanUp(ctx, &ExecutedHook{}, clientAPI))
Expand Down
3 changes: 2 additions & 1 deletion ignite/services/plugin/template/main.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ type app struct{}

func (app) Manifest(_ context.Context) (*plugin.Manifest, error) {
m := &plugin.Manifest{
Name: "<%= Name %>",
Name: "<%= Name %>",<%= if (SharedHost) { %>
SharedHost: true,<% } %>
}
m.ImportCobraCommand(cmd.New<%= Title %>(), "ignite")
return m, nil
Expand Down

0 comments on commit c3f3871

Please sign in to comment.