Skip to content

Commit

Permalink
chore: Remove test for unsupported api (#2610)
Browse files Browse the repository at this point in the history
Co-authored-by: gpanshu <[email protected]>
  • Loading branch information
tylerjroach and gpanshu authored Oct 31, 2023
1 parent ae0ff32 commit cdc905b
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.json.JSONObject;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
Expand Down Expand Up @@ -89,28 +88,6 @@ public void tearDown() throws IOException {
server.shutdown();
}

/**
* Make an API request to the mock server and check the user agent
* header format on the request. Verify that the Android version is
* accurately reflected on the user agent.
* @throws Exception if API call fails or thread is interrupted while
* waiting for request
*/
@Test
@Config(sdk = 16)
@Ignore("minSDKVersion changed to 24 in favor of AWS Kotlin SDK dependency")
public void testUserAgentWithApi16() throws Exception {
String userAgent = checkUserAgent();

// Assert the correct format and content
assertNotNull(userAgent);
Matcher regexMatcher = USER_AGENT_PATTERN.matcher(userAgent);
assertTrue(regexMatcher.matches());
assertEquals("amplify-android", regexMatcher.group("libraryName"));
assertEquals("Android", regexMatcher.group("systemName"));
assertEquals("4.1.2", regexMatcher.group("systemVersion"));
}

/**
* Make an API request to the mock server and check the user agent
* header format on the request. systemName and systemVersion not
Expand Down

0 comments on commit cdc905b

Please sign in to comment.