aspose_tasks_cloud 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18c840d86a3935ed8428e79ea77678ec101f678b
4
- data.tar.gz: edd6fc1a63aeab631b5407007380c7bb79f7b413
3
+ metadata.gz: eb9fc41f3a012a238329cd149bb05d004c22cddf
4
+ data.tar.gz: 4d985bddc2cae6f74325d610183c0228e16e71c5
5
5
  SHA512:
6
- metadata.gz: a50db0b8b3d868027ac64588166d2aa276d68d3e4db99af900a8051ef770615559daf908927e3134eb50047298fce834995c9f656d329b184eb1a5dab6f0112b
7
- data.tar.gz: b1db915b3a50f1bbb6eb9bdc716fee19ab1a2b4236afe62208abcfb07df95fa69d15a5a51d0230c614dba21640923ff72ecf473f65b7f187850986ae86730a15
6
+ metadata.gz: ea1361c852c79891cd97b08fad10ec284160f8655bb0c20961c2bceaa3f0990df07a862beafa4bf39b8ecc1eb69860aa7ca808b3f7a6f094f57d2c98bd656c4a
7
+ data.tar.gz: eb3592fd8f46365e886387d2554ac56db166db34391343ef7140a0e1050c7a6f32ef5df9f92630c12e83e6e65bf0ee03e0d4f00d2d8cafb72062cc36531da274
@@ -104,7 +104,7 @@ module AsposeTasksCloud
104
104
 
105
105
  def initialize
106
106
  @scheme = 'http'
107
- @host = 'api.aspose.com'
107
+ @host = 'api.aspose.cloud'
108
108
  @base_path = '/v1.1'
109
109
  @api_key = {}
110
110
  @api_key_prefix = {}
@@ -1,3 +1,3 @@
1
1
  module AsposeTasksCloud
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -9,422 +9,422 @@ class TasksTests < Minitest::Test
9
9
  include AsposeStorageCloud
10
10
 
11
11
  def setup
12
- #Get App key and App SID from https://cloud.aspose.com
13
- AsposeApp.app_key_and_sid("", "")
14
- @tasks_api = TasksApi.new
12
+ #Get App key and App SID from https://cloud.aspose.com
13
+ AsposeApp.app_key_and_sid("", "")
14
+ @tasks_api = TasksApi.new
15
15
  end
16
16
 
17
17
  def teardown
18
18
  end
19
19
 
20
20
  def upload_file(file_name)
21
- @storage_api = StorageApi.new
22
- response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
21
+ @storage_api = StorageApi.new
22
+ response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
23
23
 
24
- assert(response, message="Failed to upload {file_name} file.")
24
+ assert(response, message="Failed to upload {file_name} file.")
25
25
  end
26
26
 
27
27
  def test_get_task_document
28
- file_name = "sample-project-2.mpp"
29
- upload_file(file_name)
28
+ file_name = "sample-project-2.mpp"
29
+ upload_file(file_name)
30
30
 
31
- response = @tasks_api.get_task_document(file_name)
32
- assert(response, message="Failed to represents a project document.")
31
+ response = @tasks_api.get_task_document(file_name)
32
+ assert(response, message="Failed to represents a project document.")
33
33
  end
34
34
 
35
35
  def test_get_task_document_with_format
36
- file_name = "sample-project.mpp"
37
- upload_file(file_name)
38
- format = "pdf"
36
+ file_name = "sample-project.mpp"
37
+ upload_file(file_name)
38
+ format = "pdf"
39
39
 
40
- response = @tasks_api.get_task_document_with_format(file_name, format)
41
- assert(response, message="Failed to get a project document in specified format.")
40
+ response = @tasks_api.get_task_document_with_format(file_name, format)
41
+ assert(response, message="Failed to get a project document in specified format.")
42
42
  end
43
43
 
44
44
  def test_get_project_assignments
45
- file_name = "sample-project-2.mpp"
46
- upload_file(file_name)
45
+ file_name = "sample-project-2.mpp"
46
+ upload_file(file_name)
47
47
 
48
- response = @tasks_api.get_project_assignments(file_name)
49
- assert(response, message="Failed to read project assignment items.")
48
+ response = @tasks_api.get_project_assignments(file_name)
49
+ assert(response, message="Failed to read project assignment items.")
50
50
  end
