Apply quotes rule for js files

This commit applies the quotes rule to keep the consistency. It seems we
and the Google style guide prefer single-quotes over double-quotes.
That's the reason why I choose single-quotes.

I don't want to stick this kind of things, actually. But I often confuse
that 'which quotes should I use?'. This commit avoids it.

Change-Id: Ic686d7e6bc91d8b75bba033c0b265b48a522df44
This commit is contained in:
Masayuki Igawa 2016-01-27 16:19:57 +09:00
parent f95c61d0d6
commit 4a7dc0a4c1
21 changed files with 1202 additions and 1201 deletions

View File

@ -13,3 +13,4 @@ env:
rules:
module-setter: 0
one-var: 0
quotes: [2, 'single', 'avoid-escape']

View File

@ -1,4 +1,4 @@
"use strict";
'use strict';
var controllersModule = require('./_index');
@ -127,7 +127,7 @@ function GroupedRunsController(
});
vm.onSearchChange = function() {
$location.search("searchJob", $scope.groupedRuns.searchJob);
$location.search('searchJob', $scope.groupedRuns.searchJob);
};
}

View File

@ -23,8 +23,8 @@ function HomeController($scope, healthService, startDate, projectService, viewSe
var entries = getChartEntries(dateStats, blanks);
vm.chartData = [
{ key: 'Passes', values: entries.passes, color: "blue" },
{ key: 'Failures', values: entries.failures, color: "red" }
{ key: 'Passes', values: entries.passes, color: 'blue' },
{ key: 'Failures', values: entries.failures, color: 'red' }
];
vm.chartDataRate = [{ key: '% Failures', values: entries.failRate }];
vm.projects = projects
@ -93,7 +93,7 @@ function HomeController($scope, healthService, startDate, projectService, viewSe
});
vm.onSearchChange = function() {
$location.search("searchProject", $scope.home.searchProject);
$location.search('searchProject', $scope.home.searchProject);
};
}
controllersModule.controller('HomeController', HomeController);

View File

@ -1,4 +1,4 @@
"use strict";
'use strict';
var controllersModule = require('./_index');
@ -158,7 +158,7 @@ function JobController($scope, healthService, viewService, jobName, startDate, $
});
vm.onSearchChange = function() {
$location.search("searchTest", $scope.job.searchTest);
$location.search('searchTest', $scope.job.searchTest);
};
}

View File

@ -85,9 +85,9 @@ function TestController($scope, healthService, testService, viewService, startDa
}
}
vm.statusData = [
{ key: 'Passes', values: passEntries, color: "blue" },
{ key: 'Failures', values: failEntries, color: "red" },
{ key: 'Skips', values: skipEntries, color: "violet" }
{ key: 'Passes', values: passEntries, color: 'blue' },
{ key: 'Failures', values: failEntries, color: 'red' },
{ key: 'Skips', values: skipEntries, color: 'violet' }
];
for (dateTimeString in data.numeric) {
@ -114,8 +114,8 @@ function TestController($scope, healthService, testService, viewService, startDa
}
}
vm.timeData = [
{key: 'Run Time (sec.)', values: runTimeEntries, color: "blue"},
{key: 'Avg. Run Time (sec.)', values: avgRunTimeEntries, color: "black"}
{key: 'Run Time (sec.)', values: runTimeEntries, color: 'blue'},
{key: 'Avg. Run Time (sec.)', values: avgRunTimeEntries, color: 'black'}
];
};

View File

@ -75,7 +75,7 @@ function TestsController($scope, healthService, testService, $location) {
vm.loadData();
vm.onSearchChange = function() {
$location.search("searchTest", $scope.tests.searchTest);
$location.search('searchTest', $scope.tests.searchTest);
};
}
controllersModule.controller('TestsController', TestsController);

View File

