File: stackscripts_test.go

package info (click to toggle)
golang-github-linode-linodego 1.55.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,112 kB
  • sloc: makefile: 96; sh: 52; python: 24
file content (22 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
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)
	}
}