51
51
 
52
52
  def test_post_project_assignment
53
- file_name = "sample-project.mpp"
54
- upload_file(file_name)
55
- task_uid = 1
56
- resource_uid = 1
53
+ file_name = "sample-project.mpp"
54
+ upload_file(file_name)
55
+ task_uid = 1
56
+ resource_uid = 1
57
57
 
58
- response = @tasks_api.post_project_assignment(file_name, task_uid, resource_uid)
59
- assert(response, message="Failed to add a new assignment to a project")
58
+ response = @tasks_api.post_project_assignment(file_name, task_uid, resource_uid)
59
+ assert(response, message="Failed to add a new assignment to a project")
60
60
  end
61
61
 
62
62
  def test_get_project_assignment
63
- file_name = "sample-project-2.mpp"
64
- upload_file(file_name)
65
- assignment_uid = 1
63
+ file_name = "sample-project-2.mpp"
64
+ upload_file(file_name)
65
+ assignment_uid = 1
66
66
 
67
- response = @tasks_api.get_project_assignment(file_name, assignment_uid)
68
- assert(response, message="Failed to read project assignment.")
67
+ response = @tasks_api.get_project_assignment(file_name, assignment_uid)
68
+ assert(response, message="Failed to read project assignment.")
69
69
  end
70
70
 
71
71
  def test_delete_project_assignment
72
- file_name = "sample-project-2.mpp"
73
- upload_file(file_name)
74
- assignment_uid = 1
72
+ file_name = "sample-project-2.mpp"
73
+ upload_file(file_name)
74
+ assignment_uid = 1
75
75
 
76
- response = @tasks_api.delete_project_assignment(file_name, assignment_uid)
77
- assert(response, message="Failed to deletes a project assignment with all references to it.")
76
+ response = @tasks_api.delete_project_assignment(file_name, assignment_uid)
77
+ assert(response, message="Failed to deletes a project assignment with all references to it.")
78
78
  end
79
79
 
80
80
  def test_get_project_calendars
81
- file_name = "sample-project.mpp"
82
- upload_file(file_name)
81
+ file_name = "sample-project.mpp"
82
+ upload_file(file_name)
83
83
 
84
- response = @tasks_api.get_project_calendars(file_name)
85
- assert(response, message="Failed to read project calendar items.")
84
+ response = @tasks_api.get_project_calendars(file_name)
85
+ assert(response, message="Failed to read project calendar items.")
86
86
  end
87
87
 
88
88
  def test_post_project_calendar
89
- file_name = "sample-project.mpp"
90
- upload_file(file_name)
91
- calendar = Calendar.new
92
- calendar.name = "TestCalender"
93
- calendar.uid = 0
89
+ file_name = "sample-project.mpp"
90
+ upload_file(file_name)
91
+ calendar = Calendar.new
92
+ calendar.name = "TestCalender"
93
+ calendar.uid = 0
94
94
 
95
- response = @tasks_api.post_project_calendar(file_name, calendar)
96
- assert(response, message="Failed to add a new calendar to project file.")
95
+ response = @tasks_api.post_project_calendar(file_name, calendar)
96
+ assert(response, message="Failed to add a new calendar to project file.")
97
97
  end
98
98
 
99
99
  def test_get_project_calendar
100
- file_name = "sample-project.mpp"
101
- upload_file(file_name)
102
- calendar_uid = 1
100
+ file_name = "sample-project.mpp"
101
+ upload_file(file_name)
102
+ calendar_uid = 1
103
103
 
104
- response = @tasks_api.get_project_calendar(file_name, calendar_uid)
105
- assert(response, message="Failed to represents a project calendar.")
104
+ response = @tasks_api.get_project_calendar(file_name, calendar_uid)
105
+ assert(response, message="Failed to represents a project calendar.")
106
106
  end
107
107
 
108
108
  def test_delete_project_calendar
109
- file_name = "sample-project.mpp"
110
- upload_file(file_name)
111
- calendar_uid = 2
109
+ file_name = "sample-project.mpp"
110
+ upload_file(file_name)
111
+ calendar_uid = 2
112
112
 
