@@ -1725,20 +1725,20 @@ class DynamicEntityTest extends V400ServerSetup {
17251725 }
17261726
17271727 {
1728- Then (" User1 get my foobar, only return his own records, only one " )
1728+ Then (" User1 get my foobar, returns his own records (including those created via non-/my endpoints) " )
17291729 val requestGetFoobars = (dynamicEntity_Request / " my" / " FooBar" ).GET <@ (user1)
17301730 val responseGetFoobars = makeGetRequest(requestGetFoobars)
17311731 responseGetFoobars.code should equal(200 )
17321732
1733- (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(1 )
1733+ (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(2 )
17341734 }
17351735 {
1736- Then (" User2 get my foobar, only return his own records, only one " )
1736+ Then (" User2 get my foobar, returns his own records (including those created via non-/my endpoints) " )
17371737 val requestGetFoobars = (dynamicEntity_Request / " my" / " FooBar" ).GET <@ (user2)
17381738 val responseGetFoobars = makeGetRequest(requestGetFoobars)
17391739 responseGetFoobars.code should equal(200 )
17401740
1741- (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(1 )
1741+ (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(2 )
17421742 }
17431743
17441744 {
@@ -1851,20 +1851,20 @@ class DynamicEntityTest extends V400ServerSetup {
18511851 }
18521852
18531853 {
1854- Then (" User1 get my foobar, only return his own records, only one " )
1854+ Then (" User1 get my foobar, returns his own records (including those created via non-/my endpoints) " )
18551855 val requestGetFoobars = (dynamicEntity_Request / " banks" / testBankId1.value / " my" / " FooBar" ).GET <@ (user1)
18561856 val responseGetFoobars = makeGetRequest(requestGetFoobars)
18571857 responseGetFoobars.code should equal(200 )
18581858
1859- (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(1 )
1859+ (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(2 )
18601860 }
18611861 {
1862- Then (" User2 get my foobar, only return his own records, only one " )
1862+ Then (" User2 get my foobar, returns his own records (including those created via non-/my endpoints) " )
18631863 val requestGetFoobars = (dynamicEntity_Request / " banks" / testBankId1.value / " my" / " FooBar" ).GET <@ (user2)
18641864 val responseGetFoobars = makeGetRequest(requestGetFoobars)
18651865 responseGetFoobars.code should equal(200 )
18661866
1867- (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(1 )
1867+ (responseGetFoobars.body \ " foo_bar_list" ).asInstanceOf [JArray ].arr.size should be(2 )
18681868 }
18691869
18701870 {
0 commit comments