mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
26 lines
444 B
Go
26 lines
444 B
Go
package example
|
|
|
|
import (
|
|
"github.com/hashicorp/nomad/e2e/framework"
|
|
)
|
|
|
|
func init() {
|
|
framework.AddSuites(&framework.TestSuite{
|
|
Component: "simple",
|
|
CanRunLocal: true,
|
|
Cases: []framework.TestCase{
|
|
new(SimpleExampleTestCase),
|
|
},
|
|
})
|
|
}
|
|
|
|
type SimpleExampleTestCase struct {
|
|
framework.TC
|
|
}
|
|
|
|
func (tc *SimpleExampleTestCase) TestExample(f *framework.F) {
|
|
jobs, _, err := tc.Nomad().Jobs().List(nil)
|
|
f.NoError(err)
|
|
f.Empty(jobs)
|
|
}
|