()
| 458 | } |
| 459 | |
| 460 | func (it *ValidDatasetTestSuite) TestTLSProtoTable() { |
| 461 | |
| 462 | type protoInfo struct { |
| 463 | JA3 string `ch:"ja3"` |
| 464 | Version string `ch:"version"` |
| 465 | ValidationStatus string `ch:"validation_status"` |
| 466 | Count uint64 `ch:"count"` |
| 467 | } |
| 468 | |
| 469 | tests := []struct { |
| 470 | name string |
| 471 | src string |
| 472 | fqdn string |
| 473 | protoInfoList []protoInfo |
| 474 | }{ |
| 475 | { |
| 476 | name: "Single Entry 1", |
| 477 | src: "10.55.100.107", |
| 478 | fqdn: "comet.yahoo.com", |
| 479 | protoInfoList: []protoInfo{ |
| 480 | {"10ee8d30a5d01c042afd7b2b205facc4", "TLSv12", "ok", 19}, |
| 481 | }, |
| 482 | }, |
| 483 | { |
| 484 | name: "Single Entry 2", |
| 485 | src: "10.55.100.107", |
| 486 | fqdn: "www.googletagmanager.com", |
| 487 | protoInfoList: []protoInfo{ |
| 488 | {"10ee8d30a5d01c042afd7b2b205facc4", "TLSv12", "ok", 84}, |
| 489 | }, |
| 490 | }, |
| 491 | { |
| 492 | name: "Single Entry 3", |
| 493 | src: "10.55.100.110", |
| 494 | fqdn: "www.facebook.com", |
| 495 | protoInfoList: []protoInfo{ |
| 496 | {"10ee8d30a5d01c042afd7b2b205facc4", "TLSv12", "ok", 152}, |
| 497 | }, |
| 498 | }, |
| 499 | { |
| 500 | name: "Multiple Entries 1", |
| 501 | src: "10.55.100.111", |
| 502 | fqdn: "ml314.com", |
| 503 | protoInfoList: []protoInfo{ |
| 504 | {"10ee8d30a5d01c042afd7b2b205facc4", "TLSv12", "ok", 41}, |
| 505 | {"b89be837a4a296476fcd758189908728", "TLSv10", "", 1}, |
| 506 | {"b89be837a4a296476fcd758189908728", "TLSv10", "ok", 1}, |
| 507 | {"10ee8d30a5d01c042afd7b2b205facc4", "TLSv12", "", 87}, |
| 508 | {"10ee8d30a5d01c042afd7b2b205facc4", "", "", 1}, |
| 509 | }, |
| 510 | }, |
| 511 | { |
| 512 | name: "Multiple Entries 2", |
| 513 | src: "10.55.100.100", |
| 514 | fqdn: "oneclient.sfx.ms", |
| 515 | protoInfoList: []protoInfo{ |
| 516 | {"a0e9f5d64349fb13191bc781f81f42e1", "TLSv12", "", 1}, |
| 517 | {"bd0bf25947d4a37404f0424edf4db9ad", "TLSv12", "ok", 2}, |
nothing calls this directly
no test coverage detected