Skip to content

Commit

Permalink
feat: bump the version of ask-smapi-model to v1.8.0 (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
RonWang authored May 14, 2020
1 parent c38f41f commit d699e04
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"adm-zip": "^0.4.13",
"archiver": "^1.1.0",
"ask-smapi-model": "1.7.0",
"ask-smapi-model": "1.8.0",
"ask-smapi-sdk": "^1.2.0",
"async": "^2.1.5",
"aws-profile-handler": "2.0.3",
Expand Down
22 changes: 22 additions & 0 deletions test/integration/commands/smapi-commands-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,28 @@ parallel('smapi command test', () => {
expect(result).include('Command executed successfully!');
});

it('| should get conflicts for interaction model conflict detection', async () => {
const args = [subCmd, 'get-conflicts-for-interaction-model', '-s', skillId, '-l', locale, '-g', stage, '--vers', '1'];
addCoveredCommand(args);
const result = await run(cmd, args, options);
expect(result).be.an('object');
});

it('| should get job status for interaction model conflict detection', async () => {
const args = [subCmd, 'get-conflict-detection-job-status-for-interaction-model', '-s', skillId, '-l', locale, '-g', stage, '--vers', '1'];
addCoveredCommand(args);
const result = await run(cmd, args, options);
expect(result).be.an('object');
});

it('| should get skill credential', async () => {
const args = [subCmd, 'get-skill-credentials', '-s', skillId];
addCoveredCommand(args);
// TODO return type should be object. fix with the next update of ask-smapi-model
const result = await run(cmd, args, { ...options, parse: false });
expect(result).include('Command executed successfully!');
});

after(() => {
mockSmapiServer.kill();
mockLwaServer.kill();
Expand Down

0 comments on commit d699e04

Please sign in to comment.