Skip to content

Commit

Permalink
Extra testcase (very long useragent)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes committed Aug 28, 2017
1 parent a83877f commit 99e4d70
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions analyzer/src/main/resources/UserAgents/BrokenUseragents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1636,3 +1636,29 @@ config:
AgentNameVersion : 'Chrome 48.0.2564.95'
AgentNameVersionMajor : 'Chrome 48'

# Useragent that has a monster length (but happens in production!)
- test:
input:
user_agent_string: 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1 ;Win64; x64; Trident/6.0; ; ARM; Touch; WPDesktopSLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; Tablet PC 2.0SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; MS-RTC LM 8SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; .NET CLR 1.1.4322InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64.NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MATMJS.NET4.0E; .NET4.0C; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; AskTB5.6; EIE10;NLNLWOLSLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E)'
expected:
DeviceClass : 'Tablet'
DeviceName : 'Tablet PC'
DeviceBrand : 'Unknown'
DeviceCpu : 'AMD x86_64'
DeviceCpuBits : '64'
OperatingSystemClass : 'Desktop'
OperatingSystemName : 'Windows NT'
OperatingSystemVersion : 'Windows 7'
OperatingSystemNameVersion : 'Windows 7'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Trident'
LayoutEngineVersion : '6.0'
LayoutEngineVersionMajor : '6'
LayoutEngineNameVersion : 'Trident 6.0'
LayoutEngineNameVersionMajor : 'Trident 6'
AgentClass : 'Browser'
AgentName : 'Internet Explorer'
AgentVersion : '10.0'
AgentVersionMajor : '10'
AgentNameVersion : 'Internet Explorer 10.0'
AgentNameVersionMajor : 'Internet Explorer 10'

0 comments on commit 99e4d70

Please sign in to comment.