[functional testing] Rename getPage util to getUrl

This commit is contained in:
Jonathan Budzenski 2015-10-21 14:31:37 -05:00
parent 90969d9308
commit 94996e8442
3 changed files with 6 additions and 6 deletions

View file

@ -2,13 +2,13 @@ define(function (require) {
var registerSuite = require('intern!object');
var expect = require('intern/dojo/node!expect.js');
var config = require('intern').config;
var getPage = require('intern/dojo/node!../utils/getPage');
var getUrl = require('intern/dojo/node!../utils/getUrl');
registerSuite(function () {
return {
'status': function () {
return this.remote
.get(getPage(config.kibana, 'status'))
.get(getUrl(config.kibana, 'status'))
.setFindTimeout(60000)
.findByCssSelector('.plugin_status_breakdown')
.getVisibleText()

View file

@ -1,15 +1,15 @@
var expect = require('expect.js');
var getPage = require('../getPage');
var getUrl = require('../getUrl');
describe('getPage', function () {
describe('getUrl', function () {
it('should be able to convert a config and a path to a url', function() {
expect(getPage({
expect(getUrl({
protocol: 'http',
hostname: 'localhost',
port: 9220
}, 'foo')).to.be('http://localhost:9220/foo');
expect(getPage({
expect(getUrl({
protocol: 'https',
hostname: 'localhost',
}, 'foo')).to.be('https://localhost/foo');