Skip to content

Commit

Permalink
Merge branch 'master' into imc_profile_api
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Aug 3, 2017
2 parents 8c93e30 + 3e54aeb commit 39d3f51
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 9 deletions.
19 changes: 19 additions & 0 deletions api/v1/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7539,6 +7539,7 @@ paths:
type: string
maxLength: 254
description: Name of the room
pattern: ^[0-9A-Za-z_\\-]{0,60}$
active:
type: boolean
description: If the room is active
Expand Down Expand Up @@ -7666,6 +7667,7 @@ paths:
type: string
maxLength: 254
description: Name of the room
pattern: ^[0-9A-Za-z_\\-]{0,60}$
active:
type: boolean
description: If the room is active
Expand Down Expand Up @@ -7843,6 +7845,7 @@ paths:
type: string
maxLength: 254
description: Name of the bot data
pattern: ^[0-9A-Za-z_\\-]{0,60}$
value:
type: string
maxLength: 254
Expand Down Expand Up @@ -8048,6 +8051,7 @@ paths:
type: string
maxLength: 254
description: Name of the roomType
pattern: ^[0-9A-Za-z_\\-]{0,60}$
isEnabled:
type: boolean
description: If the roomType is active
Expand Down Expand Up @@ -8178,6 +8182,7 @@ paths:
type: string
maxLength: 254
description: Name of the roomType
pattern: ^[0-9A-Za-z_\\-]{0,60}$
isEnabled:
type: boolean
description: If the roomType is active
Expand Down Expand Up @@ -8260,6 +8265,7 @@ paths:
in: formData
description: The unique readable name for the bot
type: string
pattern: ^[0-9A-Za-z_\\-]{0,60}$
-
name: active
in: formData
Expand Down Expand Up @@ -8416,6 +8422,7 @@ paths:
type: string
maxLength: 254
description: Name of the bot
pattern: ^[0-9A-Za-z_\\-]{0,60}$
url:
type: string
description: Bot url
Expand Down Expand Up @@ -8469,6 +8476,7 @@ paths:
in: formData
description: The unique readable name for the bot
type: string
pattern: ^[0-9A-Za-z_\\-]{0,60}$
-
name: active
in: formData
Expand Down Expand Up @@ -8578,6 +8586,7 @@ paths:
type: string
maxLength: 254
description: Name of the botAction
pattern: ^[0-9A-Za-z_\\-]{0,60}$
isPending:
type: boolean
description: If the botAction is active
Expand Down Expand Up @@ -8717,6 +8726,7 @@ paths:
type: string
maxLength: 254
description: Name of the botAction
pattern: ^[0-9A-Za-z_\\-]{0,60}$
isPending:
type: boolean
description: If the botAction is active
Expand Down Expand Up @@ -10548,29 +10558,38 @@ definitions:
properties:
id:
type: integer
description: The room number of the specified room
name:
type: string
description: The unique readable name for the room
active:
type: boolean
description: Flag for whether the room is still active or closed
type:
type: string
description: The roomType being used in the specified room

RoomTypeResponse:
type: object
description: A response for information about a bot
properties:
id:
type: string
description: The UUID of the roomType specified
name:
type: string
description: The roomType being used in the specified room
isEnabled:
type: boolean
description: Flag indicating whether a roomType is enabled to use on rooms
settings:
type: object
description: Key-value pairs used to configure bots and rooms intial state
rules:
type: array
items:
type: object
description: Array containing the rules that trigger automations for rooms of this type

BotDataResponse:
type: object
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/botActions/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe(`api: PATCH ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/botActions/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe(`api: POST ${path}`, () => {
done(err);
}
expect(res.body.errors[ZERO].type).to
.contain('SCHEMA_VALIDATION_FAILED');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/botData/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe(`api: PATCH ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/bots/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe(`api: PATCH ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/bots/put.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe(`api: PUT ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain('Error');
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/events/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe(`api: POST ${path}`, () => {
done(err);
}
expect(res.body.errors[ZERO].type).to
.contain('SCHEMA_VALIDATION_FAILED');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/roomTypes/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe(`api: PATCH ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/rooms/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe(`api: PATCH ${path}`, () => {
}

expect(res.body.errors[ZERO].type).to
.contain('SequelizeValidationError');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/api/v1/rooms/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe(`api: POST ${path}`, () => {
done(err);
}
expect(res.body.errors[ZERO].type).to
.contain('SCHEMA_VALIDATION_FAILED');
.contain(tu.schemaValidationErrorName);
done();
});
});
Expand Down

0 comments on commit 39d3f51

Please sign in to comment.