@@ -98,7 +98,7 @@ var _ = Describe("Server", func() {
9898
9999 It ("CreateMany() should create new entries on the server, and return them with uuid set" , func () {
100100 entries := []* MockUuidObject {{Name : "1" , Value : "A" }}
101- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .Exhaustive , movement.PositionFirst {})
101+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .Exhaustive , movement.PositionFirst {}, map [ string ] string {} )
102102
103103 Expect (err ).ToNot (HaveOccurred ())
104104 Expect (processed ).To (HaveLen (1 ))
@@ -114,7 +114,7 @@ var _ = Describe("Server", func() {
114114 Context ("and entries with the same name are being created in NonExhaustive mode" , func () {
115115 It ("should not create any entries and return an error" , func () {
116116 entries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "4" , Value : "D" }}
117- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {})
117+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
118118
119119 Expect (err ).To (MatchError (sdkmanager .ErrConflict ))
120120 Expect (processed ).To (BeNil ())
@@ -126,7 +126,7 @@ var _ = Describe("Server", func() {
126126 Context ("and all entries being created are new to the server" , func () {
127127 It ("should create those entries in the correct position" , func () {
128128 entries := []* MockUuidObject {{Name : "4" , Value : "D" }, {Name : "5" , Value : "E" }}
129- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {})
129+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
130130
131131 Expect (err ).ToNot (HaveOccurred ())
132132 Expect (processed ).To (HaveLen (2 ))
@@ -142,7 +142,7 @@ var _ = Describe("Server", func() {
142142 Context ("and entries are created in Exhaustive mode" , func () {
143143 It ("should not return any error and overwrite all entries on the server" , func () {
144144 entries := []* MockUuidObject {{Name : "1" , Value : "A'" }, {Name : "3" , Value : "C" }}
145- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .Exhaustive , movement.PositionFirst {})
145+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .Exhaustive , movement.PositionFirst {}, map [ string ] string {} )
146146
147147 Expect (err ).ToNot (HaveOccurred ())
148148
@@ -174,7 +174,7 @@ var _ = Describe("Server", func() {
174174 stateEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B" }, {Name : "3" , Value : "C" }}
175175 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "3" , Value : "C" }, {Name : "2" , Value : "B" }}
176176
177- processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
177+ processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
178178
179179 Expect (err ).ToNot (HaveOccurred ())
180180 Expect (processed ).To (HaveLen (3 ))
@@ -192,7 +192,7 @@ var _ = Describe("Server", func() {
192192 stateEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B" }, {Name : "3" , Value : "C" }}
193193 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "3" , Value : "C" }, {Name : "2" , Value : "B" }}
194194
195- processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .Exhaustive , movement.PositionFirst {})
195+ processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .Exhaustive , movement.PositionFirst {}, map [ string ] string {} )
196196
197197 Expect (err ).ToNot (HaveOccurred ())
198198 Expect (processed ).To (HaveLen (3 ))
@@ -212,7 +212,7 @@ var _ = Describe("Server", func() {
212212
213213 It ("should add the entry to the server" , func () {
214214 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B" }, {Name : "3" , Value : "C" }}
215- processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionLast {})
215+ processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionLast {}, map [ string ] string {} )
216216
217217 Expect (err ).ToNot (HaveOccurred ())
218218 Expect (processed ).To (HaveLen (3 ))
@@ -224,7 +224,7 @@ var _ = Describe("Server", func() {
224224 It ("should delete the entry from the server" , func () {
225225 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "3" , Value : "C" }}
226226
227- processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
227+ processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
228228
229229 Expect (err ).ToNot (HaveOccurred ())
230230 Expect (processed ).To (HaveLen (2 ))
@@ -236,7 +236,7 @@ var _ = Describe("Server", func() {
236236 It ("should update the entry on the server" , func () {
237237 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B_modified" }, {Name : "3" , Value : "C" }}
238238
239- processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
239+ processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
240240
241241 Expect (err ).ToNot (HaveOccurred ())
242242 Expect (processed ).To (HaveLen (3 ))
@@ -248,7 +248,7 @@ var _ = Describe("Server", func() {
248248 It ("should rename the entry on the server" , func () {
249249 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "two" , Value : "B" }, {Name : "3" , Value : "C" }}
250250
251- processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
251+ processed , err := manager .UpdateMany (ctx , location , []string {}, initial , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
252252
253253 Expect (err ).ToNot (HaveOccurred ())
254254 Expect (processed ).To (HaveLen (3 ))
@@ -275,7 +275,7 @@ var _ = Describe("Server", func() {
275275 stateEntries := []* MockUuidObject {}
276276 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B" }}
277277
278- processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .Exhaustive , movement.PositionFirst {})
278+ processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .Exhaustive , movement.PositionFirst {}, map [ string ] string {} )
279279
280280 Expect (err ).ToNot (HaveOccurred ())
281281 Expect (processed ).To (HaveLen (2 ))
@@ -291,7 +291,7 @@ var _ = Describe("Server", func() {
291291 It ("should return a conflict error" , func () {
292292 stateEntries := []* MockUuidObject {{Name : "1" , Value : "A" }}
293293 planEntries := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "conflict" , Value : "new" }}
294- _ , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
294+ _ , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
295295
296296 Expect (err ).To (MatchError (sdkmanager .ErrConflict ))
297297 })
@@ -333,7 +333,7 @@ var _ = Describe("Server", func() {
333333
334334 expectedFinalServerObjects := append (expectedFinalState , & MockUuidObject {Name : "99" , Value : "ZZ" })
335335
336- processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {})
336+ processed , err := manager .UpdateMany (ctx , location , []string {}, stateEntries , planEntries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
337337
338338 Expect (err ).ToNot (HaveOccurred ())
339339 Expect (processed ).To (HaveLen (4 ))
@@ -369,7 +369,7 @@ var _ = Describe("Server", func() {
369369 state := []* MockUuidObject {{Name : "1" , Value : "" }, {Name : "2" , Value : "" }, {Name : "3" , Value : "C" }}
370370 plan := []* MockUuidObject {{Name : "1" , Value : "A" }, {Name : "2" , Value : "B" }, {Name : "3" , Value : "C" }}
371371
372- processed , err := manager .UpdateMany (ctx , location , []string {}, state , plan , sdkmanager .NonExhaustive , movement.PositionLast {})
372+ processed , err := manager .UpdateMany (ctx , location , []string {}, state , plan , sdkmanager .NonExhaustive , movement.PositionLast {}, map [ string ] string {} )
373373 Expect (err ).ToNot (HaveOccurred ())
374374 Expect (processed ).To (MatchEntries (plan ))
375375 Expect (client .list ()).To (MatchEntries (append ([]* MockUuidObject {{Name : "4" , Value : "" }}, plan ... )))
@@ -437,7 +437,7 @@ var _ = Describe("Server", func() {
437437 Expect (moveRequired ).To (BeFalse ())
438438 Expect (processed ).To (HaveLen (2 ))
439439
440- processed , err = manager .UpdateMany (ctx , location , []string {}, processed , entries , sdkmanager .NonExhaustive , movement.PositionLast {})
440+ processed , err = manager .UpdateMany (ctx , location , []string {}, processed , entries , sdkmanager .NonExhaustive , movement.PositionLast {}, map [ string ] string {} )
441441 Expect (client .list ()).To (HaveLen (3 ))
442442 Expect (err ).ToNot (HaveOccurred ())
443443 Expect (processed ).To (HaveLen (3 ))
@@ -452,7 +452,7 @@ var _ = Describe("Server", func() {
452452 It ("should create new entries on the top of the list" , func () {
453453 entries := []* MockUuidObject {{Name : "4" , Value : "D" }, {Name : "5" , Value : "E" }, {Name : "6" , Value : "F" }}
454454
455- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {})
455+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
456456 Expect (err ).ToNot (HaveOccurred ())
457457 Expect (processed ).To (HaveLen (3 ))
458458
@@ -470,7 +470,7 @@ var _ = Describe("Server", func() {
470470 It ("should create new entries on the bottom of the list" , func () {
471471 entries := []* MockUuidObject {{Name : "4" , Value : "D" }, {Name : "5" , Value : "E" }, {Name : "6" , Value : "F" }}
472472
473- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionLast {})
473+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionLast {}, map [ string ] string {} )
474474 Expect (err ).ToNot (HaveOccurred ())
475475 Expect (processed ).To (HaveLen (3 ))
476476
@@ -488,7 +488,7 @@ var _ = Describe("Server", func() {
488488 It ("should create new entries directly after first existing element" , func () {
489489 entries := []* MockUuidObject {{Name : "4" , Value : "D" }, {Name : "5" , Value : "E" }, {Name : "6" , Value : "F" }}
490490
491- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionAfter {Directly : true , Pivot : initial [0 ].Name })
491+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionAfter {Directly : true , Pivot : initial [0 ].Name }, map [ string ] string {} )
492492
493493 Expect (err ).ToNot (HaveOccurred ())
494494 Expect (processed ).To (HaveLen (3 ))
@@ -513,7 +513,7 @@ var _ = Describe("Server", func() {
513513
514514 pivot := initial [2 ].Name // "3"
515515 position := movement.PositionBefore {Directly : true , Pivot : pivot }
516- processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , position )
516+ processed , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , position , map [ string ] string {} )
517517
518518 Expect (err ).ToNot (HaveOccurred ())
519519 Expect (processed ).To (HaveLen (3 ))
@@ -532,7 +532,7 @@ var _ = Describe("Server", func() {
532532 Context ("and there is a duplicate entry within a list" , func () {
533533 It ("should properly raise an error" , func () {
534534 entries := []* MockUuidObject {{Name : "4" , Value : "D" }, {Name : "4" , Value : "D" }}
535- _ , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {})
535+ _ , err := manager .CreateMany (ctx , location , []string {}, entries , sdkmanager .NonExhaustive , movement.PositionFirst {}, map [ string ] string {} )
536536
537537 Expect (err ).To (MatchError (sdkmanager .ErrPlanConflict ))
538538 })
0 commit comments