Skip to content

Commit

Permalink
add Support for Domains and Routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramaboggarapu committed Aug 24, 2016
1 parent 1a95753 commit b016f50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cf.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const promise = new Promise((resolve, reject) => {
const ServiceBindings = new cf.ServiceBindings(endpoint);
const Events = new cf.Events(endpoint);
const Logs = new cf.Logs();
const Domains = new cf.Domains(endpoint);
const Routes = new cf.Routes(endpoint);

const guids = {};
const serviceCache = [];

Expand Down Expand Up @@ -77,6 +80,9 @@ const promise = new Promise((resolve, reject) => {
ServiceBindings.setToken(secureToken);
Events.setToken(secureToken);
Logs.setToken(secureToken);
Domains.setToken(secureToken);
Routes.setToken(secureToken);

Logs.setEndPoint(logEndpoint);

// Get the list of services
Expand Down Expand Up @@ -146,6 +152,8 @@ const promise = new Promise((resolve, reject) => {
module.exports.guids = guids;
module.exports.serviceCache = serviceCache;
module.exports.activeSpace = activeSpace;
module.exports.Domains = Domains;
module.exports.Routes = Routes;

stayAlive(UsersUAA);
});
Expand Down
2 changes: 2 additions & 0 deletions test/cf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('Test CF Convenience', function() {
expect(cf).to.have.property('Spaces');
expect(cf).to.have.property('Services');
expect(cf).to.have.property('ServiceInstances');
expect(cf).to.have.property('Domains');
expect(cf).to.have.property('Routes');
testDone();
});
});
Expand Down

0 comments on commit b016f50

Please sign in to comment.