Skip to content

Commit

Permalink
moved poolingService and request back to core/
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamNowotny committed Sep 11, 2017
1 parent f2998f3 commit 4f5a156
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/adding-new-services.markdown
Expand Up @@ -66,7 +66,7 @@ Latest status

`getLatest` function accepts service settings with array of build IDs to monitor.

The example below uses [/src/services/request.js](../src/services/request.js) to make HTTP request for each build in `settings.projects` array and then parse the body of each response.
The example below uses [/src/core/services/request.js](../src/core/services/request.js) to make HTTP request for each build in `settings.projects` array and then parse the body of each response.

Example:
```js
Expand Down
2 changes: 1 addition & 1 deletion src/core/main.js
Expand Up @@ -12,7 +12,7 @@ import jenkins from 'services/jenkins/jenkins';
import logger from 'core/logger';
import notificationController from 'core/notificationController';
import passwordExpiredHandler from 'core/passwordExpiredHandler';
import poolingService from 'services/poolingService';
import poolingService from 'core/services/poolingService';
import serviceConfiguration from 'core/config/serviceConfiguration';
import serviceController from 'core/services/serviceController';
import serviceView from 'core/services/serviceView';
Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
import Rx from 'rx';
import poolingService from 'services/poolingService';
import poolingService from 'core/services/poolingService';
import sinon from 'sinon';

describe('services/poolingService', () => {
describe('core/services/poolingService', () => {

const onNext = Rx.ReactiveTest.onNext;
const onCompleted = Rx.ReactiveTest.onCompleted;
Expand Down
2 changes: 1 addition & 1 deletion src/services/request.js → src/core/services/request.js
@@ -1,6 +1,6 @@
import 'rx/dist/rx.binding';
import Rx from 'rx';
import errors from 'services/requestErrors';
import errors from 'core/services/requestErrors';
import { parseString } from 'xml2js';
import superagent from 'superagent';

Expand Down
@@ -1,10 +1,10 @@
import Rx from 'rx/dist/rx.testing';
import StubSuperagent from 'test/stubSuperagent.js';
import errors from 'services/requestErrors';
import request from 'services/request';
import errors from 'core/services/requestErrors';
import request from 'core/services/request';
import superagent from 'superagent';

describe('services/request', () => {
describe('core/services/request', () => {

const onNext = Rx.ReactiveTest.onNext;
const onCompleted = Rx.ReactiveTest.onCompleted;
Expand Down
File renamed without changes.
@@ -1,6 +1,6 @@
import errors from 'services/requestErrors';
import errors from 'core/services/requestErrors';

describe('services/requestErrors', () => {
describe('core/services/requestErrors', () => {

it('should create AjaxError', () => {
const ex = {
Expand Down
2 changes: 1 addition & 1 deletion src/services/bamboo/bambooRequests.js
@@ -1,6 +1,6 @@
import Rx from 'rx';
import joinUrl from 'common/joinUrl';
import request from 'services/request';
import request from 'core/services/request';

const projects = (settings) => request
.get({
Expand Down
2 changes: 1 addition & 1 deletion src/services/bamboo/bambooRequests.spec.js
@@ -1,6 +1,6 @@
import Rx from 'rx/dist/rx.testing';
import bambooRequests from 'services/bamboo/bambooRequests';
import request from 'services/request';
import request from 'core/services/request';

describe('services/bamboo/bambooRequests', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/services/buildbot/buildbotRequests.js
@@ -1,5 +1,5 @@
import joinUrl from 'common/joinUrl';
import request from 'services/request';
import request from 'core/services/request';

const allBuilds = (settings) => request
.get({
Expand Down
2 changes: 1 addition & 1 deletion src/services/buildbot/buildbotRequests.spec.js
@@ -1,6 +1,6 @@
import Rx from 'rx/dist/rx.testing';
import buildbotRequests from 'services/buildbot/buildbotRequests';
import request from 'services/request';
import request from 'core/services/request';

describe('services/buildbot/buildbotRequests', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/services/buildkite/buildkiteRequests.js
@@ -1,5 +1,5 @@
import Rx from 'rx';
import request from 'services/request';
import request from 'core/services/request';

const organizations = (token) => request
.get({
Expand Down
2 changes: 1 addition & 1 deletion src/services/buildkite/buildkiteRequests.spec.js
@@ -1,6 +1,6 @@
import Rx from 'rx/dist/rx.testing';
import buildkiteRequests from 'services/buildkite/buildkiteRequests';
import request from 'services/request';
import request from 'core/services/request';

describe('services/buildkite/buildkiteRequests', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/services/cctray/cctrayRequests.js
@@ -1,4 +1,4 @@
import request from 'services/request';
import request from 'core/services/request';

export default {
projects: (settings) => request
Expand Down
2 changes: 1 addition & 1 deletion src/services/cctray/cctrayRequests.spec.js
@@ -1,6 +1,6 @@
import Rx from 'rx/dist/rx.testing';
import cctrayRequests from 'services/cctray/cctrayRequests';
import request from 'services/request';
import request from 'core/services/request';

describe('services/cctray/cctrayRequests', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/services/jenkins/jenkinsRequests.js
@@ -1,6 +1,6 @@
import Rx from 'rx';
import joinUrl from 'common/joinUrl';
import request from 'services/request';
import request from 'core/services/request';

export default {
jobs: ({ url, settings }) => request
Expand Down
2 changes: 1 addition & 1 deletion src/services/jenkins/jenkinsRequests.spec.js
@@ -1,6 +1,6 @@
import Rx from 'rx/dist/rx.testing';
import jenkinsRequests from 'services/jenkins/jenkinsRequests';
import request from 'services/request';
import request from 'core/services/request';

describe('services/jenkins/jenkinsRequests', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/services/teamcity/teamcityRequests.js
@@ -1,5 +1,5 @@
import joinUrl from 'common/joinUrl';
import request from 'services/request';
import request from 'core/services/request';

const authType = (settings) => (settings.username ? 'httpAuth' : 'guestAuth');
const branchParam = (settings) => (settings.branch ? `,branch:(${settings.branch})` : '');
Expand Down
2 changes: 1 addition & 1 deletion src/services/teamcity/teamcityRequests.spec.js
@@ -1,5 +1,5 @@
import Rx from 'rx/dist/rx.testing';
import request from 'services/request';
import request from 'core/services/request';
import teamcityRequests from 'services/teamcity/teamcityRequests';

describe('services/teamcity/teamcityRequests', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/travis/travisRequests.js
@@ -1,6 +1,6 @@
import Rx from 'rx';
import joinUrl from 'common/joinUrl';
import request from 'services/request';
import request from 'core/services/request';

const repositories = (settings) => request
.get({
Expand Down
2 changes: 1 addition & 1 deletion src/services/travis/travisRequests.spec.js
@@ -1,5 +1,5 @@
import Rx from 'rx/dist/rx.testing';
import request from 'services/request';
import request from 'core/services/request';
import travisRequests from 'services/travis/travisRequests';

describe('services/travis/travisRequests', () => {
Expand Down

0 comments on commit 4f5a156

Please sign in to comment.