-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a dummy package for tests about install packages from github sources required for #1210 Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
- Loading branch information
1 parent
3d63b14
commit 357e61c
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/cactus-cmd-api-server/src/test/resources/cactus-dummy-package/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class DummyPlugin { | ||
onPluginInit() { | ||
console.log("DummyPlugin#onPluginInit() OK"); | ||
return Promise.resolve(); | ||
} | ||
getInstanceId() { | ||
console.log("DummyPlugin#getInstanceId() OK"); | ||
return "dummy_instance_id"; | ||
} | ||
getPackageName() { | ||
console.log("DummyPlugin#getPackageName() OK"); | ||
return "@hyperledger/cactus-dummy-package"; | ||
} | ||
} | ||
|
||
class DummyPluginFactory { | ||
create() { | ||
return Promise.resolve(new DummyPlugin()); | ||
} | ||
} | ||
|
||
module.exports.createPluginFactory = (options) => { | ||
return Promise.resolve(new DummyPluginFactory(options)); | ||
}; |
6 changes: 6 additions & 0 deletions
6
packages/cactus-cmd-api-server/src/test/resources/cactus-dummy-package/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@hyperledger/cactus-dummy-package", | ||
"version": "0.0.1", | ||
"description": "Dummy package for testing.", | ||
"main": "index.js" | ||
} |