1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
package integration
import (
"context"
"testing"
"github.com/linode/linodego"
)
func TestStackscripts_List_smoke(t *testing.T) {
client, teardown := createTestClient(t, "fixtures/TestStackscripts_List")
defer teardown()
filterOpt := linodego.NewListOptions(1, "")
stackscripts, err := client.ListStackscripts(context.Background(), filterOpt)
if err != nil {
t.Errorf("Error listing stackscripts, expected struct - error %v", err)
}
if len(stackscripts) == 0 {
t.Errorf("Expected a list of public stackscripts - %v", stackscripts)
}
}
|