File: operatingsystems_test.go

package info (click to toggle)
golang-github-packethost-packngo 0.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 440 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 281 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
package packngo

import (
	"testing"
)

func TestAccOS(t *testing.T) {
	skipUnlessAcceptanceTestsAllowed(t)

	c := setup(t)
	l, _, err := c.OperatingSystems.List()

	if len(l) == 0 {
		t.Fatal("Empty Operating System listing from the API")
	}

	if err != nil {
		t.Fatal(err)
	}
}