Skip to content

SWI-6778 Add Smoke Test For TFV #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: letstalk@bandwidth.com
*
* 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
}

}