Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josepablofm78 committed Jan 18, 2023
1 parent 731f52c commit 5b0ac0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/compute/compute.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class ComputeController {
try {
Logger.debug(`Executing compute for agreement id ${agreementId}`)

const argoWorkflow = await this.computeService.createArgoWorkflow(initData, agreementId)
const argoWorkflow = await this.computeService.createArgoWorkflow(initData)
const response = await this.argoWorkflowApi.workflowServiceCreateWorkflow(
{ serverDryRun: false, namespace: this.argoNamespace, workflow: argoWorkflow },
this.argoNamespace,
Expand Down
3 changes: 1 addition & 2 deletions src/compute/compute.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ describe('ComputeService Testing', () => {
consumer: '0xaaabbbcc',
}

const workflow = await computeService.createArgoWorkflow(initData, 'XXXX')
const workflow = await computeService.createArgoWorkflow(initData)
expect(workflow).toBeDefined()
expect(workflow.kind).toBe('Workflow')
expect(workflow.spec).toBeDefined()
expect(workflow.spec.entrypoint).toBe('compute-workflow')
expect(workflow.spec.workflowMetadata.labels.serviceAgreement).toBe('XXXX')
expect(workflow.spec.templates).toBeDefined()
expect(workflow.spec.templates.length).toBe(4)
})
Expand Down
2 changes: 1 addition & 1 deletion src/compute/compute.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class ComputeService {
return yaml.load(templateContent)
}

async createArgoWorkflow(initData: ExecuteWorkflowDto, agreementId: string): Promise<any> {
async createArgoWorkflow(initData: ExecuteWorkflowDto): Promise<any> {
const gethLocal = (await this.getNetworkName()) === 'geth-localnet'
const workflow = this.readWorkflowTemplate(gethLocal)

Expand Down

0 comments on commit 5b0ac0e

Please sign in to comment.