You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
package manager |
|
|
|
import ( |
|
"context" |
|
. "github.com/smartystreets/goconvey/convey" |
|
"testing" |
|
) |
|
|
|
func Test_UpArea(t *testing.T) { |
|
Convey("UpArea", t, WithDao(func(d *Dao) { |
|
_, err := d.UpPolicyRelation(context.TODO(), 1212121, 1) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
func Test_PolicyGroup(t *testing.T) { |
|
Convey("PolicyGroup", t, WithDao(func(d *Dao) { |
|
_, _, err := d.PolicyGroups(context.TODO(), 0, 0, 0, 0, 0, 0, "", "") |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
func Test_PolicyRelation(t *testing.T) { |
|
Convey("PolicyRelation", t, WithDao(func(d *Dao) { |
|
_, err := d.PolicyRelation(context.TODO(), 1212121) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
func Test_PolicyGroupsByIds(t *testing.T) { |
|
Convey("PolicyGroupsByIds", t, WithDao(func(d *Dao) { |
|
_, err := d.PolicyGroupsByIds(context.TODO(), []int64{1212121}) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
|
|
func Test_ArchiveGroups(t *testing.T) { |
|
Convey("ArchiveGroups", t, WithDao(func(d *Dao) { |
|
_, err := d.ArchiveGroups(context.TODO(), 1212121) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
func Test_PolicyItems(t *testing.T) { |
|
Convey("ItemsByGroup", t, WithDao(func(d *Dao) { |
|
_, err := d.PolicyItems(context.Background(), 1) |
|
So(err, ShouldBeNil) |
|
})) |
|
} |
|
func Test_ZoneIDs(t *testing.T) { |
|
Convey("ZoneIDs", t, WithDao(func(d *Dao) { |
|
_, err := d.ZoneIDs(context.TODO(), []int64{1212121}) |
|
So(err, ShouldBeNil) |
|
})) |
|
}
|
|
|