113
- response = @tasks_api.delete_project_calendar(file_name, calendar_uid)
114
- assert(response, message="Failed to deletes a project calendar")
113
+ response = @tasks_api.delete_project_calendar(file_name, calendar_uid)
114
+ assert(response, message="Failed to deletes a project calendar")
115
115
  end
116
116
 
117
117
  def test_get_calendar_exceptions
118
- file_name = "sample-project.mpp"
119
- upload_file(file_name)
120
- calendar_uid = 1
118
+ file_name = "sample-project.mpp"
119
+ upload_file(file_name)
120
+ calendar_uid = 1
121
121
 
122
- response = @tasks_api.get_calendar_exceptions(file_name, calendar_uid)
123
- assert(response, message="Failed to get list of calendar exceptions.")
122
+ response = @tasks_api.get_calendar_exceptions(file_name, calendar_uid)
123
+ assert(response, message="Failed to get list of calendar exceptions.")
124
124
  end
125
125
 
126
126
  def test_post_calendar_exceptions
127
- file_name = "sample-project-2.mpp"
128
- upload_file(file_name)
129
- calendar_uid = 1
127
+ file_name = "sample-project-2.mpp"
128
+ upload_file(file_name)
129
+ calendar_uid = 1
130
130
  calendar_exception = CalendarException.new
131
131
  calendar_exception.name = "Test"
132
132
  calendar_exception.from_date = Time.utc(2016, 01, 28).to_s
133
133
  calendar_exception.to_date = Time.utc(2016, 01, 30).to_s
134
134
 
135
- response = @tasks_api.post_calendar_exceptions(file_name, calendar_uid, calendar_exception)
136
- assert(response, message="Failed to add a new calendar exception to a calendar.")
135
+ response = @tasks_api.post_calendar_exceptions(file_name, calendar_uid, calendar_exception)
136
+ assert(response, message="Failed to add a new calendar exception to a calendar.")
137
137
  end
138
138
 
139
139
  def test_put_calendar_exception
140
- file_name = "sample-project.mpp"
141
- upload_file(file_name)
142
- calendar_uid = 1
143
- index = 1
140
+ file_name = "sample-project.mpp"
141
+ upload_file(file_name)
142
+ calendar_uid = 1
143
+ index = 1
144
144
  calendar_exception = CalendarException.new
145
145
  calendar_exception.name = "Test"
146
146
  calendar_exception.from_date = Time.utc(2016, 01, 28).to_s
147
147
  calendar_exception.to_date = Time.utc(2016, 01, 30).to_s
148
148
 
149
- response = @tasks_api.put_calendar_exception(file_name, calendar_uid, index, calendar_exception)
150
- assert(response, message="Failed to updates calendar exception.")
149
+ response = @tasks_api.put_calendar_exception(file_name, calendar_uid, index, calendar_exception)
150
+ assert(response, message="Failed to updates calendar exception.")
151
151
  end
152
152
 
153
153
  def test_delete_calendar_exception
154
- file_name = "sample-project.mpp"
155
- upload_file(file_name)
156
- calendar_uid = 1
157
- index = 1
154
+ file_name = "sample-project.mpp"
155
+ upload_file(file_name)
156
+ calendar_uid = 1
157
+ index = 1
158
158
 
159
- response = @tasks_api.delete_calendar_exception(file_name, calendar_uid, index)
160
- assert(response, message="Failed to deletes calendar exception from calendar exceptions collection.")
159
+ response = @tasks_api.delete_calendar_exception(file_name, calendar_uid, index)
160
+ assert(response, message="Failed to deletes calendar exception from calendar exceptions collection.")
161
161
  end
162
162
 
163
163
  def test_get_critical_path
164
- file_name = "sample-project.mpp"
165
- upload_file(file_name)
164
+ file_name = "sample-project.mpp"
165
+ upload_file(file_name)
166
166
 
167
- response = @tasks_api.get_critical_path(file_name)
168
- assert(response, message="Failed to returns created report in PDF format.")
167
+ response = @tasks_api.get_critical_path(file_name)
168
+ assert(response, message="Failed to returns created report in PDF format.")
169
169
  end
170
170
 
171
171
  def test_get_document_properties
172
- file_name = "sample-project.mpp"
173
- upload_file(file_name)
172
+ file_name = "sample-project.mpp"
173
+ upload_file(file_name)
174
174
 
