Skip to content

Commit

Permalink
SWI-6778 Add Smoke Test For TFV (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel authored Jan 31, 2025
1 parent a7bbe2e commit 1a76945
Showing 1 changed file with 96 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* Bandwidth
* Bandwidth's Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.bandwidth.sdk.smoke;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import com.bandwidth.sdk.ApiClient;
import com.bandwidth.sdk.ApiException;
import com.bandwidth.sdk.ApiResponse;
import com.bandwidth.sdk.Configuration;
import com.bandwidth.sdk.api.TollFreeVerificationApi;
import com.bandwidth.sdk.auth.HttpBasicAuth;

import java.util.List;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;

import static com.bandwidth.sdk.utils.TestingEnvironmentVariables.*;

@SuppressWarnings("null")
public class TollFreeVerificationApiTest {
private static ApiClient defaultClient = Configuration.getDefaultApiClient();
private static HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
private static TollFreeVerificationApi api = new TollFreeVerificationApi(defaultClient);

@BeforeAll
public static void setUp() {
Basic.setUsername(BW_USERNAME);
Basic.setPassword(BW_PASSWORD);
}

@Test
@Disabled
public void createWebhookSubscriptionTest() throws ApiException {
// Test
}

@Test
@Disabled
public void deleteWebhookSubscriptionTest() throws ApiException {
// Test
}

@Test
@Disabled
public void getTollFreeVerificationStatusTest() throws ApiException {
// Test
}

@Test
public void listTollFreeUseCasesTest() throws ApiException {
ApiResponse<List<String>> response = api.listTollFreeUseCasesWithHttpInfo();

assertThat(response.getStatusCode(), is(200));
assertThat(response.getData(), instanceOf(List.class));
}

@Test
@Disabled
public void listWebhookSubscriptionsTest() throws ApiException {
// Test
}

@Test
@Disabled
public void requestTollFreeVerificationTest() throws ApiException {
// Test
}

@Test
@Disabled
public void updateTollFreeVerificationRequestTest() throws ApiException {
// Test
}

@Test
@Disabled
public void updateWebhookSubscriptionTest() throws ApiException {
// Test
}

}

0 comments on commit 1a76945

Please sign in to comment.