Create helper utility to easily override action versions
Closed this issue ยท 1 comments
tripodsan commented
when testing actions during smoke tests, it might be necessary to invoke other actions that are also part of a PR.
In order to address this problem, it should be possible to invoke actions with a special header x-ow-version-lock
.
For example
x-ow-version-lock: worker@v1=worker@1.2.3&my-service@v2=my-service@ci453
It would be useful to have an utility to easily parse the header and help invoking actions. eg:
const lock = new VersionLock(params);
const ow = openwhisk();
const result = await ow.actions.invoke(lock.actionParams({
name: 'worker@v1',
});
or even create a more invasive wrapper:
const ow = lock.wrap(openwhisk());
Ideally the x-ow-version-lock
should be forwarded to the invoked action.
adobe-bot commented
๐ This issue has been resolved in version 4.3.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