Skip to content

Commit

Permalink
add-secure-endpoint-test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmahoney committed Aug 7, 2024
1 parent 6bb0f45 commit e12b7d1
Show file tree
Hide file tree
Showing 3 changed files with 2,615 additions and 1,502 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ public static void Setup() {
assertNotNull(YOUR_API_KEY);
}

@Test
public void CanUseSecureEndpoint() throws Exception {
//<gen>java_demo_create_secure
ApiClient secureClient = Configuration.getDefaultApiClient();
secureClient.setApiKey(YOUR_API_KEY);
secureClient.setBasePath("https://secure-api.mailslurp.com");
secureClient.setConnectTimeout(TIMEOUT_MILLIS.intValue());
InboxControllerApi inboxControllerApi = new InboxControllerApi(secureClient);
InboxDto inbox = inboxControllerApi.createInboxWithDefaults();
//</gen>
assertNotNull(inbox.getId());
}

@Test
public void CanCreateInboxes() throws Exception {

Expand Down
2 changes: 1 addition & 1 deletion javascript-axios/example.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("mailslurp axios example", () => {
// expect an inbox to have been created
expect(inbox.id).toBeDefined()
expect(inbox.emailAddress).toBeDefined()
expect(inbox.emailAddress).toMatch(/.+@mailslurp.com/)
expect(inbox.emailAddress).toMatch(/.+@mailslurp.net/)
})

test("can send a real email between two addresses", async () => {
Expand Down
Loading

0 comments on commit e12b7d1

Please sign in to comment.