-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ios: get_probes_config: driver implementation and test for icmp-echo
- Loading branch information
1 parent
a04c348
commit 1bdc4d1
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test/ios/mocked_data/test_get_probes_config/normal/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"1": { | ||
"test-google-8": { | ||
"source": "Loopback0", | ||
"probe_type": "icmp-ping", | ||
"target": "8.8.8.8", | ||
"test_interval": 3, | ||
"probe_count": 20 | ||
} | ||
}, | ||
"2": { | ||
"test-google-4": { | ||
"source": "1.1.1.1", | ||
"probe_type": "icmp-ping", | ||
"target": "8.8.4.4", | ||
"test_interval": 3, | ||
"probe_count": 20 | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/ios/mocked_data/test_get_probes_config/normal/show_run___include_ip_sla__0_9_.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ip sla 1 | ||
icmp-echo 8.8.8.8 source-interface Loopback0 | ||
tag test-google-8 | ||
history lives-kept 1 | ||
history buckets-kept 20 | ||
timeout 2000 | ||
frequency 3 | ||
ip sla 2 | ||
icmp-echo 8.8.4.4 source-ip 1.1.1.1 | ||
tag test-google-4 | ||
history lives-kept 1 | ||
history buckets-kept 20 | ||
timeout 2000 | ||
frequency 3 |