Skip to content

Commit

Permalink
do not expect error when connecting without params
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Jan 10, 2024
1 parent 9c2a13c commit 4f6bec0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions agent/connectionchecker/connection_checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ func TestConnectionChecker(t *testing.T) {
Type: inventorypb.ServiceType_MONGODB_SERVICE,
Timeout: durationpb.New(3 * time.Second),
},
expectedErr: `\(Unauthorized\) (?:command getDiagnosticData requires authentication|` +
`there are no users authenticated|` +
`not authorized on admin to execute command \{ getDiagnosticData\: 1 \})`,
},
{
name: "MongoDB wrong params",
Expand Down
3 changes: 0 additions & 3 deletions agent/serviceinfobroker/service_info_broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ func TestServiceInfoBroker(t *testing.T) {
Type: inventorypb.ServiceType_MONGODB_SERVICE,
Timeout: durationpb.New(3 * time.Second),
},
expectedErr: `\(Unauthorized\) (?:command getDiagnosticData requires authentication|` +
`there are no users authenticated|` +
`not authorized on admin to execute command \{ getDiagnosticData\: 1 \})`,
},
{
name: "MongoDB wrong params",
Expand Down

0 comments on commit 4f6bec0

Please sign in to comment.