@@ -280,7 +280,7 @@ func (s *MethodTestSuite) TestProvsionerJob() {
280
280
func (s * MethodTestSuite ) TestLicense () {
281
281
s .Run ("GetLicenses" , s .Subtest (func (db database.Store , check * expects ) {
282
282
l , err := db .InsertLicense (context .Background (), database.InsertLicenseParams {
283
- Uuid : uuid. NullUUID { UUID : uuid .New (), Valid : true } ,
283
+ UUID : uuid .New (),
284
284
})
285
285
require .NoError (s .T (), err )
286
286
check .Args ().Asserts (l , rbac .ActionRead ).
@@ -298,14 +298,14 @@ func (s *MethodTestSuite) TestLicense() {
298
298
}))
299
299
s .Run ("GetLicenseByID" , s .Subtest (func (db database.Store , check * expects ) {
300
300
l , err := db .InsertLicense (context .Background (), database.InsertLicenseParams {
301
- Uuid : uuid. NullUUID { UUID : uuid .New (), Valid : true } ,
301
+ UUID : uuid .New (),
302
302
})
303
303
require .NoError (s .T (), err )
304
304
check .Args (l .ID ).Asserts (l , rbac .ActionRead ).Returns (l )
305
305
}))
306
306
s .Run ("DeleteLicense" , s .Subtest (func (db database.Store , check * expects ) {
307
307
l , err := db .InsertLicense (context .Background (), database.InsertLicenseParams {
308
- Uuid : uuid. NullUUID { UUID : uuid .New (), Valid : true } ,
308
+ UUID : uuid .New (),
309
309
})
310
310
require .NoError (s .T (), err )
311
311
check .Args (l .ID ).Asserts (l , rbac .ActionDelete )
0 commit comments