Skip to content

Commit

Permalink
Merge pull request #819 from watson-developer-cloud/remove-piv2-tests
Browse files Browse the repository at this point in the history
test: remove pi v2 test and example - service is no longer available
  • Loading branch information
dpopp07 authored Jan 7, 2019
2 parents 69c71c0 + 03a3930 commit 5b7ffd5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 125 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ node_js:
- 6
- 8
before_install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_ac3aacad7ba8_key -iv $encrypted_ac3aacad7ba8_iv
-in secrets.tar.enc -out test/resources/secrets.tar -d || true'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && cd test/resources/ && tar xvf secrets.tar && cd ../.. || true'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_ac3aacad7ba8_key
-iv $encrypted_ac3aacad7ba8_iv -in secrets.tar.enc -out test/resources/secrets.tar
-d || true'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && cd test/resources/ && tar xvf secrets.tar
&& cd ../.. || true'
- npm install -g typescript
script:
- tsc
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ];
then npm run test-travis;
else
npm run test-unit-travis;
fi
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-travis; else npm run
test-unit-travis; fi
- sh scripts/typedoc/generate_typedoc.sh
after_success:
- npm run report-coverage
Expand Down
81 changes: 0 additions & 81 deletions examples/personality_insights.v2.js

This file was deleted.

Binary file modified secrets.tar.enc
Binary file not shown.
6 changes: 3 additions & 3 deletions test/integration/adapter.personality_insights.v3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const TWENTY_SECONDS = 20000;
describe('personality_insights_v3_adapter_integration', function() {
jest.setTimeout(TWENTY_SECONDS);
const mobydick = fs.readFileSync(path.join(__dirname, '../resources/mobydick.txt'), 'utf8');
auth.personality_insights.v3.version = 'v3';
auth.personality_insights.v3.version_date = '2016-10-19';
const personality_insights = watson.personality_insights(auth.personality_insights.v3);
auth.personality_insights.version = 'v3';
auth.personality_insights.version_date = '2016-10-19';
const personality_insights = watson.personality_insights(auth.personality_insights);

it('profile()', function(done) {
const params = {
Expand Down
31 changes: 0 additions & 31 deletions test/integration/personality_insights.v2.test.js

This file was deleted.

4 changes: 2 additions & 2 deletions test/integration/personality_insights.v3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('personality_insights_v3_integration', function() {
jest.setTimeout(TWENTY_SECONDS);

const mobydick = fs.readFileSync(path.join(__dirname, '../resources/mobydick.txt'), 'utf8');
auth.personality_insights.v3.version = '2016-10-19';
const personality_insights = new watson.PersonalityInsightsV3(auth.personality_insights.v3);
auth.personality_insights.version = '2016-10-19';
const personality_insights = new watson.PersonalityInsightsV3(auth.personality_insights);

it('profile with text content', function(done) {
const params = {
Expand Down

0 comments on commit 5b7ffd5

Please sign in to comment.