@ -10,12 +10,12 @@ var nv = require('nvd3');
*/
function chartBar() {
var link = function(scope, el, attrs) {
scope.$on("loading-started", function() {
el.css({"display" : "none"});
scope.$on('loading-started', function() {
el.css({'display' : 'none'});
});
scope.$on("loading-complete", function() {
el.css({"display" : "block"});
scope.$on('loading-complete', function() {
el.css({'display' : 'block'});
});
var chart = null;
@ -25,7 +25,7 @@ function chartBar() {
.attr('height', attrs.height);
var update = function(data) {
if (typeof data === "undefined") {
if (typeof data === 'undefined') {
return;
}
var chart = nv.models.discreteBarChart();

View File

@ -10,12 +10,12 @@ var nv = require('nvd3');
*/
function chartGauge() {
var link = function(scope, el, attrs) {
scope.$on("loading-started", function() {
el.css({"display" : "none"});
scope.$on('loading-started', function() {
el.css({'display' : 'none'});
});
scope.$on("loading-complete", function() {
el.css({"display" : "block"});
scope.$on('loading-complete', function() {
el.css({'display' : 'block'});
});
var chart = null;
@ -25,7 +25,7 @@ function chartGauge() {
.attr('height', attrs.height);
var update = function(data) {
if (typeof data === "undefined") {
if (typeof data === 'undefined') {
return;
}
@ -57,13 +57,13 @@ function chartGauge() {
.attr('x', '50%')
.attr('y', '65%')
.style('font-size','24px')
.attr("text-anchor", "middle")
.attr('text-anchor', 'middle')
.text(passesText);
svg.append('text')
.attr('x', '50%')
.attr('y', '80%')
.style('font-size','24px')
.attr("text-anchor", "middle")
.attr('text-anchor', 'middle')
.text(failuresText);
scope.$on('windowResize', function() {

View File

@ -10,12 +10,12 @@ var nv = require('nvd3');
*/
function chartLine() {
var link = function(scope, el, attrs) {
scope.$on("loading-started", function() {
el.css({"display" : "none"});
scope.$on('loading-started', function() {
el.css({'display' : 'none'});
});
scope.$on("loading-complete", function() {
el.css({"display" : "block"});
scope.$on('loading-complete', function() {
el.css({'display' : 'block'});
});
var chart = null;
@ -25,7 +25,7 @@ function chartLine() {
.attr('height', attrs.height);
var update = function(data) {
if (typeof data === "undefined") {
if (typeof data === 'undefined') {
return;
}
@ -35,7 +35,7 @@ function chartLine() {
chart.tooltip.gravity('s').chartContainer(el[0]);
chart.xAxis.tickFormat(function(d) { return d3.time.format("%x")(new Date(d)); });
chart.xAxis.tickFormat(function(d) { return d3.time.format('%x')(new Date(d)); });
if (attrs.forceY) {
chart.forceY(angular.fromJson(attrs.forceY));

View File

@ -10,12 +10,12 @@ var nv = require('nvd3');
*/
function chartScatter() {
var link = function(scope, el, attrs) {
scope.$on("loading-started", function() {
el.css({"display" : "none"});
scope.$on('loading-started', function() {
el.css({'display' : 'none'});
});
scope.$on("loading-complete", function() {
el.css({"display" : "block"});
scope.$on('loading-complete', function() {
el.css({'display' : 'block'});
});
var chart = null;
@ -25,14 +25,14 @@ function chartScatter() {
.attr('height', attrs.height);
var update = function(data) {
if (typeof data === "undefined") {
if (typeof data === 'undefined') {
return;
}
chart = nv.models.scatterChart()
.duration(300);
chart.xAxis.tickFormat(function(d) { return d3.time.format("%x")(new Date(d)); });
chart.xAxis.tickFormat(function(d) { return d3.time.format('%x')(new Date(d)); });
if (attrs.forceY) {
chart.forceY(angular.fromJson(attrs.forceY));
}

View File

@ -10,12 +10,12 @@ var nv = require('nvd3');
*/
function chartStackArea() {
var link = function(scope, el, attrs) {
scope.$on("loading-started", function() {
el.css({"display" : "none"});
scope.$on('loading-started', function() {
el.css({'display' : 'none'});
});
scope.$on("loading-complete", function() {
el.css({"display" : "block"});
scope.$on('loading-complete', function() {
el.css({'display' : 'block'});
});
var chart = null;
@ -25,7 +25,7 @@ function chartStackArea() {
.attr('height', attrs.height);
var update = function(data) {
if (typeof data === "undefined") {
if (typeof data === 'undefined') {
return;
}
chart = nv.models.stackedAreaChart()
@ -38,7 +38,7 @@ function chartStackArea() {
.clipEdge(true)
.style('expand');
chart.xAxis.tickFormat(function(d) { return d3.time.format("%x")(new Date(d)); });
chart.xAxis.tickFormat(function(d) { return d3.time.format('%x')(new Date(d)); });
chart.yAxis.tickFormat(d3.format(',.2f'));
svg.datum(data).call(chart);

View File

@ -30,12 +30,12 @@ function crumbMenu() {
};
$scope.$on('view:resolution', function(event, resolution) {
$location.search("resolutionKey", resolution.key);
$location.search('resolutionKey', resolution.key);
$scope.selectedResolution = resolution;
});
$scope.$on('view:groupKey', function(event, groupKey) {
$location.search("groupKey", groupKey);
$location.search('groupKey', groupKey);
$scope.selectedGroupKey = groupKey;
});

View File

@ -6,17 +6,17 @@ var directivesModule = require('./_index.js');
*/
function loadingIndicator() {
return {
restrict : "EA",
restrict : 'EA',
template: "<div class='alert alert-info' role='alert'>" +
"<i class='fa fa-spinner fa-pulse fa-1x'></i> <strong>Loading...</strong>" +
"</div>",
'</div>',
link : function(scope, element) {
scope.$on("loading-started", function() {
element.css({"display" : ""});
scope.$on('loading-started', function() {
element.css({'display' : ''});
});
scope.$on("loading-complete", function() {
element.css({"display" : "none"});
scope.$on('loading-complete', function() {
element.css({'display' : 'none'});
});
}
};

View File

@ -71,7 +71,7 @@ function tableSort($compile) {
if (typeof def !== 'undefined') {
presort(el, indexInParent(th), controller);
if (def === "reverse" || def === "reversed") {
if (def === 'reverse' || def === 'reversed') {
// sort again to flip
presort(el, indexInParent(th), controller);
}

View File

@ -5,7 +5,7 @@ module.exports = {
},
response: {
data: {
"apiRoot": "http://localhost:5000"
'apiRoot': 'http://localhost:5000'
}
}
};

View File

@ -5,26 +5,26 @@ module.exports = {
},
response: {
data: {
"timedelta": [
'timedelta': [
{
"datetime": "2015-10-23T20:00:00",
"job_data": [
'datetime': '2015-10-23T20:00:00',
'job_data': [
{
"fail": 0,
"job_name": "gate-tempest-dsvm-neutron-src-taskflow",
"mean_run_time": 4859.3,
"pass": 1
'fail': 0,
'job_name': 'gate-tempest-dsvm-neutron-src-taskflow',
'mean_run_time': 4859.3,
'pass': 1
}
]
},
{
"datetime": "2015-11-10T23:00:00",
"job_data": [
'datetime': '2015-11-10T23:00:00',
'job_data': [
{
"fail": 0,
"job_name": "gate-tempest-dsvm-neutron-src-taskflow",
"mean_run_time": 6231.47,
"pass": 1
'fail': 0,
'job_name': 'gate-tempest-dsvm-neutron-src-taskflow',
'mean_run_time': 6231.47,
'pass': 1
}
]
}

View File

@ -5,393 +5,393 @@ module.exports = {
},
response: {
data: {
"runs": {
"2015-10-20T20:00:00": {
"openstack/keystone": [
'runs': {
'2015-10-20T20:00:00': {
'openstack/keystone': [
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
}
],
"openstack/requirements": [
'openstack/requirements': [
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
}
]
},
"2015-10-20T21:00:00": {
"openstack/ceilometer": [
'2015-10-20T21:00:00': {
'openstack/ceilometer': [
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 55,
"skip": 38
'fail': 0,
'pass': 55,
'skip': 38
},
{
"fail": 0,
"pass": 1164,
"skip": 116
'fail': 0,
'pass': 1164,
'skip': 116
},
{
"fail": 0,
"pass": 1164,
"skip": 116
'fail': 0,
'pass': 1164,
'skip': 116
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 1164,
"skip": 116
'fail': 0,
'pass': 1164,
'skip': 116
},
{
"fail": 0,
"pass": 1444,
"skip": 82
'fail': 0,
'pass': 1444,
'skip': 82
},
{
"fail": 0,
"pass": 55,
"skip": 38
'fail': 0,
'pass': 55,
'skip': 38
},
{
"fail": 0,
"pass": 1164,
"skip": 116
'fail': 0,
'pass': 1164,
'skip': 116
}
],
"openstack/keystone": [
'openstack/keystone': [
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
}
],
"openstack/neutron": [
'openstack/neutron': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 108,
"skip": 23
'fail': 0,
'pass': 108,
'skip': 23
},
{
"fail": 0,
"pass": 112,
"skip": 18
'fail': 0,
'pass': 112,
'skip': 18
},
{
"fail": 0,
"pass": 112,
"skip": 18
'fail': 0,
'pass': 112,
'skip': 18
},
{
"fail": 0,
"pass": 108,
"skip": 23
'fail': 0,
'pass': 108,
'skip': 23
}
],
"openstack/python-novaclient": [
'openstack/python-novaclient': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/requirements": [
'openstack/requirements': [
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
}
],
"openstack/taskflow": [
'openstack/taskflow': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 1,
"pass": 1433,
"skip": 86
'fail': 1,
'pass': 1433,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
]
},
"2015-10-20T22:00:00": {
"openstack-infra/devstack-gate": [
'2015-10-20T22:00:00': {
'openstack-infra/devstack-gate': [
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
}
],
"openstack/ceilometer": [
'openstack/ceilometer': [
{
"fail": 0,
"pass": 1444,
"skip": 82
'fail': 0,
'pass': 1444,
'skip': 82
}
],
"openstack/diskimage-builder": [
'openstack/diskimage-builder': [
{
"fail": 0,
"pass": 71,
"skip": 0
'fail': 0,
'pass': 71,
'skip': 0
}
],
"openstack/keystone": [
'openstack/keystone': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/neutron": [
'openstack/neutron': [
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
}
],
"openstack/requirements": [
'openstack/requirements': [
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/taskflow": [
'openstack/taskflow': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/trove": [
'openstack/trove': [
{
"fail": 0,
"pass": 6,
"skip": 0
'fail': 0,
'pass': 6,
'skip': 0
}
]
},
"2015-10-20T23:00:00": {
"openstack-dev/pbr": [
'2015-10-20T23:00:00': {
'openstack-dev/pbr': [
{
"fail": 0,
"pass": 0,
"skip": 0
'fail': 0,
'pass': 0,
'skip': 0
}
],
"openstack-infra/devstack-gate": [
'openstack-infra/devstack-gate': [
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 58,
"skip": 34
'fail': 0,
'pass': 58,
'skip': 34
}
],
"openstack/keystone": [
'openstack/keystone': [
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 3,
"skip": 0
'fail': 0,
'pass': 3,
'skip': 0
},
{
"fail": 0,
"pass": 1154,
"skip": 120
'fail': 0,
'pass': 1154,
'skip': 120
},
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/neutron": [
'openstack/neutron': [
{
"fail": 0,
"pass": 112,
"skip": 18
'fail': 0,
'pass': 112,
'skip': 18
},
{
"fail": 0,
"pass": 112,
"skip": 18
'fail': 0,
'pass': 112,
'skip': 18
}
],
"openstack/python-neutronclient": [
'openstack/python-neutronclient': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/python-novaclient": [
'openstack/python-novaclient': [
{
"fail": 0,
"pass": 1434,
"skip": 86
'fail': 0,
'pass': 1434,
'skip': 86
}
],
"openstack/trove": [
'openstack/trove': [
{
"fail": 0,
"pass": 6,
"skip": 0
'fail': 0,
'pass': 6,
'skip': 0
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -25,35 +25,35 @@ describe('GroupedRunsController', function() {
var expectedResponse = {
timedelta: [
{
datetime: "2014-11-19",
datetime: '2014-11-19',
job_data: [
{
fail: 1,
job_name: "gate-grenade-dsvm",
job_name: 'gate-grenade-dsvm',
mean_run_time: 1154.6675000000002,
pass: 27
},
{
fail: 0,
job_name: "gate-tempest-dsvm-full",
job_name: 'gate-tempest-dsvm-full',
mean_run_time: 4366.415384615385,
pass: 13
},
{
fail: 0,
job_name: "gate-tempest-dsvm-neutron-full",
job_name: 'gate-tempest-dsvm-neutron-full',
mean_run_time: 5170.95,
pass: 12
},
{
fail: 1,
job_name: "gate-tempest-dsvm-neutron-heat-slow",
job_name: 'gate-tempest-dsvm-neutron-heat-slow',
mean_run_time: 273.05544444444445,
pass: 17
},
{
fail: 0,
job_name: "gate-tempest-dsvm-postgres-full",
job_name: 'gate-tempest-dsvm-postgres-full',
mean_run_time: 4439.482857142857,
pass: 14
}
@ -72,32 +72,32 @@ describe('GroupedRunsController', function() {
var recentResponse = [
{
"build_name": "gate-tempest-dsvm-ceilometer-mysql-neutron-full",
"id": "27ea6c72-4148-4a69-84ae-4b69ad88715b",
"link": "http://logs.openstack.org/31/234831/15/ceilo-mysql-neutron-full/7cb2c63",
"start_date": "2016-01-12T23:05:00",
"status": "success"
'build_name': 'gate-tempest-dsvm-ceilometer-mysql-neutron-full',
'id': '27ea6c72-4148-4a69-84ae-4b69ad88715b',
'link': 'http://logs.openstack.org/31/234831/15/ceilo-mysql-neutron-full/7cb2c63',
'start_date': '2016-01-12T23:05:00',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-neutron-full",
"id": "97e11ee7-d1f9-40a8-b598-377f4013248d",
"link": "http://logs.openstack.org/77/188877/55/neutron-full/eb3c685",
"start_date": "2016-01-12T18:53:45",
"status": "success"
'build_name': 'gate-tempest-dsvm-neutron-full',
'id': '97e11ee7-d1f9-40a8-b598-377f4013248d',
'link': 'http://logs.openstack.org/77/188877/55/neutron-full/eb3c685',
'start_date': '2016-01-12T18:53:45',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-large-ops",
"id": "f25490d5-39e4-4f74-8151-30d6b2522b9b",
"link": "http://logs.openstack.org/49/264349/4/large-ops/488cd67",
"start_date": "2016-01-12T18:35:36",
"status": "success"
'build_name': 'gate-tempest-dsvm-large-ops',
'id': 'f25490d5-39e4-4f74-8151-30d6b2522b9b',
'link': 'http://logs.openstack.org/49/264349/4/large-ops/488cd67',
'start_date': '2016-01-12T18:35:36',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-neutron-full",
"id": "a94f8306-e737-461a-8e10-5f90113cbd02",
"link": "http://logs.openstack.org/82/262082/6/neutron-full/f8ea4fd",
"start_date": "2016-01-12T16:37:23",
"status": "success"
'build_name': 'gate-tempest-dsvm-neutron-full',
'id': 'a94f8306-e737-461a-8e10-5f90113cbd02',
'link': 'http://logs.openstack.org/82/262082/6/neutron-full/f8ea4fd',
'start_date': '2016-01-12T16:37:23',
'status': 'success'
}
];

View File

@ -24,20 +24,20 @@ describe('JobController', function() {
var expectedResponse = {
tests: {
"2014-11-19T01:00:00": {
"tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_list_fixed_ip_details": {
'2014-11-19T01:00:00': {
'tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_list_fixed_ip_details': {
fail: 1,
pass: 27,
skip: 0,
run_time: 1
},
"tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_set_reserve": {
'tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_set_reserve': {
fail: 0,
pass: 13,
skip: 0,
run_time: 1
},
"tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_set_unreserve": {
'tempest.api.compute.admin.test_fixed_ips:FixedIPsTestJson.test_set_unreserve': {
fail: 0,
pass: 12,
skip: 1,
@ -57,32 +57,32 @@ describe('JobController', function() {
var recentResponse = [
{
"build_name": "gate-tempest-dsvm-ceilometer-mysql-neutron-full",
"id": "27ea6c72-4148-4a69-84ae-4b69ad88715b",
"link": "http://logs.openstack.org/31/234831/15/ceilo-mysql-neutron-full/7cb2c63",
"start_date": "2016-01-12T23:05:00",
"status": "success"
'build_name': 'gate-tempest-dsvm-ceilometer-mysql-neutron-full',
'id': '27ea6c72-4148-4a69-84ae-4b69ad88715b',
'link': 'http://logs.openstack.org/31/234831/15/ceilo-mysql-neutron-full/7cb2c63',
'start_date': '2016-01-12T23:05:00',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-neutron-full",
"id": "97e11ee7-d1f9-40a8-b598-377f4013248d",
"link": "http://logs.openstack.org/77/188877/55/neutron-full/eb3c685",
"start_date": "2016-01-12T18:53:45",
"status": "success"
'build_name': 'gate-tempest-dsvm-neutron-full',
'id': '97e11ee7-d1f9-40a8-b598-377f4013248d',
'link': 'http://logs.openstack.org/77/188877/55/neutron-full/eb3c685',
'start_date': '2016-01-12T18:53:45',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-large-ops",
"id": "f25490d5-39e4-4f74-8151-30d6b2522b9b",
"link": "http://logs.openstack.org/49/264349/4/large-ops/488cd67",
"start_date": "2016-01-12T18:35:36",
"status": "success"
'build_name': 'gate-tempest-dsvm-large-ops',
'id': 'f25490d5-39e4-4f74-8151-30d6b2522b9b',
'link': 'http://logs.openstack.org/49/264349/4/large-ops/488cd67',
'start_date': '2016-01-12T18:35:36',
'status': 'success'
},
{
"build_name": "gate-tempest-dsvm-neutron-full",
"id": "a94f8306-e737-461a-8e10-5f90113cbd02",
"link": "http://logs.openstack.org/82/262082/6/neutron-full/f8ea4fd",
"start_date": "2016-01-12T16:37:23",
"status": "success"
'build_name': 'gate-tempest-dsvm-neutron-full',
'id': 'a94f8306-e737-461a-8e10-5f90113cbd02',
'link': 'http://logs.openstack.org/82/262082/6/neutron-full/f8ea4fd',
'start_date': '2016-01-12T16:37:23',
'status': 'success'
}
];

View File

@ -24,27 +24,27 @@ describe('TestsController', function() {
tests: [
{
failure: 5592,
id: "00187173-ab23-4181-9a15-e291a0d8e2d1",
id: '00187173-ab23-4181-9a15-e291a0d8e2d1',
run_count: 55920,
run_time: 0.608151,
success: 55920,
test_id: "tempest.api.identity.admin.v2.test_users.one"
test_id: 'tempest.api.identity.admin.v2.test_users.one'
},
{
failure: 0,
id: "001c6860-c966-4c0b-9928-ecccd162bed0",
id: '001c6860-c966-4c0b-9928-ecccd162bed0',
run_count: 4939,
run_time: 5.97596,
success: 4939,
test_id: "tempest.api.volume.admin.test_snapshots_actions.two"
test_id: 'tempest.api.volume.admin.test_snapshots_actions.two'
},
{
failure: 1,
id: "002a15e0-f6d1-472a-bd66-bb13ac4d77aa",
id: '002a15e0-f6d1-472a-bd66-bb13ac4d77aa',
run_count: 32292,
run_time: 1.18864,
success: 32291,
test_id: "tempest.api.network.test_routers.three"
test_id: 'tempest.api.network.test_routers.three'
}
]
};