175
- response = @tasks_api.get_document_properties(file_name)
176
- assert(response, message="Failed to read document properties.")
175
+ response = @tasks_api.get_document_properties(file_name)
176
+ assert(response, message="Failed to read document properties.")
177
177
  end
178
178
 
179
179
  def test_get_document_property
180
- file_name = "sample-project.mpp"
181
- upload_file(file_name)
182
- property_name = "Title"
180
+ file_name = "sample-project.mpp"
181
+ upload_file(file_name)
182
+ property_name = "Title"
183
183
 
184
- response = @tasks_api.get_document_property(file_name, property_name)
185
- assert(response, message="Failed to read document property by name.")
184
+ response = @tasks_api.get_document_property(file_name, property_name)
185
+ assert(response, message="Failed to read document property by name.")
186
186
  end
187
187
 
188
188
  def test_put_document_property
189
- file_name = "sample-project-2.mpp"
190
- upload_file(file_name)
191
- property_name = "Title"
192
- document_property = DocumentProperty.new
193
- document_property.name = property_name
194
- document_property.value = "New Title"
189
+ file_name = "sample-project-2.mpp"
190
+ upload_file(file_name)
191
+ property_name = "Title"
192
+ document_property = DocumentProperty.new
193
+ document_property.name = property_name
194
+ document_property.value = "New Title"
195
195
 
196
- response = @tasks_api.put_document_property(file_name, property_name, document_property)
197
- assert(response, message="Failed to set/create document property.")
196
+ response = @tasks_api.put_document_property(file_name, property_name, document_property)
197
+ assert(response, message="Failed to set/create document property.")
198
198
  end
199
199
 
200
200
  def test_post_document_property
201
- file_name = "sample-project-2.mpp"
202
- upload_file(file_name)
203
- property_name = "Title"
204
- document_property = DocumentProperty.new
205
- document_property.name = property_name
206
- document_property.value = "New Title"
201
+ file_name = "sample-project-2.mpp"
202
+ upload_file(file_name)
203
+ property_name = "Title"
204
+ document_property = DocumentProperty.new
205
+ document_property.name = property_name
206
+ document_property.value = "New Title"
207
207
 
208
- response = @tasks_api.post_document_property(file_name, property_name, document_property)
209
- assert(response, message="Failed to set/create document property")
208
+ response = @tasks_api.post_document_property(file_name, property_name, document_property)
209
+ assert(response, message="Failed to set/create document property")
210
210
  end
211
211
 
212
212
  def test_get_extended_attributes
213
- file_name = "ExtendedAttribute.mpp"
214
- upload_file(file_name)
213
+ file_name = "ExtendedAttribute.mpp"
214
+ upload_file(file_name)
215
215
 
216
- response = @tasks_api.get_extended_attributes(file_name)
217
- assert(response, message="Failed to represents a project document.")
216
+ response = @tasks_api.get_extended_attributes(file_name)
217
+ assert(response, message="Failed to represents a project document.")
218
218
  end
219
219
 
220
220
  def test_get_extended_attribute_by_index
221
- file_name = "ExtendedAttribute.mpp"
222
- upload_file(file_name)
223
- index = 1
221
+ file_name = "ExtendedAttribute.mpp"
222
+ upload_file(file_name)
223
+ index = 1
224
224
 
225
- response = @tasks_api.get_extended_attribute_by_index(file_name, index)
226
- assert(response, message="Failed to represent a project extended attribute definition.")
225
+ response = @tasks_api.get_extended_attribute_by_index(file_name, index)
226
+ assert(response, message="Failed to represent a project extended attribute definition.")
227
227
  end
228
228
 
229
229
  def test_delete_extended_attribute_by_index
230
- file_name = "ExtendedAttribute.mpp"
231
- upload_file(file_name)
232
- index = 1
230
+ file_name = "ExtendedAttribute.mpp"
231
+ upload_file(file_name)
232
+ index = 1
233
233
 
234
- response = @tasks_api.delete_extended_attribute_by_index(file_name, index)
235
- assert(response, message="Failed to delete a project extended attribute.")
234
+ response = @tasks_api.delete_extended_attribute_by_index(file_name, index)
235
+ assert(response, message="Failed to delete a project extended attribute.")
236
236
  end
