Commit 4f0f4c68 authored by Felipe Fonseca's avatar Felipe Fonseca
Browse files

Merge branch 'release/1.3.0'

parents cb38473f ac5e32b0
......@@ -199,16 +199,29 @@ class Reservation(object):
leases = []
for schedule in self.schedules:
lease = {
"name": str(uuid.uuid4()),
"valid_from": schedule['start'],
"valid_until": schedule['end'],
"policy": "best-effort",
"use_slice_components": True,
"account_attributes": {
"urn": self.slice['slice_urn']
},
}
if int(schedule['vlan']) == -1:
lease = {
"name": str(uuid.uuid4()),
"valid_from": schedule['start'],
"valid_until": schedule['end'],
"policy": "best-effort",
"use_slice_components": True,
"account_attributes": {
"urn": self.slice['slice_urn']
},
}
else:
lease = {
"name": str(uuid.uuid4()),
"valid_from": schedule['start'],
"valid_until": schedule['end'],
"vlan": schedule['vlan'],
"policy": "best-effort",
"use_slice_components": True,
"account_attributes": {
"urn": self.slice['slice_urn']
},
}
leases.append(lease)
return leases
......@@ -28,7 +28,7 @@ class Test(object):
islands = ['CPQD', 'NOC', 'PUCRS', 'RNP', 'UFBA', 'UFF', 'UFG', 'UFMG', 'UFPA', 'UFPE', 'UFRGS', 'UFRJ', 'UFSCAR', 'UFU', 'UNIFACS', 'USP']
for test_type in test_types:
config_file = open('{}/{}-config.json'.format(tests_location, test_type), 'r')
config_file = open('{}/{}-config.json'.format('/home/rnp', test_type), 'r')
config_data = json.load(config_file)
periodicity = config_data['periodicity']
......
......@@ -280,6 +280,48 @@ $(document).ready(function() {
}
});
function removeVlan(arr, vlan) {
return arr.filter(function(ele){
return ele != vlan;
});
}
function getAvailableVlansForSchedule(startDate, endDate) {
var allEvents = $('#calendar').fullCalendar('clientEvents');
var overlapEvnts = [];
$.grep(allEvents, function (v) {
var eventStart = parseInt((new Date(v.start)).getTime());
var eventEnd = parseInt((new Date(v.end)).getTime());
if((startDate >= eventStart && startDate <= eventEnd)
|| (endDate >= eventStart && endDate <= eventEnd)
|| (eventStart >= startDate && eventStart <= endDate)
|| (eventEnd >= startDate && eventEnd <= endDate))
{
overlapEvnts.push(v);
}
});
// Checks for resource reservation conflict...
var availableVlans = JSON.parse(JSON.stringify(window.vlans));
overlapEvnts.forEach(function(evnt) {
if (evnt.user_event === true) {
return;
}
if (evnt.resources == undefined) {
return;
}
evnt.resources.forEach(function(item) {
if (item.resource_type === 'vlan') {
availableVlans = removeVlan(availableVlans, item.name)
}
});
});
return availableVlans;
}
function addScheduleEvent(eventData) {
var calendar = window.calendar;
if(calendar.length > 0) {
......@@ -298,9 +340,14 @@ function update_schedules() {
$.each(myEvents, function(index, event) {
schedules.push({
"start": moment(event.start).format('YYYY-MM-DD HH:mm:ss Z'),
"end": moment(event.end).format('YYYY-MM-DD HH:mm:ss Z')
"end": moment(event.end).format('YYYY-MM-DD HH:mm:ss Z'),
"availableVlans": getAvailableVlansForSchedule(event.start, event.end),
"vlan": -1
});
});
updateNetworkTab(schedules);
schedules.sort((a, b) => (a["start"] > b["start"]) ? 1: -1);
window.selected_schedules = schedules
$("input[name=schedules]").val(JSON.stringify(schedules));
if (schedules.length > 0) {
......@@ -310,3 +357,32 @@ function update_schedules() {
}
}
}
function updateNetworkTab(schedules) {
if (schedules == undefined) {
return;
}
html = ''
$.each(schedules, function(index, schedule) {
availableVlans = ''
$.each(schedule["availableVlans"], function(index, vlan) {
availableVlans += `<option value="${vlan}">${vlan}</option>`
});
html += `<div class="row">
<div class="col-sm-12 vlan-container">
<label for="vlans">"Schedule ${index + 1}: VLAN ID"</label>
<select class="form-control" name="vlans" onchange="updateScheduleVlan(${index}, this.value)">
<option value="-1" disabled selected>"Select a vlan"</option>
${availableVlans}
</select>
</div>
</div>`
});
$('#schedule_vlans').html(html)
}
function updateScheduleVlan(index, value) {
window.selected_schedules[index]["vlan"] = value
$("input[name=schedules]").val(JSON.stringify(window.selected_schedules));
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<robot rpa="false" generated="20191030 23:45:33.156" generator="Robot 3.1.2 (Python 2.7.16 on linux2)">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests" id="s1" name="CPQD">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot" id="s1-s1" name="GetResources">
<test id="s1-s1-t1" name="OMF Broker should return any resource">
<robot rpa="false" generator="Robot 3.1.2 (Python 3.5.2 on linux)" generated="20191108 12:00:03.651">
<suite name="CPQD" id="s1" source="/home/rnp/fibrechecker/tests">
<suite name="GetResources" id="s1-s1" source="/home/rnp/fibrechecker/tests/GetResources.robot">
<test name="OMF Broker should return any resource" id="s1-s1-t1">
<kw name="Get Resources" library="GetResourcesLibrary">
<arguments>
<arg>${address.broker}</arg>
</arguments>
<msg timestamp="20191030 23:45:33.253" level="INFO">HTTP GET https://10.138.11.112:8001/resources/</msg>
<msg timestamp="20191030 23:45:38.258" level="FAIL">Could not GET Resources on 10.138.11.112</msg>
<status status="FAIL" endtime="20191030 23:45:38.259" starttime="20191030 23:45:33.252"></status>
<msg level="INFO" timestamp="20191108 12:00:04.094">HTTP GET https://10.138.11.112:8001/resources/</msg>
<msg level="FAIL" timestamp="20191108 12:00:09.107">Could not GET Resources on 10.138.11.112</msg>
<status status="FAIL" starttime="20191108 12:00:04.093" endtime="20191108 12:00:09.108"></status>
</kw>
<tags>
<tag>CPqD</tag>
<tag>GetResourcesTest</tag>
</tags>
<status status="FAIL" endtime="20191030 23:45:38.259" critical="yes" starttime="20191030 23:45:33.252">Could not GET Resources on 10.138.11.112</status>
<status critical="yes" status="FAIL" starttime="20191108 12:00:04.093" endtime="20191108 12:00:09.108">Could not GET Resources on 10.138.11.112</status>
</test>
<status status="FAIL" endtime="20191030 23:45:38.259" starttime="20191030 23:45:33.167"></status>
<status status="FAIL" starttime="20191108 12:00:03.812" endtime="20191108 12:00:09.109"></status>
</suite>
<status status="FAIL" endtime="20191030 23:45:38.259" starttime="20191030 23:45:33.158"></status>
<status status="FAIL" starttime="20191108 12:00:03.667" endtime="20191108 12:00:09.111"></status>
</suite>
<statistics>
<total>
......@@ -31,8 +31,8 @@
<stat fail="1" pass="0">GetResourcesTest</stat>
</tag>
<suite>
<stat fail="1" id="s1" name="CPQD" pass="0">CPQD</stat>
<stat fail="1" id="s1-s1" name="GetResources" pass="0">CPQD.GetResources</stat>
<stat name="CPQD" fail="1" pass="0" id="s1">CPQD</stat>
<stat name="GetResources" fail="1" pass="0" id="s1-s1">CPQD.GetResources</stat>
</suite>
</statistics>
<errors>
......
......@@ -5,7 +5,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="Robot Framework 3.1.2 (Python 2.7.16 on linux2)" name="Generator">
<meta content="Robot Framework 3.1.2 (Python 3.5.2 on linux)" name="Generator">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKcAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAqAAAAAAAAAAAAAAAAAAAALIAAAD/AAAA4AAAANwAAADcAAAA3AAAANwAAADcAAAA3AAAANwAAADcAAAA4AAAAP8AAACxAAAAAAAAAKYAAAD/AAAAuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC/AAAA/wAAAKkAAAD6AAAAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN8AAAD/AAAA+gAAAMMAAAAAAAAAAgAAAGsAAABrAAAAawAAAGsAAABrAAAAawAAAGsAAABrAAAADAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAIsAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAANEAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAAAAAAAAMgAAADIAAAAyAAAAMgAAADIAAAAyAAAAMgAAADIAAAAFAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAADwAAAB8AAAAAAAAAGAAAABcAAAAAAAAAH8AAABKAAAAAAAAAAAAAAAAAAAA2gAAAP8AAAD6AAAAwwAAAAAAAADCAAAA/wAAACkAAADqAAAA4QAAAAAAAAD7AAAA/wAAALAAAAAGAAAAAAAAANoAAAD/AAAA+gAAAMMAAAAAAAAAIwAAAP4AAAD/AAAA/wAAAGAAAAAAAAAAAAAAAMkAAAD/AAAAigAAAAAAAADaAAAA/wAAAPoAAADDAAAAAAAAAAAAAAAIAAAAcAAAABkAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAA2gAAAP8AAAD7AAAAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN4AAAD/AAAAqwAAAP8AAACvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALIAAAD/AAAAsgAAAAAAAAC5AAAA/wAAAMoAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMkAAAD/AAAAvAAAAAAAAAAAAAAAAAAAAKwAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAArQAAAAAAAAAAwAMAAIABAAAf+AAAP/wAAD/8AAAgBAAAP/wAAD/8AAA//AAAJIwAADHEAAA//AAAP/wAAB/4AACAAQAAwAMAAA==">
<style media="all" type="text/css">
/* Generic and misc styles */
......@@ -1735,13 +1735,13 @@ function stopPropagation(event) {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[0,0,5101],[[4,5,6,0,[],[0,9,5092],[],[[7,0,1,0,[8,9],[0,94,5007,10],[[0,11,12,0,0,13,0,0,[0,94,5007],[],[[95,2,14],[5100,5,10]]]]]],[],[1,0,1,0]]],[],[],[1,0,1,0]];
window.output["suite"] = [1,2,3,0,[],[0,0,5444],[[4,5,6,0,[],[0,145,5297],[],[[7,0,1,0,[8,9],[0,426,5015,10],[[0,11,12,0,0,13,0,0,[0,426,5015],[],[[427,2,14],[5440,5,10]]]]]],[],[1,0,1,0]]],[],[],[1,0,1,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*CPQD","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests","*../../../tests","*GetResources","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*CPqD","*GetResourcesTest","*Could not GET Resources on 10.138.11.112","*Get Resources","*GetResourcesLibrary","*${address.broker}","*HTTP GET <a href=\"https://10.138.11.112:8001/resources/\">https://10.138.11.112:8001/resources/\x3c/a>"]);
window.output["strings"] = window.output["strings"].concat(["*","*CPQD","*/home/rnp/fibrechecker/tests","*../../../tests","*GetResources","*/home/rnp/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*CPqD","*GetResourcesTest","*Could not GET Resources on 10.138.11.112","*Get Resources","*GetResourcesLibrary","*${address.broker}","*HTTP GET <a href=\"https://10.138.11.112:8001/resources/\">https://10.138.11.112:8001/resources/\x3c/a>"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:05","fail":1,"label":"Critical Tests","pass":0},{"elapsed":"00:00:05","fail":1,"label":"All Tests","pass":0}],[{"elapsed":"00:00:05","fail":1,"label":"CPqD","pass":0},{"elapsed":"00:00:05","fail":1,"label":"GetResourcesTest","pass":0}],[{"elapsed":"00:00:05","fail":1,"id":"s1","label":"CPQD","name":"CPQD","pass":0},{"elapsed":"00:00:05","fail":1,"id":"s1-s1","label":"CPQD.GetResources","name":"GetResources","pass":0}]];
......@@ -1750,13 +1750,13 @@ window.output["stats"] = [[{"elapsed":"00:00:05","fail":1,"label":"Critical Test
window.output["errors"] = [];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1572489933158;
window.output["baseMillis"] = 1573221603667;
</script>
<script type="text/javascript">
window.output["generated"] = 5104;
window.output["generated"] = 5451;
</script>
<script type="text/javascript">
window.settings = {"defaultLevel":"INFO","minLevel":"INFO","reportURL":"CPQD-getresources-report-20191030-234533.html","rpa":false,"splitLogBase":"CPQD-getresources-log-20191030-234533","title":""};
window.settings = {"defaultLevel":"INFO","minLevel":"INFO","reportURL":"CPQD-getresources-report-20191108-120003.html","rpa":false,"splitLogBase":"CPQD-getresources-log-20191108-120003","title":""};
</script>
<title></title>
</head>
......
......@@ -5,7 +5,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="Robot Framework 3.1.2 (Python 2.7.16 on linux2)" name="Generator">
<meta content="Robot Framework 3.1.2 (Python 3.5.2 on linux)" name="Generator">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKcAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAqAAAAAAAAAAAAAAAAAAAALIAAAD/AAAA4AAAANwAAADcAAAA3AAAANwAAADcAAAA3AAAANwAAADcAAAA4AAAAP8AAACxAAAAAAAAAKYAAAD/AAAAuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC/AAAA/wAAAKkAAAD6AAAAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN8AAAD/AAAA+gAAAMMAAAAAAAAAAgA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AAAP/wAAB/4AACAAQAAwAMAAA==">
<style media="all" type="text/css">
/* Generic and misc styles */
......@@ -1585,25 +1585,25 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[0,0,5101],[[4,5,6,0,[],[0,9,5092],[],[[7,0,1,0,[8,9],[0,94,5007,10],[]]],[],[1,0,1,0]]],[],[],[1,0,1,0]];
window.output["suite"] = [1,2,3,0,[],[0,0,5444],[[4,5,6,0,[],[0,145,5297],[],[[7,0,1,0,[8,9],[0,426,5015,10],[]]],[],[1,0,1,0]]],[],[],[1,0,1,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*CPQD","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests","*../../../tests","*GetResources","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*CPqD","*GetResourcesTest","*Could not GET Resources on 10.138.11.112"]);
window.output["strings"] = window.output["strings"].concat(["*","*CPQD","*/home/rnp/fibrechecker/tests","*../../../tests","*GetResources","*/home/rnp/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*CPqD","*GetResourcesTest","*Could not GET Resources on 10.138.11.112"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:05","fail":1,"label":"Critical Tests","pass":0},{"elapsed":"00:00:05","fail":1,"label":"All Tests","pass":0}],[{"elapsed":"00:00:05","fail":1,"label":"CPqD","pass":0},{"elapsed":"00:00:05","fail":1,"label":"GetResourcesTest","pass":0}],[{"elapsed":"00:00:05","fail":1,"id":"s1","label":"CPQD","name":"CPQD","pass":0},{"elapsed":"00:00:05","fail":1,"id":"s1-s1","label":"CPQD.GetResources","name":"GetResources","pass":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1572489933158;
window.output["baseMillis"] = 1573221603667;
</script>
<script type="text/javascript">
window.output["generated"] = 5104;
window.output["generated"] = 5451;
</script>
<script type="text/javascript">
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"CPQD-getresources-log-20191030-234533.html","rpa":false,"title":""};
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"CPQD-getresources-log-20191108-120003.html","rpa":false,"title":""};
</script>
<title></title>
</head>
......
<?xml version="1.0" encoding="UTF-8"?>
<robot rpa="false" generated="20191030 23:45:41.965" generator="Robot 3.1.2 (Python 2.7.16 on linux2)">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests" id="s1" name="NOC">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot" id="s1-s1" name="GetResources">
<robot generator="Robot 3.1.2 (Python 3.5.2 on linux)" generated="20191108 12:00:09.415" rpa="false">
<suite source="/home/rnp/fibrechecker/tests" id="s1" name="NOC">
<suite source="/home/rnp/fibrechecker/tests/GetResources.robot" id="s1-s1" name="GetResources">
<test id="s1-s1-t1" name="OMF Broker should return any resource">
<kw name="Get Resources" library="GetResourcesLibrary">
<kw library="GetResourcesLibrary" name="Get Resources">
<arguments>
<arg>${address.broker}</arg>
</arguments>
<msg timestamp="20191030 23:45:42.025" level="INFO">HTTP GET https://10.128.0.210:8001/resources/</msg>
<msg timestamp="20191030 23:45:44.546" level="INFO">/home/felipefonseca/Documents/FIBRE/fibrechecker/venv/local/lib/python2.7/site-packages/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
<msg level="INFO" timestamp="20191108 12:00:09.564">HTTP GET https://10.128.0.210:8001/resources/</msg>
<msg level="INFO" timestamp="20191108 12:00:11.925">/home/rnp/fibrechecker/venv/lib/python3.5/site-packages/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)</msg>
<status status="PASS" endtime="20191030 23:45:44.547" starttime="20191030 23:45:42.025"></status>
<status status="PASS" starttime="20191108 12:00:09.564" endtime="20191108 12:00:11.925"></status>
</kw>
<kw name="Resources List Should Not Be Empty" library="GetResourcesLibrary">
<msg timestamp="20191030 23:45:44.556" level="INFO">Resources availables: 2212</msg>
<status status="PASS" endtime="20191030 23:45:44.557" starttime="20191030 23:45:44.547"></status>
<kw library="GetResourcesLibrary" name="Resources List Should Not Be Empty">
<msg level="INFO" timestamp="20191108 12:00:11.933">Resources availables: 2371</msg>
<status status="PASS" starttime="20191108 12:00:11.925" endtime="20191108 12:00:11.934"></status>
</kw>
<tags>
<tag>GetResourcesTest</tag>
<tag>NOC</tag>
</tags>
<status status="PASS" endtime="20191030 23:45:44.557" critical="yes" starttime="20191030 23:45:42.025"></status>
<status status="PASS" starttime="20191108 12:00:09.563" endtime="20191108 12:00:11.934" critical="yes"></status>
</test>
<status status="PASS" endtime="20191030 23:45:44.557" starttime="20191030 23:45:41.976"></status>
<status status="PASS" starttime="20191108 12:00:09.452" endtime="20191108 12:00:11.935"></status>
</suite>
<status status="PASS" endtime="20191030 23:45:44.558" starttime="20191030 23:45:41.967"></status>
<status status="PASS" starttime="20191108 12:00:09.419" endtime="20191108 12:00:11.937"></status>
</suite>
<statistics>
<total>
......
......@@ -5,7 +5,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="Robot Framework 3.1.2 (Python 2.7.16 on linux2)" name="Generator">
<meta content="Robot Framework 3.1.2 (Python 3.5.2 on linux)" name="Generator">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN4AAAD/AAAAqwAAAP8AAACvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALIAAAD/AAAAsgAAAAAAAAC5AAAA/wAAAMoAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMkAAAD/AAAAvAAAAAAAAAAAAAAAAAAAAKwAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAArQAAAAAAAAAAwAMAAIABAAAf+AAAP/wAAD/8AAAgBAAAP/wAAD/8AAA//AAAJIwAADHEAAA//AAAP/wAAB/4AACAAQAAwAMAAA==">
<style media="all" type="text/css">
/* Generic and misc styles */
......@@ -1735,28 +1735,28 @@ function stopPropagation(event) {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,2591],[[4,5,6,0,[],[1,9,2581],[],[[7,0,1,0,[8,1],[1,58,2532],[[0,9,10,0,0,11,0,0,[1,58,2522],[],[[58,2,12],[2579,2,13]]],[0,14,10,0,0,0,0,0,[1,2580,10],[],[[2589,2,15]]]]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
window.output["suite"] = [1,2,3,0,[],[1,0,2518],[[4,5,6,0,[],[1,33,2483],[],[[7,0,1,0,[8,1],[1,144,2371],[[0,9,10,0,0,11,0,0,[1,145,2361],[],[[145,2,12],[2506,2,13]]],[0,14,10,0,0,0,0,0,[1,2506,9],[],[[2514,2,15]]]]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*NOC","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests","*../../../tests","*GetResources","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*GetResourcesTest","*Get Resources","*GetResourcesLibrary","*${address.broker}","*HTTP GET <a href=\"https://10.128.0.210:8001/resources/\">https://10.128.0.210:8001/resources/\x3c/a>","eNqtkDFPAzEMhXd+hVUmhsYChECnthIIEN1QW8ScS941UXPJEecO9d+TqmJkY7Plz+89m13qwR2CH9ClKDCan5MZe8Qi/Lp+2rxw59sM42AOyDwhThyS0YGDb3k4Fpfijbpn8QXzQZuD3kN4zKGOb9mkGGGKT3FIKajh2DzcXTe0PjmNGRt8jZDyqXP0cd/QR5yQfedh6W23e99SPgPkhVpUhHptoejR2lNjkEuljS6g82Itq9cJl5JT3IcjaTt5gVW0BRpaaHIZ3XLmShmk4d+kKkPb4mCTEeUTI3KoslK47utoYOej1NOUK324FAnz73Noma3+TWrBenVBf3zn6gek950T","*Resources List Should Not Be Empty","*Resources availables: 2212"]);
window.output["strings"] = window.output["strings"].concat(["*","*NOC","*/home/rnp/fibrechecker/tests","*../../../tests","*GetResources","*/home/rnp/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*GetResourcesTest","*Get Resources","*GetResourcesLibrary","*${address.broker}","*HTTP GET <a href=\"https://10.128.0.210:8001/resources/\">https://10.128.0.210:8001/resources/\x3c/a>","eNqtkDFPAzEMhXd+hVUmhsZCVSV0KpW6wYZoEXOavDZRU+eIc4fu35PqxMjGZsvfe342h3wFF+n5FI8FLsBdUHiEjJzikfuphiwrs2aNFcveuos9Q3koqY1X7LIIXI1Z+pyT6afuaf3Y0aso3FDwjq8BWj9tkSjnjj5kRImnCE8vh8PbnsoMUFQ6oiF0tR6Gdt7fGodSG+1sBc3CVrZdN1xryXJOE1k/RoU3tAc62lgKBafnRai1145/k5oC62uAz05NzAzh1Gy1ctNbcfDLQdtpJtRruldNy+85tC62/2a1Ybu9oz++8/ADu2ORXA==","*Resources List Should Not Be Empty","*Resources availables: 2371"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:03","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:03","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:03","fail":0,"label":"GetResourcesTest","pass":1},{"elapsed":"00:00:03","fail":0,"label":"NOC","pass":1}],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"NOC","name":"NOC","pass":1},{"elapsed":"00:00:03","fail":0,"id":"s1-s1","label":"NOC.GetResources","name":"GetResources","pass":1}]];
window.output["stats"] = [[{"elapsed":"00:00:02","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:02","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:02","fail":0,"label":"GetResourcesTest","pass":1},{"elapsed":"00:00:02","fail":0,"label":"NOC","pass":1}],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"NOC","name":"NOC","pass":1},{"elapsed":"00:00:02","fail":0,"id":"s1-s1","label":"NOC.GetResources","name":"GetResources","pass":1}]];
</script>
<script type="text/javascript">
window.output["errors"] = [];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1572489941967;
window.output["baseMillis"] = 1573221609419;
</script>
<script type="text/javascript">
window.output["generated"] = 2594;
window.output["generated"] = 2524;
</script>
<script type="text/javascript">
window.settings = {"defaultLevel":"INFO","minLevel":"INFO","reportURL":"NOC-getresources-report-20191030-234541.html","rpa":false,"splitLogBase":"NOC-getresources-log-20191030-234541","title":""};
window.settings = {"defaultLevel":"INFO","minLevel":"INFO","reportURL":"NOC-getresources-report-20191108-120009.html","rpa":false,"splitLogBase":"NOC-getresources-log-20191108-120009","title":""};
</script>
<title></title>
</head>
......
......@@ -5,7 +5,7 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="Robot Framework 3.1.2 (Python 2.7.16 on linux2)" name="Generator">
<meta content="Robot Framework 3.1.2 (Python 3.5.2 on linux)" name="Generator">
<link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAA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AAAAAAA2gAAAP8AAAD7AAAAywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN4AAAD/AAAAqwAAAP8AAACvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALIAAAD/AAAAsgAAAAAAAAC5AAAA/wAAAMoAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMkAAAD/AAAAvAAAAAAAAAAAAAAAAAAAAKwAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAArQAAAAAAAAAAwAMAAIABAAAf+AAAP/wAAD/8AAAgBAAAP/wAAD/8AAA//AAAJIwAADHEAAA//AAAP/wAAB/4AACAAQAAwAMAAA==">
<style media="all" type="text/css">
/* Generic and misc styles */
......@@ -1585,25 +1585,25 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,2591],[[4,5,6,0,[],[1,9,2581],[],[[7,0,1,0,[8,1],[1,58,2532],[]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
window.output["suite"] = [1,2,3,0,[],[1,0,2518],[[4,5,6,0,[],[1,33,2483],[],[[7,0,1,0,[8,1],[1,144,2371],[]]],[],[1,1,1,1]]],[],[],[1,1,1,1]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*NOC","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests","*../../../tests","*GetResources","*/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*GetResourcesTest"]);
window.output["strings"] = window.output["strings"].concat(["*","*NOC","*/home/rnp/fibrechecker/tests","*../../../tests","*GetResources","*/home/rnp/fibrechecker/tests/GetResources.robot","*../../../tests/GetResources.robot","*OMF Broker should return any resource","*GetResourcesTest"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:03","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:03","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:03","fail":0,"label":"GetResourcesTest","pass":1},{"elapsed":"00:00:03","fail":0,"label":"NOC","pass":1}],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"NOC","name":"NOC","pass":1},{"elapsed":"00:00:03","fail":0,"id":"s1-s1","label":"NOC.GetResources","name":"GetResources","pass":1}]];
window.output["stats"] = [[{"elapsed":"00:00:02","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:02","fail":0,"label":"All Tests","pass":1}],[{"elapsed":"00:00:02","fail":0,"label":"GetResourcesTest","pass":1},{"elapsed":"00:00:02","fail":0,"label":"NOC","pass":1}],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"NOC","name":"NOC","pass":1},{"elapsed":"00:00:02","fail":0,"id":"s1-s1","label":"NOC.GetResources","name":"GetResources","pass":1}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1572489941967;
window.output["baseMillis"] = 1573221609419;
</script>
<script type="text/javascript">
window.output["generated"] = 2594;
window.output["generated"] = 2524;
</script>
<script type="text/javascript">
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"NOC-getresources-log-20191030-234541.html","rpa":false,"title":""};
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"NOC-getresources-log-20191108-120009.html","rpa":false,"title":""};
</script>
<title></title>
</head>
......
<?xml version="1.0" encoding="UTF-8"?>
<robot rpa="false" generated="20191030 23:45:57.457" generator="Robot 3.1.2 (Python 2.7.16 on linux2)">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests" id="s1" name="PUCRS">
<suite source="/home/felipefonseca/Documents/FIBRE/fibrechecker/tests/GetResources.robot" id="s1-s1" name="GetResources">
<test id="s1-s1-t1" name="OMF Broker should return any resource">
<kw name="Get Resources" library="GetResourcesLibrary">
<arguments>
<arg>${address.broker}</arg>
</arguments>
<msg timestamp="20191030 23:45:57.516" level="INFO">HTTP GET https://10.145.11.112:8001/resources/</msg>
<msg timestamp="20191030 23:46:00.359" level="FAIL">Could not GET Resources on 10.145.11.112</msg>
<status status="FAIL" endtime="20191030 23:46:00.359" starttime="20191030 23:45:57.516"></status>
</kw>
<tags>
<tag>GetResourcesTest</tag>
<tag>PUCRS</tag>
</tags>
<status status="FAIL" endtime="20191030 23:46:00.359" critical="yes" starttime="20191030 23:45:57.516">Could not GET Resources on 10.145.11.112</status>
</test>
<status status="FAIL" endtime="20191030 23:46:00.360" starttime="20191030 23:45:57.467"></status>
</suite>
<status status="FAIL" endtime="20191030 23:46:00.361" starttime="20191030 23:45:57.458"></status>
</suite>
<statistics>
<total>
<stat fail="1" pass="0">Critical Tests</stat>
<stat fail="1" pass="0">All Tests</stat>
</total>
<tag>
<stat fail="1" pass="0">GetResourcesTest</stat>
<stat fail="1" pass="0">PUCRS</stat>
</tag>
<suite>
<stat fail="1" id="s1" name="PUCRS" pass="0">PUCRS</stat>
<stat fail="1" id="s1-s1" name="GetResources" pass="0">PUCRS.GetResources</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>
<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20191108 12:00:12.251" generator="Robot 3.1.2 (Python 3.5.2 on linux)" rpa="false">
<suite source="/home/rnp/fibrechecker/tests" id="s1" name="PUCRS">
<suite source="/home/rnp/fibrechecker/tests/GetResources.robot" id="s1-s1" name="GetResources">
<test id="s1-s1-t1" name="OMF Broker should return any resource">
<kw name="Get Resources" library="GetResourcesLibrary">
<arguments>
<arg>${address.broker}</arg>
</arguments>
<msg level="INFO" timestamp="20191108 12:00:12.402">HTTP GET https://10.145.11.112:8001/resources/</msg>
<msg level="INFO" timestamp="20191108 12:00:13.049">/home/rnp/fibrechecker/venv/lib/python3.5/site-packages/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)</msg>
<status starttime="20191108 12:00:12.402" endtime="20191108 12:00:13.049" status="PASS"></status>
</kw>
<kw name="Resources List Should Not Be Empty" library="GetResourcesLibrary">
<msg level="INFO" timestamp="20191108 12:00:13.051">Resources availables: 410</msg>
<status starttime="20191108 12:00:13.049" endtime="20191108 12:00:13.051" status="PASS"></status>
</kw>
<tags>
<tag>GetResourcesTest</tag>
<tag>PUCRS</tag>
</tags>
<status starttime="20191108 12:00:12.401" endtime="20191108 12:00:13.051" status="PASS" critical="yes"></status>
</test>
<status starttime="20191108 12:00:12.288" endtime="20191108 12:00:13.052" status="PASS"></status>
</suite>
<status starttime="20191108 12:00:12.255" endtime="20191108 12:00:13.054" status="PASS"></status>
</suite>
<statistics>
<total>
<stat fail="0" pass="1">Critical Tests</stat>
<stat fail="0" pass="1">All Tests</stat>
</total>
<tag>
<stat fail="0" pass="1">GetResourcesTest</stat>
<stat fail="0" pass="1">PUCRS</stat>
</tag>
<suite>
<stat id="s1" fail="0" pass="1" name="PUCRS">PUCRS</stat>
<stat id="s1-s1" fail="0" pass="1" name="GetResources">PUCRS.GetResources</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.