diff --git a/Makefile b/Makefile index a1f39cc..71a4500 100644 --- a/Makefile +++ b/Makefile @@ -59,13 +59,13 @@ mocks: --user $$(id -u):$$(id -g) \ -w /work \ -v ${PWD}:/work \ - vektra/mockery:v2.38.0 -r --keeptree --dir api/v1 --output api/v1/mocks --all + vektra/mockery:v2.42.0 -r --keeptree --dir api/v1 --output api/v1/mocks --all docker run --rm \ --user $$(id -u):$$(id -g) \ -w /work \ -v ${PWD}:/work \ - vektra/mockery:v2.38.0 -r --keeptree --dir pkg/datastore --output pkg/datastore/mocks --all + vektra/mockery:v2.42.0 -r --keeptree --dir pkg/datastore --output pkg/datastore/mocks --all .PHONY: postgres-up postgres-up: postgres-rm diff --git a/api/v1/mocks/ProjectMemberServiceClient.go b/api/v1/mocks/ProjectMemberServiceClient.go index 82c48d7..7477e87 100644 --- a/api/v1/mocks/ProjectMemberServiceClient.go +++ b/api/v1/mocks/ProjectMemberServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/ProjectMemberServiceServer.go b/api/v1/mocks/ProjectMemberServiceServer.go index 380562e..db5c15c 100644 --- a/api/v1/mocks/ProjectMemberServiceServer.go +++ b/api/v1/mocks/ProjectMemberServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/ProjectServiceClient.go b/api/v1/mocks/ProjectServiceClient.go index bf40c4c..a321fdf 100644 --- a/api/v1/mocks/ProjectServiceClient.go +++ b/api/v1/mocks/ProjectServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/ProjectServiceServer.go b/api/v1/mocks/ProjectServiceServer.go index a36bf7f..e6a943c 100644 --- a/api/v1/mocks/ProjectServiceServer.go +++ b/api/v1/mocks/ProjectServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/TenantServiceClient.go b/api/v1/mocks/TenantServiceClient.go index 0091df3..32a55a5 100644 --- a/api/v1/mocks/TenantServiceClient.go +++ b/api/v1/mocks/TenantServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/TenantServiceServer.go b/api/v1/mocks/TenantServiceServer.go index 0d02cff..4b93da4 100644 --- a/api/v1/mocks/TenantServiceServer.go +++ b/api/v1/mocks/TenantServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/UnsafeProjectMemberServiceServer.go b/api/v1/mocks/UnsafeProjectMemberServiceServer.go index 76fdd0a..19520e9 100644 --- a/api/v1/mocks/UnsafeProjectMemberServiceServer.go +++ b/api/v1/mocks/UnsafeProjectMemberServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/UnsafeProjectServiceServer.go b/api/v1/mocks/UnsafeProjectServiceServer.go index 79f1b3d..b789e9b 100644 --- a/api/v1/mocks/UnsafeProjectServiceServer.go +++ b/api/v1/mocks/UnsafeProjectServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/api/v1/mocks/UnsafeTenantServiceServer.go b/api/v1/mocks/UnsafeTenantServiceServer.go index 59dfdd6..5af5a04 100644 --- a/api/v1/mocks/UnsafeTenantServiceServer.go +++ b/api/v1/mocks/UnsafeTenantServiceServer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/pkg/client/mock.go b/pkg/client/mock.go index 1c3b673..7f6d8c1 100644 --- a/pkg/client/mock.go +++ b/pkg/client/mock.go @@ -5,14 +5,16 @@ import ( ) type MockClient struct { - psc v1.ProjectServiceClient - tsc v1.TenantServiceClient + psc v1.ProjectServiceClient + tsc v1.TenantServiceClient + pmsc v1.ProjectMemberServiceClient } -func NewMock(psc v1.ProjectServiceClient, tsc v1.TenantServiceClient) *MockClient { +func NewMock(psc v1.ProjectServiceClient, tsc v1.TenantServiceClient, pmsc v1.ProjectMemberServiceClient) *MockClient { return &MockClient{ - psc: psc, - tsc: tsc, + psc: psc, + tsc: tsc, + pmsc: pmsc, } } @@ -22,6 +24,9 @@ func (c *MockClient) Close() error { func (c *MockClient) Project() v1.ProjectServiceClient { return c.psc } +func (c *MockClient) ProjectMember() v1.ProjectMemberServiceClient { + return c.pmsc +} func (c *MockClient) Tenant() v1.TenantServiceClient { return c.tsc diff --git a/pkg/datastore/mocks/Entity.go b/pkg/datastore/mocks/Entity.go index 7bbf07d..955037e 100644 --- a/pkg/datastore/mocks/Entity.go +++ b/pkg/datastore/mocks/Entity.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks diff --git a/pkg/datastore/mocks/Storage.go b/pkg/datastore/mocks/Storage.go index 7d0db16..62d85c8 100644 --- a/pkg/datastore/mocks/Storage.go +++ b/pkg/datastore/mocks/Storage.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.38.0. DO NOT EDIT. +// Code generated by mockery v2.42.0. DO NOT EDIT. package mocks