Skip to content

Commit

Permalink
Merge pull request #186 from onc-healthit/SITE-4016
Browse files Browse the repository at this point in the history
Update MU2SenderTests.java
  • Loading branch information
svalluripalli authored Jul 16, 2024
2 parents b2707b4 + 8075ead commit d87c96f
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ public Properties getProps(TestInput ti) {

return props;

}
public Properties getPropsForDirect6(TestInput ti) {
Properties props = new Properties();
if(ti.useTLS){
props.put("mail.smtp.auth", "true");
props.setProperty("mail.smtp.ssl.trust", "*");
props.put("mail.smtp.ssl.protocols", "TLSv1.2");
}
return props;

}

/**
Expand Down Expand Up @@ -1687,7 +1697,7 @@ public TestResult testDispositionNotificationSutReceiver(TestInput ti) {
tr.setCriteriamet(CriteriaStatus.STEP2);
HashMap<String, String> result = tr.getTestRequestResponses();

Properties props = getProps(ti);
Properties props = getPropsForDirect6(ti);
tr.setFetchType("imap1");
tr.setSearchType("both");
Session session = Session.getInstance(props, null);
Expand Down Expand Up @@ -2017,7 +2027,7 @@ public TestResult testBadDispositionNotificationSutReceiver(TestInput ti) {
tr.setCriteriamet(CriteriaStatus.STEP2);
HashMap<String, String> result = tr.getTestRequestResponses();

Properties props = getProps(ti);
Properties props = getPropsForDirect6(ti);
tr.setFetchType("imap1");
tr.setSearchType("either");
Session session = Session.getInstance(props, null);
Expand Down Expand Up @@ -2180,7 +2190,7 @@ public TestResult testBadAddressSutReceiver(TestInput ti) {
tr.setCriteriamet(CriteriaStatus.STEP2);
HashMap<String, String> result = tr.getTestRequestResponses();

Properties props = getProps(ti);
Properties props = getPropsForDirect6(ti);
tr.setFetchType("imap1");
tr.setSearchType("processedandfailure");
Session session = Session.getInstance(props, null);
Expand Down Expand Up @@ -2641,4 +2651,4 @@ public TestResult testPositiveDeliveryNotificationSmtp(TestInput ti) {

return tr;
}
}
}

0 comments on commit d87c96f

Please sign in to comment.