示例#1
0
		before('And one meeting reserved with an specific date',function (done) {
			var num = displayName.substring(10);
			var meetingJSon = util.generatemeetingJson(num);
			meetingEndPoint = serviceEndPoint + '/' + Service[0]._id + rooms + '/' + roomId +  meetings; 
			roomManagerAPI
				.postwithBasic(basic,meetingEndPoint,meetingJSon,function (err,res)
				{
					meeting = res;
					done();
				});
		});
示例#2
0
			before('And one meeting assigned at the Room', function(done){
				console.log('\t\tAnd one meeting assigned at the Room');
				var num = displayName.substring(10);
				var meetingJSon = util.generatemeetingJson(num);
				meetingJSon.start = meetingConfig.startMeeting;
				meetingJSon.end = meetingConfig.endMeeting;
				roomManagerAPI
					.postwithBasic(basic, servicesEndPoint + '/' + serviceId + '/' + rooms + '/' + roomId + '/' + meetings, meetingJSon, function(err, res){
						meetingId1 = res.body._id;
						done();
					});
			});
示例#3
0
				it('Then ensure that is not possible assign the new meeting to room at the same time', function (done) {
					var num = displayName.substring(10);
					var meetingJSon = util.generatemeetingJson(num);
					meetingJSon.start = meetingConfig.startMeeting;
					meetingJSon.end = meetingConfig.endMeeting;
					roomManagerAPI
						.postwithBasic(basic, servicesEndPoint + '/' + serviceId + '/' + rooms + '/' + roomId + '/' + meetings, meetingJSon, function(err, res){
							response = res;
							meetingId2 = response.body._id;
							expect(response.status).to.equal(403);
							done();
						});
				});
示例#4
0
				it('Then ensure that is possible assign more of one meeting to room at different time', function (done) {
					var num = displayName.substring(10);
					var meetingJSon = util.generatemeetingJson(num);
					meetingJSon.start = meetingConfig.startMeeting2;
					meetingJSon.end = meetingConfig.endMeeting2;
					roomManagerAPI
						.postwithBasic(basic, servicesEndPoint + '/' + serviceId + '/' + rooms + '/' + roomId + '/' + meetings, meetingJSon, function(err, res){
							meetingId2 = res.body._id;
							expect(res.status).to.equal(config.httpStatus.Ok);
							expect(res.body).to.not.be.undefined;
							meetingJSon.start = meetingConfig.startMeeting3;
							meetingJSon.end = meetingConfig.endMeeting3;
							roomManagerAPI
								.postwithBasic(basic, servicesEndPoint + '/' + serviceId + '/' + rooms + '/' + roomId + '/' + meetings, meetingJSon, function(err, res1){
									meetingId3 = res1.body._id;
									expect(res1.status).to.equal(config.httpStatus.Ok);
									expect(res1.body).to.not.be.undefined;
									done();
								});
						});
				});