237
237
 
238
238
  def test_get_outline_codes
239
- file_name = "Outlinecode.mpp"
240
- upload_file(file_name)
239
+ file_name = "Outlinecode.mpp"
240
+ upload_file(file_name)
241
241
 
242
- response = @tasks_api.get_outline_codes(file_name)
243
- assert(response, message="Failed to read outline codes.")
242
+ response = @tasks_api.get_outline_codes(file_name)
243
+ assert(response, message="Failed to read outline codes.")
244
244
  end
245
245
 
246
246
  def test_get_outline_code_by_index
247
- file_name = "Outlinecode.mpp"
248
- upload_file(file_name)
249
- index = 1
247
+ file_name = "Outlinecode.mpp"
248
+ upload_file(file_name)
249
+ index = 1
250
250
 
251
- response = @tasks_api.get_outline_code_by_index(file_name, index)
252
- assert(response, message="Failed to get outline code by index.")
251
+ response = @tasks_api.get_outline_code_by_index(file_name, index)
252
+ assert(response, message="Failed to get outline code by index.")
253
253
  end
254
254
 
255
255
  def test_delete_outline_code_by_index
256
- file_name = "Outlinecode.mpp"
257
- upload_file(file_name)
258
- index = 1
256
+ file_name = "Outlinecode.mpp"
257
+ upload_file(file_name)
258
+ index = 1
259
259
 
260
- response = @tasks_api.delete_outline_code_by_index(file_name, index)
261
- assert(response, message="Failed to deletes a project outline code")
260
+ response = @tasks_api.delete_outline_code_by_index(file_name, index)
261
+ assert(response, message="Failed to deletes a project outline code")
262
262
  end
263
263
 
264
264
  def test_get_report_pdf
265
- file_name = "sample-project.mpp"
266
- upload_file(file_name)
267
- type = "WorkOverview"
265
+ file_name = "sample-project.mpp"
266
+ upload_file(file_name)
267
+ type = "WorkOverview"
268
268
 
269
- response = @tasks_api.get_report_pdf(file_name, type)
270
- assert(response, message="Failed to return created report in PDF format.")
269
+ response = @tasks_api.get_report_pdf(file_name, type)
270
+ assert(response, message="Failed to return created report in PDF format.")
271
271
  end
272
272
 
273
273
  def test_get_project_resources
274
- file_name = "sample-project.mpp"
275
- upload_file(file_name)
274
+ file_name = "sample-project.mpp"
275
+ upload_file(file_name)
276
276
 
277
- response = @tasks_api.get_project_resources(file_name)
278
- assert(response, message="Failed to read project resources.")
277
+ response = @tasks_api.get_project_resources(file_name)
278
+ assert(response, message="Failed to read project resources.")
279
279
  end
280
280
 
281
281
  def test_post_project_resource
282
- file_name = "sample-project.mpp"
283
- upload_file(file_name)
284
- opts = {resource_name: "Resource6", before_resource_id: 1}
282
+ file_name = "sample-project.mpp"
283
+ upload_file(file_name)
284
+ opts = {resource_name: "Resource6", before_resource_id: 1}
285
285
 
286
- response = @tasks_api.post_project_resource(file_name, opts)
287
- assert(response, message="Failed to add a new resource to a project.")
286
+ response = @tasks_api.post_project_resource(file_name, opts)
287
+ assert(response, message="Failed to add a new resource to a project.")
288
288
  end
289
289
 
290
290
  def test_get_project_resource
291
- file_name = "sample-project.mpp"
292
- upload_file(file_name)
293
- resource_uid = 1
291
+ file_name = "sample-project.mpp"
292
+ upload_file(file_name)
293
+ resource_uid = 1
294
294
 
295
- response = @tasks_api.get_project_resource(file_name, resource_uid)
296
- assert(response, message="Failed to get project resource.")
295
+ response = @tasks_api.get_project_resource(file_name, resource_uid)
296
+ assert(response, message="Failed to get project resource.")
297
297
  end
298
298
 
299
299
  def test_delete_project_resource
300
- file_name = "sample-project.mpp"
301
- upload_file(file_name)
302
- resource_uid = 1
300
+ file_name = "sample-project.mpp"
301
+ upload_file(file_name)
302
+ resource_uid = 1
303
303
 
