/
testRules.json
229 lines (229 loc) · 15.1 KB
/
testRules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
"Version": 2,
"Files": [
{ "Action": "Put", "File": "test.pptx" },
{ "Action": "Put", "File": "test-unprotected.pptx", "Method": "CreateSlide" },
{ "Action": "Put", "File": "test-unprotected.pptx", "Method": "DeleteSlides" },
{ "Action": "Put", "File": "test-unprotected.pptx", "Method": "UpdateSlide" },
{ "Action": "Put", "File": "macros.pptm", "Method": "/Vba/" },
{ "Action": "Delete", "File": "test.pptx", "Method": "CreatePresentation" },
{ "Action": "Delete", "File": "test.pptx", "Method": "UploadFile" },
{ "Action": "Delete", "Folder": "%v", "File": "test.pptx", "Parameter": "Folder" },
{ "Action": "Delete", "Folder": "%v", "File": "changedtest.pptx", "Parameter": "Folder", "Method": "/CreatePresentationFrom/" },
{ "Action": "Delete", "File": "%v", "Parameter": "Name" },
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "CreatePresentation" },
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "CreatePresentation" },
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "CreatePresentation" },
{ "Action": "Delete", "File": "changedtest.pptx", "Method": "/CreatePresentationFrom/" },
{ "Action": "Delete", "File": "invalidchangedtest.pptx", "Method": "/CreatePresentationFrom/" },
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.pptx", "Method": "/CreatePresentationFrom/" },
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.pptx", "Method": "/CreatePresentationFrom/" },
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.pptx", "Parameter": "CloneFrom" },
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.pptx", "Parameter": "/S.?.?rc.?Path/" },
{ "Action": "Delete", "Folder": "", "File": "NewTestFolder", "Method": "CreateFolder" }
],
"Values": [
{ "Value": "test%n", "InvalidValue": "%vinvalid" },
{ "Value": 1, "InvalidValue": 593, "Type": "number" },
{ "Value": 3, "Parameter": "SlideIndex", "Method": "/Chart/" },
{ "Value": 8, "Parameter": "SlideIndex", "Method": "/ChartWall/" },
{ "Value": 9, "Parameter": "SlideIndex", "Method": "/Table/" },
{ "Value": 7, "Parameter": "SlideIndex", "Method": "/SmartArt/" },
{ "Value": 5, "Parameter": "SlideIndex", "Method": "CreateSection" },
{ "Value": 4, "Parameter": "SlideIndex", "Method": "/ShapeGeometryPath/" },
{ "Value": 2, "Parameter": "SlideIndex", "Method": "/AsMathMl/" },
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartDataPoint/" },
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartWall/" },
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ShapeGeometryPath/" },
{ "Value": 3, "Parameter": "ShapeIndex", "Method": "/AsMathMl/" },
{ "Value": 2, "Parameter": "SectionIndex" },
{ "Value": 20, "InvalidValue": 593, "Parameter": "FontHeight" },
{ "Value": 256, "InvalidValue": 593, "Parameter": "FontColor" },
{ "Value": "#OperationId", "InvalidValue": "#NewId", "Parameter": "Id", "Method": "/^GetOperation/" },
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
{ "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
{ "Value": null, "InvalidValue": false, "Type": "bool" },
{ "Value": true, "Parameter": "Recursive", "Method": "DeleteFolder" },
{ "Value": null, "InvalidValue": [1, 593], "Type": "int[]" },
{ "Value": [2, 1], "Parameter": "OldPositions" },
{ "Value": [1, 2], "Parameter": "NewPositions" },
{ "Value": {}, "InvalidValue": null, "Type": "model" },
{ "Value": { "Type": "Shape", "ShapeType": "Rectangle" }, "InvalidValue": null, "Type": "Shape" },
{ "Value": { "MasterSlide": { "Href": "masterSlides/2" } }, "Type": "LayoutSlide" },
{ "Value": { "DataPointType": "OneValue" }, "Type": "OneValueSeries" },
{ "Value": { "Type": "Scatter", "XValue": 32.5, "YValue": 42.9 }, "Type": "ScatterChartDataPoint" },
{ "Value": { "TriggerShapeIndex": 1 }, "Type": "InteractiveSequence" },
{ "Value": { "ShapeIndex": 1, "Type": "Appear" }, "Type": "Effect" },
{ "Value": { "Type": "Regular", "Author": "Caesar", "Text": "Veni vidi vici" }, "Type": "SlideComment", "Method": "/CreateComment/" },
{ "Value": { "List": [{ "Name": "Prop001", "Value": "Value001" }] }, "Type": "DocumentProperties" },
{ "Value": { "Name": "testProperty001", "Value": "testValue002" }, "Type": "DocumentProperty" },
{ "Value": { "PresentationPaths": [ "TempSlidesSDK/test.pptx" ], "PresentationPasswords": [ "password" ] }, "Type": "PresentationsMergeRequest" },
{ "Value": { "Presentations": [{ "Path": "test.pptx", "Password": "password" }, { "Path": "test-unprotected.pptx" }] }, "Type": "OrderedMergeRequest" },
{ "Value": { "Presentations": [{ "Path": "file1", "Password": "password" }, { "Path": "file2" }] }, "Type": "OrderedMergeRequest", "Language": "Python" },
{ "Value": { "Presentations": [{ "Path": "file1", "Password": "password" }, { "Path": "file2" }] }, "Type": "OrderedMergeRequest", "Language": "Go" },
{ "Value": { "Presentations": [{ "Path": "file1", "Password": "password" }, { "Path": "file2" }] }, "Type": "OrderedMergeRequest", "Language": "Ruby" },
{ "Value": { "Presentations": [{ "Path": "file1", "Password": "password" }, { "Path": "file2" }] }, "Type": "OrderedMergeRequest", "Language": "Perl" },
{ "Value": { "Presentations": [{ "Path": "file1", "Password": "password" }, { "Path": "file2" }] }, "Type": "OrderedMergeRequest", "Language": "C++" },
{ "Value": { "Presentations": [{ "Path": "TempSlidesSDK/test.pptx", "Password": "password" }] }, "Type": "OrderedMergeRequest", "Method": "OrderedMerge" },
{ "Value": { "Name": "testModule001", "SourceCode": "Test" }, "Type": "VbaModule" },
{ "Value": { "paths": [ { "pathData": [ { "type": "MoveTo" } ] } ] }, "Type": "GeometryPaths" },
{ "Value": null, "Parameter": "PictureFrame" },
{ "Value": null, "Parameter": "Options" },
{ "Value": { "FirstRowIndex": 1, "LastRowIndex": 1, "FirstCellIndex": 1, "LastCellIndex": 1 }, "Parameter": "TableCellMergeOptions" },
{ "Value": "@test.pptx", "InvalidValue": null, "Type": "stream" },
{ "Value": "@test.pdf", "Type": "stream", "Method": "ImportFromPdf" },
{ "Value": "@watermark.png", "Type": "stream", "Parameter": "Image" },
{ "Value": "@shapes.svg", "Type": "stream", "Parameter": "Image", "Method": "ImportShapesFromSvg" },
{ "Value": "@calibri.ttf", "Type": "stream", "Parameter": "Font" },
{ "Value": "@(test.pptx,test-unprotected.pptx)", "InvalidValue": null, "Type": "stream[]" },
{ "Value": "test.pptx", "InvalidValue": "invalid%v", "Parameter": "Name" },
{ "Value": "changedtest.pptx", "Parameter": "Name", "Method": "/CreatePresentationFrom/" },
{ "Value": "macros.pptm", "Parameter": "Name", "Method": "/Vba/" },
{ "Value": "testProperty", "Parameter": "PropertyName" },
{ "Value": "TempSlidesSDK", "Parameter": "Folder" },
{ "Value": "password", "Parameter": "/Password/" },
{ "Value": null, "Parameter": "/Storage/" },
{ "Value": "testStorage", "Parameter": "StorageName", "Method": "StorageExists" },
{ "Value": null, "Parameter": "VersionId" },
{ "Value": null, "Parameter": "SubNode" },
{ "Value": null, "Parameter": "SubShape" },
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "/Path/" },
{ "Value": "NewTestFolder", "Parameter": "Path", "Method": "CreateFolder" },
{ "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
{ "Value": "TempSlidesSDK/changedtest.pptx", "Parameter": "DestPath" },
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "CloneFrom" },
{ "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Source" },
{ "Value": "TempSlidesSDK/out.pdf", "Parameter": "OutPath" },
{
"Value": "<staff><person><name>John Doe</name><address><line1>10 Downing Street</line1><line2>London</line2></address><phone>+457 123456</phone><bio>Hi, I'm John and this is my CV</bio><skills><skill><title>C#</title><level>Excellent</level></skill><skill><title>C++</title><level>Good</level></skill><skill><title>Java</title><level>Average</level></skill></skills></person></staff>",
"Parameter": "Data",
"Method": "CreatePresentationFromTemplate"
},
{ "Value": "Arial", "Parameter": "FontName" },
{ "Value": "Calibri", "Parameter": "FontName", "Method": "/SetEmbeddedFont/" },
{ "Value": "Calibri Light", "Parameter": "FontName", "Method": "/DeleteEmbeddedFont/" },
{ "Value": null, "Parameter": "Author" },
{ "Value": "#FF0000dd", "Parameter": "Color" },
{ "Value": "pdf", "Parameter": "Format" },
{ "Value": "png", "Parameter": "Format", "Method": "/Shape/" },
{ "Value": "png", "Parameter": "Format", "Method": "/Image/" },
{ "Value": "png", "Parameter": "Format", "Method": "/NotesSlide/" },
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "/NotesSlide/", "Language": "NET" },
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "/Image/", "Language": "NET" },
{ "Value": "MasterSlide", "Parameter": "SlideType" },
{ "InvalidValue": "LayoutSlide", "Parameter": "SlideType", "Language": "NET" },
{ "Value": "Chart", "InvalidValue": "Table", "Parameter": "ShapeType" },
{ "Value": "AlignTop", "InvalidValue": "AlignBottom", "Parameter": "AlignmentType" },
{ "Value": "HorizontalAxis", "InvalidValue": "VerticalAxis", "Parameter": "AxisType" },
{ "Value": "BackWall", "InvalidValue": "Floor", "Parameter": "ChartWallType" },
{ "Value": "SplitByWidth", "InvalidValue": "SplitByHeight", "Parameter": "SplitType" },
{ "Value": null, "InvalidValue": "Shape", "Parameter": "Bounds" }
],
"OKToReturnNull": [
{ "Method": "Pipeline" }
],
"OKToNotFail": [
{ "Type": "model" },
{ "Type": "bool" },
{ "Parameter": "OldValue" },
{ "Parameter": "NewValue" },
{ "Parameter": "Width" },
{ "Parameter": "Height" },
{ "Parameter": "FontColor" },
{ "Parameter": "FontHeight" },
{ "Parameter": "ScaleX" },
{ "Parameter": "ScaleY" },
{ "Parameter": "X" },
{ "Parameter": "Y" },
{ "Parameter": "FontsFolder" },
{ "Parameter": "SectionName" },
{ "Parameter": "PropertyName" },
{ "Parameter": "FontName" },
{ "Parameter": "SourceFont" },
{ "Parameter": "TargetFont" },
{ "Parameter": "Path" },
{ "Parameter": "SubShape", "Method": "UpdateSpecialSlidePortion" },
{ "Parameter": "OutPath" },
{ "Parameter": "DestFolder" },
{ "Parameter": "SrcPath", "Method": "CopyFolder" },
{ "Parameter": "SrcPath", "Method": "MoveFolder" },
{ "Parameter": "DestPath" },
{ "Parameter": "StorageName", "Method": "StorageExists" },
{ "Parameter": "StorageName", "Method": "GetDiscUsage" },
{ "Parameter": "Html" },
{ "Parameter": "Text" },
{ "Parameter": "Regex" },
{ "Parameter": "Name", "Method": "/CreatePresentation/" },
{ "Parameter": "Name", "Method": "/ImportFrom/" },
{ "Parameter": "Folder", "Method": "/CreatePresentation/" },
{ "Parameter": "Folder", "Method": "/ImportFrom/" },
{ "Parameter": "Password", "Method": "/CreatePresentation/" },
{ "Parameter": "Password", "Method": "/ImportFrom/" },
{ "Parameter": "Password", "Method": "/Vba/" },
{ "Parameter": "Folder", "Method": "/^Start/" },
{ "Parameter": "Name", "Method": "/^Start/" },
{ "Parameter": "Password", "Method": "/^Start/" },
{ "Parameter": "Slides", "Method": "/^Start/" },
{ "Parameter": "LayoutAlias" },
{ "Parameter": "ShapeName" },
{ "Parameter": "Files" },
{ "Parameter": "Data", "Method": "CreatePresentation" },
{ "Parameter": "Format", "Language": "NET" },
{ "Parameter": "Format", "Language": "Java" },
{ "Parameter": "Format", "Language": "Swift" },
{ "Parameter": "SlideType" },
{ "Parameter": "ShapeType" },
{ "Parameter": "AlignmentType" },
{ "Parameter": "AxisType" },
{ "Parameter": "ChartWallType" },
{ "Parameter": "SplitType" },
{ "Parameter": "Bounds" }
],
"Results": [
{ "Code": 200 },
{ "Code": 201, "Method": "/Create/" },
{ "Code": 200, "Method": "/CreateComment/" },
{ "Code": 200, "Method": "/Create.*Watermark/" },
{ "Code": 200, "Method": "/CreatePresentartionFrom/" },
{ "Code": 200, "Method": "/CreateSmartArtNode/" },
{ "Code": 200, "Method": "CreateFolder" },
{ "Code": 201, "Method": "/^Copy.*Slide$/" },
{ "Code": 201, "Method": "/^Start/" },
{ "Code": 400, "Invalid": true },
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Name" },
{ "Code": 404, "Message" : "Operation does not exist", "Parameter": "Id", "Method": "/^GetOperation/" },
{ "Code": 404, "Message" : "Property %v does not exist.", "Parameter": "PropertyName" },
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Folder" },
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "CloneFrom" },
{ "Code": 404, "Message": "The storage %v was not found or is not associated with the application.", "Parameter": "/Storage/" },
{ "Code": 404, "Message": "The storage was not found or is not associated with the application.", "Parameter": "/Storage/", "Method": "/^Start/" },
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "/.*Path/" },
{ "Code": 404, "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Source" },
{ "Code": 404, "Message": "Author with name %v not found", "Parameter": "Author" },
{ "Code": 409, "Message": " is not empty", "Parameter": "Recursive" },
{ "Message": "Invalid sub-node path", "Parameter": "SubNode" },
{ "Message": "Invalid sub-shape path", "Parameter": "SubShape" },
{ "Code": 404, "Message": " is not found ", "Parameter": "FontName" },
{ "Message": "Invalid password.", "Parameter": "/Password/" },
{ "Message": " is out of bounds. Valid index range is between ", "Type": "int" },
{ "Message": " is out of bounds. Should be ", "Parameter": "Value" },
{ "Message": "Placeholder with index %v doesn't exist.", "Parameter": "PlaceholderIndex" },
{ "Message": " is out of bounds. Valid index range is between ", "Type": "int[]" },
{ "Message": "Invalid value for ", "Parameter": "SlideType" },
{ "Message": "Invalid value for ", "Parameter": "Format" },
{ "Message": " required parameter", "Type": "stream" },
{ "Message": "Image expected", "Parameter": "Image" },
{ "Message": " required parameter", "Type": "stream", "Parameter": "Image", "Method": "/ReplaceImage/" },
{ "Message": "Error processing presentation ", "Parameter": "Files" },
{ "Message": " required parameter", "Type": "model" },
{ "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "/Merge.*Online/" },
{ "Message": "Invalid Request", "Parameter": "VersionId" },
{ "Message": "AmazonS3 Storage exception", "Parameter": "VersionId", "Method": "ObjectExists" },
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DeleteFile" },
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DownloadFile" },
{ "Message": "AmazonS3 Storage exception", "Parameter": "SrcPath", "Method": "CopyFile" },
{ "Message": "Error parsing XML template data", "Parameter": "Data" },
{ "Message": "Color must be in format #FF000000", "Parameter": "Color" }
]
}