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
Issue #210: Ability to parse multiple maintenance windows from Zayo maintenance notification (#214)
* Add multiple windows to Zayo maintenances
* Updated unit test cases for Zayo Parser
* Fixed CI/black job: replace single quotes with double quotes
* Fixed CI/black job: double spaces in between classes
* Fixed pydocstyle job: No blank lines allowed after function docstring
---------
Co-authored-by: mkekez <[email protected]>
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
3
5
"circuits": [
4
6
{
5
7
"circuit_id": "/OGYX/123456/ /ZYO /",
@@ -10,10 +12,42 @@
10
12
"impact": "NO-IMPACT"
11
13
}
12
14
],
13
-
"end": 1635937200,
14
-
"maintenance_id": "TTN-0003456789",
15
+
"status": "IN-PROCESS",
15
16
"start": 1635746460,
17
+
"end": 1635764400
18
+
},
19
+
{
20
+
"maintenance_id": "TTN-0003456789",
21
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
22
+
"circuits": [
23
+
{
24
+
"circuit_id": "/OGYX/123456/ /ZYO /",
25
+
"impact": "NO-IMPACT"
26
+
},
27
+
{
28
+
"circuit_id": "/OGYX/234567/ /ZYO /",
29
+
"impact": "NO-IMPACT"
30
+
}
31
+
],
32
+
"status": "IN-PROCESS",
33
+
"start": 1635832860,
34
+
"end": 1635850800
35
+
},
36
+
{
37
+
"maintenance_id": "TTN-0003456789",
38
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
39
+
"circuits": [
40
+
{
41
+
"circuit_id": "/OGYX/123456/ /ZYO /",
42
+
"impact": "NO-IMPACT"
43
+
},
44
+
{
45
+
"circuit_id": "/OGYX/234567/ /ZYO /",
46
+
"impact": "NO-IMPACT"
47
+
}
48
+
],
16
49
"status": "IN-PROCESS",
17
-
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
Copy file name to clipboardExpand all lines: tests/unit/data/zayo/zayo5_result.json
+39-1Lines changed: 39 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,49 @@
11
11
"impact": "NO-IMPACT"
12
12
}
13
13
],
14
-
"end": 1635937200,
14
+
"end": 1635764400,
15
15
"maintenance_id": "TTN-0003456789",
16
16
"stamp": 1635918838,
17
+
"status": "IN-PROCESS",
17
18
"start": 1635746460,
19
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
20
+
},
21
+
{
22
+
"account": "Some Customer Inc",
23
+
"circuits": [
24
+
{
25
+
"circuit_id": "/OGYX/123456/ /ZYO /",
26
+
"impact": "NO-IMPACT"
27
+
},
28
+
{
29
+
"circuit_id": "/OGYX/234567/ /ZYO /",
30
+
"impact": "NO-IMPACT"
31
+
}
32
+
],
33
+
"end": 1635850800,
34
+
"maintenance_id": "TTN-0003456789",
35
+
"stamp": 1635918838,
36
+
"status": "IN-PROCESS",
37
+
"start": 1635832860,
38
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
39
+
},
40
+
{
41
+
"account": "Some Customer Inc",
42
+
"circuits": [
43
+
{
44
+
"circuit_id": "/OGYX/123456/ /ZYO /",
45
+
"impact": "NO-IMPACT"
46
+
},
47
+
{
48
+
"circuit_id": "/OGYX/234567/ /ZYO /",
49
+
"impact": "NO-IMPACT"
50
+
}
51
+
],
52
+
"end": 1635937200,
53
+
"maintenance_id": "TTN-0003456789",
54
+
"stamp": 1635918838,
18
55
"status": "IN-PROCESS",
56
+
"start": 1635919260,
19
57
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
3
5
"circuits": [
4
6
{
5
7
"circuit_id": "/OGYX/123418/ /ZYO /",
6
8
"impact": "NO-IMPACT"
7
9
},
8
10
{
9
-
"circuit_id":"/OGYX/123408/ /ZYO /",
11
+
"circuit_id":"/OGYX/123408/ /ZYO /",
10
12
"impact": "NO-IMPACT"
11
13
}
12
14
],
13
-
"end": 1635937200,
14
-
"maintenance_id": "TTN-0004567890",
15
+
"status": "COMPLETED",
15
16
"start": 1635746460,
17
+
"end": 1635764400
18
+
},
19
+
{
20
+
"maintenance_id": "TTN-0004567890",
21
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
22
+
"circuits": [
23
+
{
24
+
"circuit_id": "/OGYX/123418/ /ZYO /",
25
+
"impact": "NO-IMPACT"
26
+
},
27
+
{
28
+
"circuit_id":"/OGYX/123408/ /ZYO /",
29
+
"impact": "NO-IMPACT"
30
+
}
31
+
],
32
+
"status": "COMPLETED",
33
+
"start": 1635832860,
34
+
"end": 1635850800
35
+
},
36
+
{
37
+
"maintenance_id": "TTN-0004567890",
38
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic.",
39
+
"circuits": [
40
+
{
41
+
"circuit_id": "/OGYX/123418/ /ZYO /",
42
+
"impact": "NO-IMPACT"
43
+
},
44
+
{
45
+
"circuit_id":"/OGYX/123408/ /ZYO /",
46
+
"impact": "NO-IMPACT"
47
+
}
48
+
],
16
49
"status": "COMPLETED",
17
-
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
Copy file name to clipboardExpand all lines: tests/unit/data/zayo/zayo6_result.json
+41-3Lines changed: 41 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,53 @@
7
7
"impact": "NO-IMPACT"
8
8
},
9
9
{
10
-
"circuit_id":"/OGYX/123408/ /ZYO /",
10
+
"circuit_id":"/OGYX/123408/ /ZYO /",
11
11
"impact": "NO-IMPACT"
12
12
}
13
13
],
14
-
"end": 1635937200,
14
+
"end": 1635764400,
15
15
"maintenance_id": "TTN-0004567890",
16
16
"stamp": 1635936668,
17
+
"status": "COMPLETED",
17
18
"start": 1635746460,
19
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
20
+
},
21
+
{
22
+
"account": "Some Customer Inc",
23
+
"circuits": [
24
+
{
25
+
"circuit_id": "/OGYX/123418/ /ZYO /",
26
+
"impact": "NO-IMPACT"
27
+
},
28
+
{
29
+
"circuit_id":"/OGYX/123408/ /ZYO /",
30
+
"impact": "NO-IMPACT"
31
+
}
32
+
],
33
+
"end": 1635850800,
34
+
"maintenance_id": "TTN-0004567890",
35
+
"stamp": 1635936668,
36
+
"status": "COMPLETED",
37
+
"start": 1635832860,
38
+
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
39
+
},
40
+
{
41
+
"account": "Some Customer Inc",
42
+
"circuits": [
43
+
{
44
+
"circuit_id": "/OGYX/123418/ /ZYO /",
45
+
"impact": "NO-IMPACT"
46
+
},
47
+
{
48
+
"circuit_id":"/OGYX/123408/ /ZYO /",
49
+
"impact": "NO-IMPACT"
50
+
}
51
+
],
52
+
"end": 1635937200,
53
+
"maintenance_id": "TTN-0004567890",
54
+
"stamp": 1635936668,
18
55
"status": "COMPLETED",
56
+
"start": 1635919260,
19
57
"summary": "Routine Fiber splice - NO Impact is Expected to your services. This notification is to advise you that we will be entering a splice case that houses live traffic."
0 commit comments