304
- response = @tasks_api.delete_project_resource(file_name, resource_uid)
305
- assert(response, message="Failed to deletes a project resource with all references to it.")
304
+ response = @tasks_api.delete_project_resource(file_name, resource_uid)
305
+ assert(response, message="Failed to deletes a project resource with all references to it.")
306
306
  end
307
307
 
308
308
  def test_get_resource_assignments
309
- file_name = "sample-project.mpp"
310
- upload_file(file_name)
311
- resource_uid = 1
309
+ file_name = "sample-project.mpp"
310
+ upload_file(file_name)
311
+ resource_uid = 1
312
312
 
313
- response = @tasks_api.get_resource_assignments(file_name, resource_uid)
314
- assert(response, message="Failed to get resource assignments.")
313
+ response = @tasks_api.get_resource_assignments(file_name, resource_uid)
314
+ assert(response, message="Failed to get resource assignments.")
315
315
  end
316
316
 
317
317
  def test_get_task_links
318
- file_name = "sample-project-2.mpp"
319
- upload_file(file_name)
318
+ file_name = "sample-project-2.mpp"
319
+ upload_file(file_name)
320
320
 
321
- response = @tasks_api.get_task_links(file_name)
322
- assert(response, message="Failed to read task links.")
321
+ response = @tasks_api.get_task_links(file_name)
322
+ assert(response, message="Failed to read task links.")
323
323
  end
324
324
 
325
325
  def test_post_task_link
326
- file_name = "sample-project-2.mpp"
327
- upload_file(file_name)
328
- task_link = TaskLink.new
329
- task_link.index = 2
330
- task_link.predecessor_uid = 1
331
- task_link.successor_uid = 2
326
+ file_name = "sample-project-2.mpp"
327
+ upload_file(file_name)
328
+ task_link = TaskLink.new
329
+ task_link.index = 2
330
+ task_link.predecessor_uid = 1
331
+ task_link.successor_uid = 2
332
332
 
333
- response = @tasks_api.post_task_link(file_name, task_link)
334
- assert(response, message="Failed to add a new task link to a project.")
333
+ response = @tasks_api.post_task_link(file_name, task_link)
334
+ assert(response, message="Failed to add a new task link to a project.")
335
335
  end
336
336
 
337
337
  def test_put_task_link
338
- file_name = "sample-project.mpp"
339
- upload_file(file_name)
340
- index = 1
341
- task_link = TaskLink.new
342
- task_link.index = index
343
- task_link.predecessor_uid = 0
344
- task_link.successor_uid = 1
338
+ file_name = "sample-project.mpp"
339
+ upload_file(file_name)
340
+ index = 1
341
+ task_link = TaskLink.new
342
+ task_link.index = index
343
+ task_link.predecessor_uid = 0
344
+ task_link.successor_uid = 1
345
345
 
346
- response = @tasks_api.put_task_link(file_name, index, task_link)
347
- assert(response, message="Failed to updates task link.")
346
+ response = @tasks_api.put_task_link(file_name, index, task_link)
347
+ assert(response, message="Failed to updates task link.")
348
348
  end
349
349
 
350
350
  def test_delete_task_link
351
- file_name = "sample-project.mpp"
352
- upload_file(file_name)
353
- index = 1
351
+ file_name = "sample-project.mpp"
352
+ upload_file(file_name)
353
+ index = 1
354
354
 
355
- response = @tasks_api.delete_task_link(file_name, index)
356
- assert(response, message="Failed to updates task link.")
355
+ response = @tasks_api.delete_task_link(file_name, index)
356
+ assert(response, message="Failed to updates task link.")
357
357
  end
358
358
 
359
359
  def test_get_project_tasks
360
- file_name = "sample-project.mpp"
361
- upload_file(file_name)
360
+ file_name = "sample-project.mpp"
361
+ upload_file(file_name)
362
362
 
363
- response = @tasks_api.get_project_tasks(file_name)
364
- assert(response, message="Failed to read project task items.")
363
+ response = @tasks_api.get_project_tasks(file_name)
364
+ assert(response, message="Failed to read project task items.")
365
365
  end
366
366
 
367
367
  def test_post_project_task
