Skip to content

Commit b6596b3

Browse files
authored
fix: integration adjustment (#72)
1 parent 2533314 commit b6596b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cf-local.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function getServiceInstanceItem(item: any): Promise<any> {
219219
label: getName(item),
220220
tags: getTags(item),
221221
serviceName: isUpsType(item)
222-
? Promise.resolve({ service_offering: { name: eServiceTypes.user_provided } })
222+
? Promise.resolve({ service_offering: { name: eServiceTypes.user_provided }, name: '' })
223223
: getCachedServicePlan({ guid: planGuid }).then(plan => plan).catch(() => { return {}; }),
224224
plan_guid: planGuid,
225225
credentials: isUpsType(item)
@@ -386,7 +386,7 @@ export async function cfGetManagedServiceInstances(query?: IServiceQuery, token?
386386
export async function cfSetOrgSpace(org: string, space?: string): Promise<void> {
387387
await execQuery({ query: _.concat(["target", "-o", org], (space ? ["-s", space] : [])) });
388388
clearCacheServiceInstances();
389-
cfGetServiceInstances();
389+
cfGetManagedServiceInstances();
390390
}
391391

392392
export async function cfGetTargets(): Promise<CFTarget[]> {

tests/cf-local-a.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ describe("cf-local-a unit tests", () => {
749749
expect(result[0].label).to.be.equal(serviceNames[0]);
750750
assert.deepEqual(result[0].tags, tags);
751751
expect(result[1].serviceName).to.be.equal(eServiceTypes.user_provided);
752-
expect(result[1].plan).to.be.equal('unknown');
752+
expect(result[1].plan).to.be.equal('');
753753
expect(result[1].plan_guid).to.be.undefined;
754754
expect(result[1].label).to.be.equal(serviceNames[1]);
755755
assert.deepEqual(result[1].tags, ['test']);

0 commit comments

Comments
 (0)