You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let data = "ServerName;SRV1;InstanceName;INST1;IsClustered;No;Version;15.0.2000.5;tcp;1433;;ServerName;SRV1;InstanceName;INST2;IsClustered;No;Version;16.0.1000.6;tcp;1434;np;\\\\SRV1\\pipe\\MSSQL$INST2\\sql\\query;;";
200
-
let port = parse_ssrp_response(data,"INST2").unwrap();
204
+
let port = find_instance_tcp_port(data,"INST2").unwrap();
201
205
assert_eq!(port,1434);
202
206
}
203
207
204
208
#[test]
205
-
fntest_parse_ssrp_response_case_insensitive(){
209
+
fntest_find_instance_tcp_port_case_insensitive(){
206
210
let data = "ServerName;MYSERVER;InstanceName;SQLExpress;IsClustered;No;Version;15.0.2000.5;tcp;1433;;";
207
-
let port = parse_ssrp_response(data,"sqlexpress").unwrap();
211
+
let port = find_instance_tcp_port(data,"sqlexpress").unwrap();
0 commit comments