368
- file_name = "sample-project.mpp"
369
- upload_file(file_name)
370
- opts = {task_name: "NewTask", before_task_id: 1}
368
+ file_name = "sample-project.mpp"
369
+ upload_file(file_name)
370
+ opts = {task_name: "NewTask", before_task_id: 1}
371
371
 
372
- response = @tasks_api.post_project_task(file_name, opts)
373
- assert(response, message="Failed to add a new task to a project.")
372
+ response = @tasks_api.post_project_task(file_name, opts)
373
+ assert(response, message="Failed to add a new task to a project.")
374
374
  end
375
375
 
376
376
  def test_get_project_task
377
- file_name = "sample-project-2.mpp"
378
- upload_file(file_name)
379
- task_uid = 1
377
+ file_name = "sample-project-2.mpp"
378
+ upload_file(file_name)
379
+ task_uid = 1
380
380
 
381
- response = @tasks_api.get_project_task(file_name, task_uid)
382
- assert(response, message="Failed to read project task.")
381
+ response = @tasks_api.get_project_task(file_name, task_uid)
382
+ assert(response, message="Failed to read project task.")
383
383
  end
384
384
 
385
385
  def test_delete_project_task
386
- file_name = "sample-project.mpp"
387
- upload_file(file_name)
388
- task_uid = 1
386
+ file_name = "sample-project.mpp"
387
+ upload_file(file_name)
388
+ task_uid = 1
389
389
 
390
- response = @tasks_api.delete_project_task(file_name, task_uid)
391
- assert(response, message="Failed to delete a project task with all references to it and rebuilds tasks tree.")
390
+ response = @tasks_api.delete_project_task(file_name, task_uid)
391
+ assert(response, message="Failed to delete a project task with all references to it and rebuilds tasks tree.")
392
392
  end
393
393
 
394
394
  def test_get_task_assignments
395
- file_name = "sample-project-2.mpp"
396
- upload_file(file_name)
397
- task_uid = 1
395
+ file_name = "sample-project-2.mpp"
396
+ upload_file(file_name)
397
+ task_uid = 1
398
398
 
399
- response = @tasks_api.get_task_assignments(file_name, task_uid)
400
- assert(response, message="Failed to get task assignments.")
399
+ response = @tasks_api.get_task_assignments(file_name, task_uid)
400
+ assert(response, message="Failed to get task assignments.")
401
401
  end
402
402
 
403
403
  def test_put_move_task
404
- file_name = "sample-project.mpp"
405
- upload_file(file_name)
406
- task_uid = 1
407
- parent_task_uid = 1
404
+ file_name = "sample-project.mpp"
405
+ upload_file(file_name)
406
+ task_uid = 1
407
+ parent_task_uid = 1
408
408
 
409
- response = @tasks_api.put_move_task(file_name, task_uid, parent_task_uid)
410
- assert(response, message="Failed to move one task to another parent task")
409
+ response = @tasks_api.put_move_task(file_name, task_uid, parent_task_uid)
410
+ assert(response, message="Failed to move one task to another parent task")
411
411
  end
412
412
 
413
413
  def test_get_task_recurring_info
414
- file_name = "sample-project.mpp"
415
- upload_file(file_name)
416
- task_uid = 1
414
+ file_name = "sample-project.mpp"
415
+ upload_file(file_name)
416
+ task_uid = 1
417
417
 
418
- response = @tasks_api.get_task_recurring_info(file_name, task_uid)
419
- assert(response, message="Failed to get recurring info for the task.")
418
+ response = @tasks_api.get_task_recurring_info(file_name, task_uid)
419
+ assert(response, message="Failed to get recurring info for the task.")
420
420
  end
421
421
 
422
422
  def test_get_project_wbs_definition
423
- file_name = "sample-project.mpp"
424
- upload_file(file_name)
423
+ file_name = "sample-project.mpp"
424
+ upload_file(file_name)
425
425
 
426
- response = @tasks_api.get_project_wbs_definition(file_name)
427
- assert(response, message="Failed to get project WBS Definition.")
426
+ response = @tasks_api.get_project_wbs_definition(file_name)
427
+ assert(response, message="Failed to get project WBS Definition.")
428
428
  end
429
429
 
430
- end
430
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_tasks_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Sohail Ismail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-31 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus