From 4d6d9e7dfa5425a9ddd2e73625de623d370c1377 Mon Sep 17 00:00:00 2001 From: klu909 <55161078+klu909@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:41:16 -0700 Subject: [PATCH] feat(3068): pull latest config-parser (#622) * feat(3068): pull latest config-parser * fix test --- lib/pipeline.js | 2 +- package.json | 2 +- test/lib/pipeline.test.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pipeline.js b/lib/pipeline.js index 0adb2afe..57c2b419 100644 --- a/lib/pipeline.js +++ b/lib/pipeline.js @@ -3,7 +3,7 @@ 'use strict'; -const parser = require('screwdriver-config-parser'); +const parser = require('screwdriver-config-parser').parsePipelineYaml; const workflowParser = require('screwdriver-workflow-parser'); const boom = require('@hapi/boom'); const hoek = require('@hapi/hoek'); diff --git a/package.json b/package.json index 67671952..96299d3a 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "docker-parse-image": "^3.0.1", "js-yaml": "^4.1.0", "lodash": "^4.17.21", - "screwdriver-config-parser": "^9.0.0", + "screwdriver-config-parser": "^10.0.0", "screwdriver-data-schema": "^23.0.4", "screwdriver-logger": "^2.0.0", "screwdriver-workflow-parser": "^4.1.0" diff --git a/test/lib/pipeline.test.js b/test/lib/pipeline.test.js index 9a849ca6..1d1b0a10 100644 --- a/test/lib/pipeline.test.js +++ b/test/lib/pipeline.test.js @@ -396,7 +396,9 @@ describe('Pipeline Model', () => { rewiremock('../../lib/pipelineFactory').with({ getInstance: sinon.stub().returns(pipelineFactoryMock) }); - rewiremock('screwdriver-config-parser').with(parserMock); + rewiremock('screwdriver-config-parser').with({ + parsePipelineYaml: parserMock + }); rewiremock('../../lib/triggerFactory').with({ getInstance: sinon.stub().returns(triggerFactoryMock) });