Skip to content

Commit

Permalink
[SHIBUI-1058]
Browse files Browse the repository at this point in the history
Updated unit tests to make use of createdBy.
  • Loading branch information
Bill Smith committed Jan 21, 2019
1 parent a8bb750 commit 2795f70
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ public ResponseEntity<?> getOneXml(@PathVariable String resourceId) throws Marsh
final String xml = this.openSamlObjects.marshalToXmlString(ed);
return ResponseEntity.ok(xml);
} else {
return ResponseEntity.status(HttpStatus.FORBIDDEN).body(new ErrorResponse(HttpStatus.FORBIDDEN,
"You are not authorized to perform the requested operation."));
return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

public class EntityDescriptorRepresentation implements Serializable {


private int version;

public EntityDescriptorRepresentation() {
}

Expand Down Expand Up @@ -63,6 +60,10 @@ public EntityDescriptorRepresentation(String id,

private List<String> attributeRelease;

private int version;

private String createdBy;

public String getId() {
return id;
}
Expand Down Expand Up @@ -204,4 +205,12 @@ public int getVersion() {
public void setVersion(int version) {
this.version = version;
}

public String getCreatedBy() {
return createdBy;
}

public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ public EntityDescriptorRepresentation createRepresentationFromDescriptor(org.ope
representation.setCreatedDate(ed.getCreatedDate());
representation.setModifiedDate(ed.getModifiedDate());
representation.setVersion(ed.hashCode());
representation.setCreatedBy(ed.getCreatedBy());

if (ed.getSPSSODescriptor("") != null && ed.getSPSSODescriptor("").getSupportedProtocols().size() > 0) {
ServiceProviderSsoDescriptorRepresentation serviceProviderSsoDescriptorRepresentation = representation.getServiceProviderSsoDescriptor(true);
Expand Down
Loading

0 comments on commit 2795f70

Please sign in to comment.