Skip to content

Commit 007c2f5

Browse files
authored
Add additional status for Lumen (#117)
* Add additional status for Lumen
1 parent 6d9eb7a commit 007c2f5

File tree

5 files changed

+154
-0
lines changed

5 files changed

+154
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v2.0.6
4+
5+
### Added
6+
7+
- #116 - New `EmailSubjectParser` for Colt notifications and tests.
8+
- #117 - Add new notification status of `Alternate Night` for Lumen.
9+
310
## v2.0.5 - 2021-11-18
411

512
### Fixed

circuit_maintenance_parser/parsers/lumen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def parse_tables(self, tables: ResultSet, data: Dict):
9595
data["status"] = Status("RE-SCHEDULED")
9696
elif status_string == "Not Completed":
9797
data["status"] = Status("CANCELLED")
98+
elif status_string == "Alternate Night":
99+
data["status"] = Status("RE-SCHEDULED")
98100
elif "status" not in data:
99101
# Update to an existing ticket may not include an update to the status - make a guess
100102
data["status"] = "CONFIRMED"

tests/unit/data/lumen/lumen6.html

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<div style="font-family:Arial;font-size:10pt">
2+
[ EXTERNAL ]
3+
<div style="font-family:Arial;font-size:10pt">
4+
<div style="font-family:Arial;font-size:10pt;overflow:hidden"><br>
5+
</div>
6+
<br>
7+
<span style="font-size:12pt;font-weight:bold">Scheduled Maintenance Window #: 123456789-1
8+
</span><span style="font-size:12pt;font-weight:bold"><br>
9+
<br>
10+
Summary: </span><br>
11+
<br>
12+
Lumen intends to carry out internal maintenance within its network. This has been designated as ESSENTIAL. The nature of this work is to repair/replace fiber and is required in order to avoid unplanned outages from damages related to natural causes.
13+
<br>
14+
The estimated GPS location of work is: <br>
15+
US-11 &amp; Main Street, TN LAT: 35.1111 LONG: -89.1111 <br>
16+
An alternate/backup maintenance window has been scheduled in the event work is unable to be completed on the primary night. Currently no services are scheduled to be impacted on the alternate night. Should the alternate night be deemed necessary, you will receive
17+
an updated notification advising which services will be impacted on that night. Please see the date and times of the alternate night below.
18+
<br>
19+
<b>Lumen sincerely apologizes for any inconvenience caused by this maintenance</b>.
20+
<br>
21+
<br>
22+
<span style="font-size:12pt;font-weight:bold">Updates: </span>
23+
<br>
24+
<br>
25+
2021-11-18 03:57:47 GMT - The scheduled maintenance window 123456789-1 has ended.<br>
26+
<br>
27+
<span style="font-size:12pt;font-weight:bold">Customer Impact:
28+
</span>
29+
<p></p>
30+
<hr size="2" color="black">
31+
<b>Work on the services below will be performed during the alternate night maintenance window.</b>
32+
<p><span><span>123456789-2</span>
33+
<br>
34+
</span></p><table cellspacing="0" cellpadding="5" border="1">
35+
<tbody>
36+
<tr>
37+
<td style="font-family:Arial;font-size:8pt">Start</td>
38+
<td style="font-family:Arial;font-size:8pt">End</td>
39+
</tr>
40+
<tr>
41+
<td style="font-family:Arial;font-size:8pt">2021-11-19 06:00 GMT (Greenwich Mean Time)</td>
42+
<td style="font-family:Arial;font-size:8pt">2021-11-19 12:00 GMT (Greenwich Mean Time)</td>
43+
</tr>
44+
<tr>
45+
<td style="font-family:Arial;font-size:8pt">2021-11-19 00:00 CST (Central Standard Time)</td>
46+
<td style="font-family:Arial;font-size:8pt">2021-11-19 06:00 CST (Central Standard Time)</td>
47+
</tr>
48+
</tbody>
49+
</table>
50+
<br>
51+
<br>
52+
<span>Maintenance Location(s): </span>KENTUCKY, TN UNITED STATES<br>
53+
<p></p>
54+
<div style="font-family:Arial;font-size:10pt">
55+
<table cellspacing="0" cellpadding="5" border="1">
56+
<tbody>
57+
<tr>
58+
<td style="font-family:Arial;font-size:8pt">Customer Name</td>
59+
<td style="font-family:Arial;font-size:8pt">Circuit ID</td>
60+
<td style="font-family:Arial;font-size:8pt">Alt Circuit ID</td>
61+
<td style="font-family:Arial;font-size:8pt">Bandwidth</td>
62+
<td style="font-family:Arial;font-size:8pt">A Location</td>
63+
<td style="font-family:Arial;font-size:8pt">Z Location</td>
64+
<td style="font-family:Arial;font-size:8pt">Impact Type</td>
65+
<td style="font-family:Arial;font-size:8pt">Maximum Duration</td>
66+
<td style="font-family:Arial;font-size:8pt">Order Number</td>
67+
<td style="font-family:Arial;font-size:8pt">Status</td>
68+
</tr>
69+
<tr>
70+
<td style="font-family:Arial;font-size:8pt">ACME INC</td>
71+
<td style="font-family:Arial;font-size:8pt">ETH1000-111111</td>
72+
<td style="font-family:Arial;font-size:8pt">N/A</td>
73+
<td style="font-family:Arial;font-size:8pt">GIGE</td>
74+
<td style="font-family:Arial;font-size:8pt">MAIN STREET USA</td>
75+
<td style="font-family:Arial;font-size:8pt">&nbsp;</td>
76+
<td style="font-family:Arial;font-size:8pt">Outage</td>
77+
<td style="font-family:Arial;font-size:8pt">2 hours </td>
78+
<td style="font-family:Arial;font-size:8pt">&nbsp;</td>
79+
<td style="font-family:Arial;font-size:8pt">Alternate Night</td>
80+
</tr>
81+
</tbody>
82+
</table>
83+
</div>
84+
<hr size="2" color="black">
85+
<br>
86+
<br>
87+
Click here for immediate information on scheduled maintenances via the Lumen Customer Portal.
88+
<br>
89+
<br>
90+
Click here to manage your notification subscriptions via the Lumen Customer Portal.
91+
<br>
92+
<br>
93+
Click here to open a case for assistance on this scheduled maintenance via the Lumen Customer Portal.
94+
<br>
95+
<br>
96+
Click here to give us feedback on this scheduled maintenance.
97+
<br>
98+
<br>
99+
For updates anytime via telephone: <br>
100+
<br>
101+
&nbsp;&nbsp; North America: 877-453-8353 <br>
102+
<br>
103+
&nbsp;&nbsp; Europe, Middle East, and Africa: +44 1270 727 126 <br>
104+
<br>
105+
&nbsp;&nbsp; Latin America: <br>
106+
<br>
107+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Argentina: 0800-800-5383 <br>
108+
<br>
109+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Brazil: 0800-887-3333 <br>
110+
<br>
111+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Chile: 800-360-303 <br>
112+
<br>
113+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Colombia: 01 8000 117997 <br>
114+
<br>
115+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ecuador: 1800-400-408 <br>
116+
<br>
117+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Peru: 0800-7-0662 <br>
118+
<br>
119+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Venezuela: 0800-538-3538 <br>
120+
<br>
121+
The information in this communication is confidential and may not be disclosed to third parties or shared further without the express permission of Lumen.</div><div class="yj6qo"></div><div class="adL">
122+
</div>
123+
</div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"account": "ACME INC",
4+
"circuits": [
5+
{
6+
"circuit_id": "ETH1000-111111",
7+
"impact": "OUTAGE"
8+
}
9+
],
10+
"end": 1637323200,
11+
"maintenance_id": "123456789-1",
12+
"stamp": 1637207867,
13+
"start": 1637301600,
14+
"status": "RE-SCHEDULED",
15+
"summary": "Lumen intends to carry out internal maintenance within its network. This has been designated as ESSENTIAL. The nature of this work is to repair/replace fiber and is required in order to avoid unplanned outages from damages related to natural causes."
16+
}
17+
]

tests/unit/test_parsers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@
186186
Path(dir_path, "data", "lumen", "lumen5.html"),
187187
Path(dir_path, "data", "lumen", "lumen5_result.json"),
188188
),
189+
(
190+
HtmlParserLumen1,
191+
Path(dir_path, "data", "lumen", "lumen6.html"),
192+
Path(dir_path, "data", "lumen", "lumen6_result.json"),
193+
),
189194
# Megaport
190195
(
191196
HtmlParserMegaport1,

0 commit comments

Comments
 (0)