Skip to content

Commit cdc905b

Browse files
tylerjroachgpanshu
andauthored
chore: Remove test for unsupported api (#2610)
Co-authored-by: gpanshu <[email protected]>
1 parent ae0ff32 commit cdc905b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

aws-api/src/test/java/com/amplifyframework/api/aws/AWSApiPluginUserAgentTest.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.json.JSONObject;
2424
import org.junit.After;
2525
import org.junit.Before;
26-
import org.junit.Ignore;
2726
import org.junit.Test;
2827
import org.junit.runner.RunWith;
2928
import org.robolectric.RobolectricTestRunner;
@@ -89,28 +88,6 @@ public void tearDown() throws IOException {
8988
server.shutdown();
9089
}
9190

92-
/**
93-
* Make an API request to the mock server and check the user agent
94-
* header format on the request. Verify that the Android version is
95-
* accurately reflected on the user agent.
96-
* @throws Exception if API call fails or thread is interrupted while
97-
* waiting for request
98-
*/
99-
@Test
100-
@Config(sdk = 16)
101-
@Ignore("minSDKVersion changed to 24 in favor of AWS Kotlin SDK dependency")
102-
public void testUserAgentWithApi16() throws Exception {
103-
String userAgent = checkUserAgent();
104-
105-
// Assert the correct format and content
106-
assertNotNull(userAgent);
107-
Matcher regexMatcher = USER_AGENT_PATTERN.matcher(userAgent);
108-
assertTrue(regexMatcher.matches());
109-
assertEquals("amplify-android", regexMatcher.group("libraryName"));
110-
assertEquals("Android", regexMatcher.group("systemName"));
111-
assertEquals("4.1.2", regexMatcher.group("systemVersion"));
112-
}
113-
11491
/**
11592
* Make an API request to the mock server and check the user agent
11693
* header format on the request. systemName and systemVersion not

0 commit comments

Comments
 (0)