From 1356b9f3de8690598bb40078abd62aeead87a468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Vidis?= Date: Thu, 15 Nov 2018 10:17:33 +0100 Subject: [PATCH 1/2] [bugfix] mcreate with error should fail for a reason --- documents.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/documents.feature b/documents.feature index 1971dfc..a48cbc3 100644 --- a/documents.feature +++ b/documents.feature @@ -133,6 +133,7 @@ Feature: Document management Given Kuzzle Server is running And there is an index 'test-index' And it has a collection 'mcreate-test-collection' + And the collection has a document with id 'mcreate-my-document-id' And the collection doesn't have a document with id 'mcreate-my-document-id' And the collection doesn't have a document with id 'mcreate-my-document-id2' When I create the documents ['mcreate-my-document-id', 'mcreate-my-document-id2'] From ab4d2bc86de2ec5aac343319b86addc9544a7981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Vidis?= Date: Thu, 15 Nov 2018 14:46:10 +0100 Subject: [PATCH 2/2] [bugfix] fix user content field --- auth.feature | 2 +- documents.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth.feature b/auth.feature index 116cce8..594cadd 100644 --- a/auth.feature +++ b/auth.feature @@ -20,7 +20,7 @@ Feature: User management And I log in as 'my-user-name':'my-user-pwd' And I update my user custom data with the pair : When I get my user info - Then the response '_source' field contains the pair : + Then the response 'content' field contains the pair : Examples: | field-name | field-value | | 'my_data' | 'mystringvalue' | diff --git a/documents.feature b/documents.feature index a48cbc3..44d3188 100644 --- a/documents.feature +++ b/documents.feature @@ -133,7 +133,6 @@ Feature: Document management Given Kuzzle Server is running And there is an index 'test-index' And it has a collection 'mcreate-test-collection' - And the collection has a document with id 'mcreate-my-document-id' And the collection doesn't have a document with id 'mcreate-my-document-id' And the collection doesn't have a document with id 'mcreate-my-document-id2' When I create the documents ['mcreate-my-document-id', 'mcreate-my-document-id2'] @@ -144,6 +143,7 @@ Feature: Document management Given Kuzzle Server is running And there is an index 'test-index' And it has a collection 'mcreate-test-collection' + And the collection has a document with id 'mcreate-my-document-id' When I create the documents ['mcreate-my-document-id', 'mcreate-my-document-id2'] Then I must have 2 documents in the collection And I get a partial error