Skip to content

Commit

Permalink
fix for failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekhiwarkar committed Aug 26, 2022
1 parent 30095a2 commit 10396c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/service/audit_log_query_test.go
Expand Up @@ -87,7 +87,7 @@ func (m *mockElasticSearchQuery) Handle(msg bytes.Buffer) (map[string]interface{
func TestGetAuditLogByProjectsSimple(t *testing.T) {
esq := &mockElasticSearchQuery{}
al := &AuditLogService{auditQuery: esq}
req := v1.AuditLogSearchRequest{
req := v1.GetAuditLogSearchRequest{
Filter: &v1.AuditLogQueryFilter{
QueryString: "query-string",
Projects: []string{"project-one", "project-two"},
Expand Down Expand Up @@ -119,7 +119,7 @@ func TestGetAuditLogByProjectsSimple(t *testing.T) {
func TestGetAuditLogByProjectsNoProject(t *testing.T) {
esq := &mockElasticSearchQuery{}
al := &AuditLogService{auditQuery: esq}
req := v1.AuditLogSearchRequest{
req := v1.GetAuditLogSearchRequest{
Metadata: &v3.Metadata{UrlScope: "url/project"},
Filter: &v1.AuditLogQueryFilter{
QueryString: "query-string",
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/relay_audit_query_test.go
Expand Up @@ -87,7 +87,7 @@ type rmd struct {
func TestGetRelayAuditLogByProjectsSimple(t *testing.T) {
esq := &mockElasticSearchQuery{}
al := &RelayAuditService{relayQuery: esq}
req := v1.RelayAuditSearchRequest{
req := v1.RelayAuditRequest{
Filter: &v1.RelayAuditQueryFilter{
QueryString: "query-string",
Projects: []string{"project-one", "project-two"},
Expand Down Expand Up @@ -123,7 +123,7 @@ func TestGetRelayAuditLogByProjectsSimple(t *testing.T) {
func TestGetRelayAuditLogByProjectsNoProject(t *testing.T) {
esq := &mockElasticSearchQuery{}
al := &RelayAuditService{relayQuery: esq}
req := v1.RelayAuditSearchRequest{
req := v1.RelayAuditRequest{
Metadata: &v3.Metadata{UrlScope: "url/project"},
Filter: &v1.RelayAuditQueryFilter{
QueryString: "query-string",
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/user_test.go
Expand Up @@ -742,7 +742,7 @@ func TestUserForgotPassword(t *testing.T) {

uuuid := addUserFetchExpectation(mock)

fpreq := &userrpcv3.ForgotPasswordRequest{Username: "user-" + uuuid}
fpreq := &userrpcv3.UserForgotPasswordRequest{Username: "user-" + uuuid}
fpresp, err := us.ForgotPassword(context.Background(), fpreq)
if err != nil {
t.Fatal("could not fetch password recovery link:", err)
Expand Down

0 comments on commit 10396c7

Please sign in to comment.