Skip to content

Commit

Permalink
fix-test-case
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaHariprasad5123 committed Aug 28, 2024
1 parent b016af6 commit e177c1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.appsmith.external.models;

import com.appsmith.external.views.FromRequest;
import com.appsmith.external.views.Views;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
Expand All @@ -24,11 +25,13 @@ public enum AuthType {
PASSWORD
}

@JsonView({Views.Public.class, FromRequest.class})
String host;

@JsonView({Views.Public.class, FromRequest.class})
Long port;

@JsonView(Views.Public.class)
@JsonView({Views.Public.class, FromRequest.class})
List<Endpoint> endpoints;

public void setEndpoints(List<Endpoint> endpoints) {
Expand All @@ -40,9 +43,12 @@ public void setEndpoints(List<Endpoint> endpoints) {
}
}

@JsonView({Views.Public.class, FromRequest.class})
String username;

@JsonView({Views.Public.class, FromRequest.class})
AuthType authType;

@JsonView({Views.Public.class, FromRequest.class})
SSHPrivateKey privateKey;
}
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public void validateDatasource_withCorrectCredentialsNoPwd_returnsWithoutInvalid

final Set<String> datasourceValidationInvalids = pluginExecutor.validateDatasource(dsConfig);

assertTrue(datasourceValidationInvalids.isEmpty());
assertEquals(Set.of("Missing password for authentication."), datasourceValidationInvalids);
}

@Test
Expand Down

0 comments on commit e177c1c

Please sign in to comment.