Added API tests

This commit is contained in:
David Allen 2024-09-16 08:54:29 -06:00
parent 543efe9134
commit 7a04afdfa8
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -146,6 +146,17 @@ func TestListCommand(t *testing.T) {
func TestUpdateCommand(t *testing.T) {
// TODO: add test that does a Redfish simple update checking it success and
// failure points
var (
cmd *exec.Cmd
err error
output []byte
)
// set up temporary directory
cmd = exec.Command("bash", "-c", fmt.Sprintf("%s list", *exePath))
output, err = cmd.CombinedOutput()
if err != nil {
t.Fatalf("failed to run 'list' command: %v", err)
}
}
func TestGofishFunctions(t *testing.T) {