Revision 2723
org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/test/resources/org/gvsig/vcsgis/lib/impl/expecteds/S04Row.txt | ||
---|---|---|
1 |
|
|
2 |
@rem -------------------------------------------------- |
|
3 |
@rem TestS04Row.java |
|
4 |
@rem Values to check request and response of |
|
5 |
@rem RowCreate/RowUpdate/RowDelete requests |
|
6 |
@rem -------------------------------------------------- |
|
7 |
|
|
8 |
@rem The client request of a RowCreate request |
|
9 |
@rem - EntityName: table name |
|
10 |
@rem - LocalRevisionCode: revision code of the data that the client has. |
|
11 |
@rem - EfectiveDate: the efective date associated to this change. If null use now. |
|
12 |
@rem - Comment |
|
13 |
@rem - Data: The row values codified in Json. The VCSGISCODE is asigned in |
|
14 |
@rem this operation, if not is null it is overwrite. |
|
15 |
@begin RowCreateRequest |
|
16 |
{ |
|
17 |
"EntityName":"test", |
|
18 |
"LocalRevisionCode":"00000000000014abcdef0123456789", |
|
19 |
"EfectiveDate":"2020-02-18 10:11:12.123", |
|
20 |
"Comment":"test row create (4,ddd)", |
|
21 |
"Data":"\n{\n \"id\":4,\n \"text\":\"DDD\",\n \"VCSGISCODE\":\"\"\n}" |
|
22 |
} |
|
23 |
@end RowCreateRequest |
|
24 |
|
|
25 |
@rem The server response of rowcreate request for this test |
|
26 |
@rem - StatusCode: 0 ok. |
|
27 |
@rem - StatusMessage: Description of the error if StatusCode is not 0. |
|
28 |
@rem - RelatedFeatureCode: Value asigned to the code of this |
|
29 |
@rem feature (VCSGISCODE) in the VCS |
|
30 |
@rem - EntityName: Name of the table on which the operation has been performed. |
|
31 |
@rem - EntityCode: Code associated with the table specified in EntityName. |
|
32 |
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS. |
|
33 |
@begin RowCreateResponse |
|
34 |
{ |
|
35 |
"StatusCode":0, |
|
36 |
"StatusMessage":null, |
|
37 |
"RelatedFeatureCode":"00000000000022abcdef0123456789", |
|
38 |
"EntityName":"test", |
|
39 |
"EntityCode":"00000000000002abcdef0123456789", |
|
40 |
"RevisionCode":"00000000000024abcdef0123456789" |
|
41 |
} |
|
42 |
@end RowCreateResponse |
|
43 |
|
|
44 |
|
|
45 |
@rem The client request of a RowUpdate request |
|
46 |
@rem - EntityName: table name |
|
47 |
@rem - LocalRevisionCode: revision code of the data that the client has. |
|
48 |
@rem - EfectiveDate: the efective date associated to this change. If null use now. |
|
49 |
@rem - Comment |
|
50 |
@rem - Data: The row values codified in Json. VCSGISCODE cannot be null and |
|
51 |
@rem must contain the del code in the VCS. |
|
52 |
@begin RowUpdateRequest |
|
53 |
{ |
|
54 |
"EntityName":"test", |
|
55 |
"LocalRevisionCode":"00000000000024abcdef0123456789", |
|
56 |
"EfectiveDate":null, |
|
57 |
"Comment":"test row update (4,dd2)", |
|
58 |
"Data":"\n{\n \"id\":4,\n \"text\":\"DD2\",\n \"VCSGISCODE\":\"00000000000022abcdef0123456789\"\n}" |
|
59 |
} |
|
60 |
@end RowUpdateRequest |
|
61 |
|
|
62 |
@rem The server response of RowUpdate request for this test |
|
63 |
@rem - StatusCode: 0 ok. |
|
64 |
@rem - StatusMessage: Description of the error if StatusCode is not 0. |
|
65 |
@rem - EntityName: Name of the table on which the operation has been performed. |
|
66 |
@rem - EntityCode: Code associated with the table specified in EntityName. |
|
67 |
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS. |
|
68 |
@begin RowUpdateResponse |
|
69 |
{ |
|
70 |
"StatusCode":0, |
|
71 |
"StatusMessage":null, |
|
72 |
"EntityName":"test", |
|
73 |
"EntityCode":"00000000000002abcdef0123456789", |
|
74 |
"RevisionCode":"00000000000029abcdef0123456789" |
|
75 |
} |
|
76 |
@end RowUpdateResponse |
|
77 |
|
|
78 |
|
|
79 |
@rem The client request of a RowDelete request |
|
80 |
@rem - EntityName: table name |
|
81 |
@rem - LocalRevisionCode: revision code of the data that the client has. |
|
82 |
@rem - EfectiveDate: the efective date associated to this change. If null use now. |
|
83 |
@rem - Comment |
|
84 |
@rem - RelatedFeatureCode: code of the record to be deleted in the EntityName table. |
|
85 |
@begin RowDeleteRequest |
|
86 |
{ |
|
87 |
"EntityName":"test", |
|
88 |
"LocalRevisionCode":"00000000000029abcdef0123456789", |
|
89 |
"RelatedFeatureCode":"00000000000022abcdef0123456789", |
|
90 |
"EfectiveDate":"2020-02-19 10:11:12.123", |
|
91 |
"Comment":"test row delete (4,dd2)" |
|
92 |
} |
|
93 |
@end RowDeleteRequest |
|
94 |
|
|
95 |
@rem The server response of RowDelete request for this test |
|
96 |
@rem - StatusCode: 0 ok. |
|
97 |
@rem - StatusMessage: Description of the error if StatusCode is not 0. |
|
98 |
@rem - EntityName: Name of the table on which the operation has been performed. |
|
99 |
@rem - EntityCode: Code associated with the table specified in EntityName. |
|
100 |
@rem - RevisionCode: Code of the last revision of the EntityName table in the VCS. |
|
101 |
@begin RowDeleteResponse |
|
102 |
{ |
|
103 |
"StatusCode":0, |
|
104 |
"StatusMessage":null, |
|
105 |
"EntityName":"test", |
|
106 |
"EntityCode":"00000000000002abcdef0123456789", |
|
107 |
"RevisionCode":"00000000000034abcdef0123456789" |
|
108 |
} |
|
109 |
@end RowDeleteResponse |
Also available in: Unified diff