Skip to content

Commit d797758

Browse files
committed
Release 0.40.4
Rename nodeModulesResourceRelativePath to nodeModulesRelativePath Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent af8ffbc commit d797758

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif::[]
1717
:pmtemplates: src/integrationTest/resources/pm-templates
1818
:imagesdir: docs/images
1919
:prewrap!:
20-
:revoman-version: 0.40.3
20+
:revoman-version: 0.40.4
2121

2222
'''
2323

@@ -224,7 +224,7 @@ final var pqRundown =
224224
.customDynamicVariableGenerator( // <5>
225225
"$unitPrice",
226226
(ignore1, ignore2, ignore3) -> String.valueOf(Random.Default.nextInt(999) + 1))
227-
.nodeModulesResourceRelativePath("js") // <6>
227+
.nodeModulesRelativePath("js") // <6>
228228
.haltOnFailureOfTypeExcept(
229229
HTTP_STATUS,
230230
afterAllStepsContainingHeader("ignoreHTTPStatusUnsuccessful")) // <7>
@@ -445,7 +445,7 @@ Pre-req and Tests scripts support makes sure that the Postman collection used fo
445445
* This tool can execute JavaScript written under the https://learning.postman.com/docs/writing-scripts/script-references/test-examples/[Pre-req and Tests tabs of Postman].
446446
** Pre-req JS is executed as the first step before Unmarshall request.
447447
** Tests JS is executed right after receiving an HTTP response.
448-
* ReṼoman supports using of any `npm` modules inside your Pre-req and Tests javascript. You can install `npm` modules in any folder and supply in the Kick config, the relative path of the parent folder that contains the `node_modules` folder using `nodeModulesResourceRelativePath(...)`. Use those `npm` modules inside your scripts with `require(...)`, for example:
448+
* ReṼoman supports using of any `npm` modules inside your Pre-req and Tests javascript. You can install `npm` modules in any folder and supply in the Kick config, the relative path of the parent folder that contains the `node_modules` folder using `nodeModulesRelativePath(...)`. Use those `npm` modules inside your scripts with `require(...)`, for example:
449449

450450
[source,javascript,indent=0,options="nowrap"]
451451
----

buildSrc/src/main/kotlin/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* ************************************************************************************************
77
*/
88
const val GROUP_ID = "com.salesforce.revoman"
9-
const val VERSION = "0.40.3"
9+
const val VERSION = "0.40.4"
1010
const val ARTIFACT_ID = "revoman"
1111
const val STAGING_PROFILE_ID = "1ea0a23e61ba7d"

src/integrationTest/java/com/salesforce/revoman/integration/core/pq/PQE2EWithSMTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void revUpPQ() {
7676
.customDynamicVariableGenerator( // <5>
7777
"$unitPrice",
7878
(ignore1, ignore2, ignore3) -> String.valueOf(Random.Default.nextInt(999) + 1))
79-
.nodeModulesResourceRelativePath("js") // <6>
79+
.nodeModulesRelativePath("js") // <6>
8080
.haltOnFailureOfTypeExcept(
8181
HTTP_STATUS,
8282
afterAllStepsContainingHeader("ignoreHTTPStatusUnsuccessful")) // <7>

src/main/kotlin/com/salesforce/revoman/ReVoman.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ object ReVoman {
8888
pm = PostmanSDK(regexReplacer)
8989
pm.environment.clear()
9090
pm.environment.putAll(environment)
91-
initJSContext(kick.nodeModulesResourceRelativePath())
91+
initJSContext(kick.nodeModulesRelativePath())
9292
var haltExecution = false
9393
return pmStepsFlattened
9494
.asSequence()

src/main/kotlin/com/salesforce/revoman/input/JSUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import org.graalvm.polyglot.Context
1414
import org.graalvm.polyglot.HostAccess
1515
import org.graalvm.polyglot.Source
1616
import org.graalvm.polyglot.Value
17+
1718
// ! TODO 01 Apr 2024 gopala.akshintala: Refactor this into a Class with DI
1819
/** Refer: https://www.graalvm.org/22.3/reference-manual/embed-languages/ */
1920
private lateinit var jsContext: Context

src/main/kotlin/com/salesforce/revoman/input/config/KickDef.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal interface KickDef {
3131

3232
fun dynamicEnvironments(): List<Map<String, String>>
3333

34-
fun nodeModulesResourceRelativePath(): String?
34+
fun nodeModulesRelativePath(): String?
3535

3636
@Value.Derived
3737
fun dynamicEnvironmentsFlattened(): Map<String, String> =

0 commit comments

Comments
 (0)