@@ -135,15 +135,134 @@ describe('integration-all-services', function() {
135135
136136 describe ( 'functional_concept_insights' , function ( ) {
137137 this . timeout ( TEN_SECONDS ) ;
138+
139+ var sample = {
140+ concept : '/graphs/wikipedia/en-20120601/concepts/IBM' ,
141+ document : '/corpora/public/ibmresearcher/documents/il-AHARONA' ,
142+ corpus : '/corpora/public/ibmresearcher' ,
143+ graph : '/graphs/wikipedia/en-20120601'
144+ } ;
145+
138146 var concept_insights = watson . concept_insights ( auth . concept_insights ) ;
139147
140148 it ( 'listCorpora()' , function ( done ) {
141149 concept_insights . corpora . listCorpora ( { } , failIfError . bind ( failIfError , done ) ) ;
142150 } ) ;
143151
152+ it ( 'listCorporaWithAccountId()' , function ( done ) {
153+ concept_insights . corpora . listCorpora ( {
154+ account_id : auth . concept_insights . account_id
155+ } , failIfError . bind ( failIfError , done ) ) ;
156+ } ) ;
157+
144158 it ( 'getAccountsInfo()' , function ( done ) {
145159 concept_insights . accounts . getAccountsInfo ( { } , failIfError . bind ( failIfError , done ) ) ;
146160 } ) ;
161+
162+ // to update
163+ it ( 'getConcept()' , function ( done ) {
164+ concept_insights . graphs . getConcept ( {
165+ id : sample . concept
166+ } , failIfError . bind ( failIfError , done ) ) ;
167+ } ) ;
168+
169+ it ( 'searchConceptByLabel()' , function ( done ) {
170+ concept_insights . graphs . searchConceptByLabel ( {
171+ graph : sample . graph ,
172+ query : 'ibm'
173+ } , failIfError . bind ( failIfError , done ) ) ;
174+ } ) ;
175+
176+ it ( 'getRelatedConcepts()' , function ( done ) {
177+ concept_insights . graphs . getRelatedConcepts ( {
178+ graph : sample . graph ,
179+ concepts : [ sample . concept ]
180+ } , failIfError . bind ( failIfError , done ) ) ;
181+ } ) ;
182+
183+ it ( 'annotateText()' , function ( done ) {
184+ concept_insights . graphs . annotateText ( {
185+ graph : sample . graph ,
186+ text : 'Nizar Magboul Alseddeg is currently living in Austin Texas'
187+ } , failIfError . bind ( failIfError , done ) ) ;
188+ } ) ;
189+
190+ it ( 'getRelationScores()' , function ( done ) {
191+ concept_insights . graphs . getRelationScores ( {
192+ id : sample . concept ,
193+ concepts : [ '/graphs/wikipedia/en-20120601/concepts/Cloud_computing' ,
194+ '/graphs/wikipedia/en-20120601/concepts/Web_services' ]
195+ } , failIfError . bind ( failIfError , done ) ) ;
196+ } ) ;
197+
198+ it ( 'getCorpus()' , function ( done ) {
199+ concept_insights . corpora . getCorpus ( {
200+ corpus : sample . corpus
201+ } , failIfError . bind ( failIfError , done ) ) ;
202+ } ) ;
203+
204+ it ( 'listDocuments()' , function ( done ) {
205+ concept_insights . corpora . listDocuments ( {
206+ corpus : sample . corpus
207+ } , failIfError . bind ( failIfError , done ) ) ;
208+ } ) ;
209+
210+ it ( 'getDocument()' , function ( done ) {
211+ concept_insights . corpora . getDocument ( {
212+ id : sample . document
213+ } , failIfError . bind ( failIfError , done ) ) ;
214+ } ) ;
215+
216+ it ( 'getDocumentAnnotations()' , function ( done ) {
217+ concept_insights . corpora . getDocumentAnnotations ( {
218+ id : sample . document
219+ } , failIfError . bind ( failIfError , done ) ) ;
220+ } ) ;
221+
222+ it ( 'getCorpusProcessingState()' , function ( done ) {
223+ concept_insights . corpora . getCorpusProcessingState ( {
224+ corpus : sample . corpus
225+ } , failIfError . bind ( failIfError , done ) ) ;
226+ } ) ;
227+
228+ it ( 'getCorpusStats()' , function ( done ) {
229+ concept_insights . corpora . getCorpusStats ( {
230+ corpus : sample . corpus
231+ } , failIfError . bind ( failIfError , done ) ) ;
232+ } ) ;
233+
234+ it ( 'searchByLabel()' , function ( done ) {
235+ concept_insights . corpora . searchByLabel ( {
236+ corpus : sample . corpus ,
237+ query : 'ibm'
238+ } , failIfError . bind ( failIfError , done ) ) ;
239+ } ) ;
240+
241+ it ( 'getRelatedDocuments()' , function ( done ) {
242+ concept_insights . corpora . getRelatedDocuments ( {
243+ corpus : sample . corpus ,
244+ ids : [ sample . concept ]
245+ } , failIfError . bind ( failIfError , done ) ) ;
246+ } ) ;
247+
248+ it ( 'getRelatedConcepts()' , function ( done ) {
249+ concept_insights . corpora . getRelatedConcepts ( {
250+ id : sample . concept
251+ } , failIfError . bind ( failIfError , done ) ) ;
252+ } ) ;
253+
254+ it ( 'getRelatedConcepts()' , function ( done ) {
255+ concept_insights . corpora . getRelatedConcepts ( {
256+ concepts : [ sample . concept ] ,
257+ id : sample . concept
258+ } , failIfError . bind ( failIfError , done ) ) ;
259+ } ) ;
260+
261+ it ( 'getDocumentProcessingState()' , function ( done ) {
262+ concept_insights . corpora . getDocumentProcessingState ( {
263+ id : sample . document
264+ } , failIfError . bind ( failIfError , done ) ) ;
265+ } ) ;
147266 } ) ;
148267
149268 describe ( 'functional_text_to_speech' , function ( ) {
0 commit comments