Commit 0ce977fc authored by Varunkumar Manohar's avatar Varunkumar Manohar
Browse files

Update method name + insert notimplemented string

parent 03f529f8
Pipeline #33737 passed with stages
in 10 minutes and 3 seconds
......@@ -26,8 +26,8 @@ export class AwsSeistore extends AbstractSeistore {
const email = payload.username;
return internalSwapForSauth ? Utils.checkSauthV1EmailDomainName(email) : email;
}
public async pushSubprojectCreationStatus(subproject: SubProjectModel,
public async notifySubprojectCreationStatus(subproject: SubProjectModel,
status: string): Promise<string> {
return 'true';
return 'Not Implemented';
}
}
......@@ -30,8 +30,8 @@ export class AzureSeistore extends AbstractSeistore {
const email = payload.email === Config.IMP_SERVICE_ACCOUNT_SIGNER ? payload.obo : payload.email;
return internalSwapForSauth ? Utils.checkSauthV1EmailDomainName(email) : email;
}
public async pushSubprojectCreationStatus(
public async notifySubprojectCreationStatus(
subproject: SubProjectModel, status: string): Promise<string> {
return 'true';
return 'Not Implemented';
}
}
......@@ -115,7 +115,7 @@ export class GoogleSeistore extends AbstractSeistore {
return internalSwapForSauth ? Utils.checkSauthV1EmailDomainName(email) : email;
}
public async pushSubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string> {
public async notifySubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string> {
const data = JSON.stringify({
subproject,
......
......@@ -18,9 +18,9 @@ export class IbmSeistore extends AbstractSeistore {
return internalSwapForSauth ? Utils.checkSauthV1EmailDomainName(email) : email;
}
public async pushSubprojectCreationStatus(
public async notifySubprojectCreationStatus(
subproject: SubProjectModel, status: string): Promise<string> {
return 'true';
return 'Not Implemented';
}
}
......@@ -20,14 +20,14 @@ import { CloudFactory } from './cloud';
export interface ISeistore {
checkExtraSubprojectCreateParams(requestBody: any, subproject: SubProjectModel): void;
getEmailFromTokenPayload(userCredentials: string, internalSwapForSauth: boolean): Promise<string>;
pushSubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string>;
notifySubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string>;
}
export abstract class AbstractSeistore implements ISeistore {
public abstract checkExtraSubprojectCreateParams(requestBody: any, subproject: SubProjectModel): void;
public abstract getEmailFromTokenPayload(userCredentials: string, internalSwapForSauth: boolean): Promise<string>;
public abstract pushSubprojectCreationStatus
public abstract notifySubprojectCreationStatus
(subproject: SubProjectModel, status: string): Promise<string>;
}
......
......@@ -199,7 +199,7 @@ export class SubProjectHandler {
}
}
const status = await SeistoreFactory.build(Config.CLOUDPROVIDER).pushSubprojectCreationStatus(subproject, 'created');
const status = await SeistoreFactory.build(Config.CLOUDPROVIDER).notifySubprojectCreationStatus(subproject, 'created');
if (!status) {
LoggerFactory.build(Config.CLOUDPROVIDER)
......
......@@ -51,7 +51,7 @@ export class TestSubProjectSVC {
async getEmailFromTokenPayload(userCredentials: string, internalSwapForSauth: boolean): Promise<string> {
return;
},
async pushSubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string> {
async notifySubprojectCreationStatus(subproject: SubProjectModel, status: string): Promise<string> {
return 'messageID';
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment