| # Copyright (c) 2021 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: Door Lock Cluster Schedules tests |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Door Lock" |
| endpoint: 1 |
| |
| tests: |
| - label: "Wait for the commissioned device to be retrieved" |
| cluster: "DelayCommands" |
| command: "WaitForCommissionee" |
| arguments: |
| values: |
| - name: "nodeId" |
| value: nodeId |
| |
| - label: "Create new PIN credential and schedule user" |
| command: "SetCredential" |
| timedInteractionTimeoutMs: 10000 |
| arguments: |
| values: |
| - name: "operationType" |
| value: 0 |
| - name: "credential" |
| value: { CredentialType: 1, CredentialIndex: 1 } |
| - name: "credentialData" |
| value: "123456" |
| - name: "userIndex" |
| value: null |
| - name: "userStatus" |
| value: null |
| - name: "userType" |
| value: null |
| response: |
| values: |
| - name: "status" |
| value: 0x00 |
| - name: "userIndex" |
| value: 1 |
| - name: "nextCredentialIndex" |
| value: 2 |
| |
| - label: "Get number of supported users" |
| command: "readAttribute" |
| attribute: "NumberOfTotalUsersSupported" |
| response: |
| saveAs: NumberOfTotalUsersSupported |
| value: 10 |
| |
| - label: |
| "Get Max number of Week Day schedules for user and verify default |
| value" |
| command: "readAttribute" |
| attribute: "NumberOfWeekDaySchedulesSupportedPerUser" |
| response: |
| saveAs: NumberOfWeekDaySchedulesSupportedPerUser |
| value: 10 |
| |
| - label: |
| "Get Max number of Year Day schedules for user and verify default |
| value" |
| command: "readAttribute" |
| attribute: "NumberOfYearDaySchedulesSupportedPerUser" |
| response: |
| saveAs: NumberOfYearDaySchedulesSupportedPerUser |
| value: 10 |
| |
| - label: "Get Max number of Holiday schedules and verify default value" |
| command: "readAttribute" |
| attribute: "NumberOfHolidaySchedulesSupported" |
| response: |
| saveAs: NumberOfHolidaySchedulesSupported |
| value: 10 |
| |
| # |
| # Excercise SetWeekDay schedules with invalid parameters |
| # |
| - label: "Create Week Day schedule with 0 index" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with out-of-bounds index" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: NumberOfWeekDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with 0 user index" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with out-of-bounds user index" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule for non-existing user" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: FAILURE |
| |
| - label: "Create Week Day schedule with 0 days mask" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule for Sunday and Monday" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x3 # (Sunday and Monday) |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule for Sunday Wednesday and Saturday" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x49 # (Sunday, Wednesday and Saturday) |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with invalid start hour" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 24 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with invalid start minute" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 60 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with invalid end hour" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 24 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with invalid end minute" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 60 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Week Day schedule with start hour later that end hour" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 19 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| response: |
| error: INVALID_FIELD |
| |
| - label: |
| "Create Week Day schedule with start minute later that end minute when |
| hours are equal" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 1 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 50 |
| - name: "endHour" |
| value: 15 |
| - name: "endMinute" |
| value: 49 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Make sure that previous operations did not create a schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| # |
| # Excercise GetWeekDay schedules with invalid parameters |
| # |
| - label: "Get Week Day schedule with 0 index" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Week Day schedule with out-of-bounds index" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: NumberOfWeekDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: NumberOfWeekDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Week Day schedule with 0 user index" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Week Day schedule with out-of-bounds user index" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Week Day schedule with non-existing user index" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| - name: "status" |
| value: 0x01 |
| |
| # |
| # Excercise SetYearDay schedules with invalid parameters |
| # |
| - label: "Create Year Day schedule with 0 index" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Year Day schedule with out-of-bounds index" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: NumberOfYearDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Year Day schedule with 0 user index" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Year Day schedule with out-of-bounds user index" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Year Day schedule for non-existing user" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| response: |
| error: FAILURE |
| |
| - label: "Create Year Day schedule with start hour later that end hour" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345689 |
| - name: "localEndTime" |
| value: 12345688 |
| response: |
| error: INVALID_COMMAND |
| |
| - label: "Make sure that previous operations did not create a schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| # |
| # Excercise GetYearDay schedules with invalid parameters |
| # |
| - label: "Get Year Day schedule with 0 index" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Year Day schedule with out-of-bounds index" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: NumberOfYearDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: NumberOfYearDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Year Day schedule with 0 user index" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Year Day schedule with out-of-bounds user index" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Year Day schedule with non-existing user index" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| - name: "status" |
| value: 0x01 |
| |
| # |
| # Excercise Set Holiday schedules with invalid parameters |
| # |
| - label: "Create Holiday schedule with 0 index" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Holiday schedule with out-of-bounds index" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported + 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Holiday schedule with start hour later that end hour" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345689 |
| - name: "localEndTime" |
| value: 12345688 |
| - name: "operatingMode" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Create Holiday schedule with invalid operating mode" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 5 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Make sure that previous operations did not create a schedule" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| # |
| # Excercise Get Holiday schedules with invalid parameters |
| # |
| - label: "Get Holiday schedule with 0 index" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 0 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 0 |
| - name: "status" |
| value: 0x85 |
| |
| - label: "Get Holiday schedule with out-of-bounds index" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported + 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported + 1 |
| - name: "status" |
| value: 0x85 |
| |
| # Verify that schedule creation works |
| - label: "Create Holiday schedule with valid parameters" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| - label: "Verify created schedule" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| - label: "Create Week Day schedule with valid parameters" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| |
| - label: "Verify created schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| |
| - label: "Create Year Day schedule with valid parameters" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| - label: "Verify created schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| # |
| # Excercise ClearWeekDay schedules with invalid parameters |
| # |
| - label: "Clear Week Day schedule with 0 index" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Week Day schedule with out-of-bounds index" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: NumberOfWeekDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Week Day schedule with 0 user index" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Week Day schedule with out-of-bounds user index" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Week Day schedule with non-existing user" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| response: |
| error: FAILURE |
| |
| - label: "Make sure that week day schedule was not deleted" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| |
| - label: "Make sure that year day schedule was not deleted" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| - label: "Make sure that holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| # |
| # Excercise ClearYearDay schedules with invalid parameters |
| # |
| - label: "Clear Year Day schedule with 0 index" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 0 |
| - name: "userIndex" |
| value: 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Year Day schedule with out-of-bounds index" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: NumberOfYearDaySchedulesSupportedPerUser + 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Year Day schedule with 0 user index" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Year Day schedule with out-of-bounds user index" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: NumberOfTotalUsersSupported + 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Year Day schedule with non-existing user" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| response: |
| error: FAILURE |
| |
| - label: "Make sure that week day schedule was not deleted" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| |
| - label: "Make sure that year day schedule was not deleted" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| - label: "Make sure that holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| # Excercise ClearHolidaySchedule with invalid parameters |
| - label: "Clear Holiday schedule with 0 index" |
| command: "ClearHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 0 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Clear Holiday schedule with out-of-bounds index" |
| command: "ClearHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfYearDaySchedulesSupportedPerUser + 1 |
| response: |
| error: INVALID_FIELD |
| |
| - label: "Make sure that week day schedule was not deleted" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 15 |
| - name: "startMinute" |
| value: 16 |
| - name: "endHour" |
| value: 18 |
| - name: "endMinute" |
| value: 00 |
| |
| - label: "Make sure that year day schedule was not deleted" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| - label: "Make sure that holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| # Verify that clearing schedules works |
| - label: "Create another Week Day schedule with valid parameters" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x02 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Verify created week day schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x02 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Create another Year Day schedule with valid parameters" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Verify created year day schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Create another Holiday schedule with valid parameters" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "localStartTime" |
| value: 123456 |
| - name: "localEndTime" |
| value: 1234567 |
| - name: "operatingMode" |
| value: 1 |
| |
| - label: "Verify created holiday schedule" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 123456 |
| - name: "localEndTime" |
| value: 1234567 |
| - name: "operatingMode" |
| value: 1 |
| |
| - label: "Clear a single week day schedule for the first user" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| |
| - label: "Verify cleared week day schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Clear all remaining week day schedules for the first user" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 0xFE |
| - name: "userIndex" |
| value: 1 |
| |
| - label: "Verify cleared week schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Make sure that first year day schedule was not deleted" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| |
| - label: "Make sure that second year day schedule was not deleted" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Make sure that first holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| - label: "Make sure that second holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 123456 |
| - name: "localEndTime" |
| value: 1234567 |
| - name: "operatingMode" |
| value: 1 |
| |
| # We create it to test that clearing year day schedules does not delete week day schedules |
| - label: "Create another Week Day schedule with valid parameters" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x02 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Clear a single year day schedule for the first user" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| |
| - label: "Verify cleared year day schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Clear all remaining year schedules for the first user" |
| command: "ClearYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 0xFE |
| - name: "userIndex" |
| value: 1 |
| |
| - label: "Verify that second year day schedule was cleared" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 2 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Verify created week day schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x02 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Clear all remaining week day schedules for the first user" |
| command: "ClearWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 0xFE |
| - name: "userIndex" |
| value: 1 |
| |
| - label: |
| "Create new user without credential so we can add more schedules to it" |
| command: "SetUser" |
| timedInteractionTimeoutMs: 10000 |
| arguments: |
| values: |
| - name: "operationType" |
| value: 0 |
| - name: "userIndex" |
| value: 2 |
| - name: "userName" |
| value: null |
| - name: "userUniqueId" |
| value: null |
| - name: "userStatus" |
| value: null |
| - name: "userType" |
| value: null |
| - name: "credentialRule" |
| value: null |
| |
| - label: "Create Week Day schedule with valid parameters for first user" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Verify created week day schedule for first user" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Create Year Day schedule for first user" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Verify created year day schedule for first" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Create Week Day schedule with valid parameters for second user" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 2 |
| - name: "daysMask" |
| value: 0x40 |
| - name: "startHour" |
| value: 23 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Verify created week day schedule for first user" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 2 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 2 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x40 |
| - name: "startHour" |
| value: 23 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Create Year Day schedule for second user" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 55555 |
| - name: "localEndTime" |
| value: 7777777 |
| |
| - label: "Verify created year day schedule for first" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 55555 |
| - name: "localEndTime" |
| value: 7777777 |
| |
| - label: "Cleanup the user" |
| command: "ClearUser" |
| timedInteractionTimeoutMs: 10000 |
| arguments: |
| values: |
| - name: "userIndex" |
| value: 0xFFFE |
| |
| - label: "Make sure clearing first user also cleared week day schedules" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x01 |
| |
| - label: "Make sure clearing first user also cleared year day schedules" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x01 |
| |
| - label: "Make sure clearing second user also cleared week day schedules" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 2 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 4 |
| - name: "userIndex" |
| value: 2 |
| - name: "status" |
| value: 0x01 |
| |
| - label: "Make sure clearing second user also cleared year day schedules" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 2 |
| - name: "status" |
| value: 0x01 |
| |
| # Make sure that all the manipulations did not affect the holiday schedules |
| - label: "Make sure that first holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| - label: "Make sure that second holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 123456 |
| - name: "localEndTime" |
| value: 1234567 |
| - name: "operatingMode" |
| value: 1 |
| |
| - label: "Create another Holiday schedule at the last slot" |
| command: "SetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| - name: "localStartTime" |
| value: 1 |
| - name: "localEndTime" |
| value: 100 |
| - name: "operatingMode" |
| value: 4 |
| |
| - label: "Verify Created Holiday Schedule" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| response: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 1 |
| - name: "localEndTime" |
| value: 100 |
| - name: "operatingMode" |
| value: 4 |
| |
| # Those steps are required to validate that clearing holiday schedules does not delete weekday and year day schedules |
| - label: "Create new PIN credential and schedule user" |
| command: "SetCredential" |
| timedInteractionTimeoutMs: 10000 |
| arguments: |
| values: |
| - name: "operationType" |
| value: 0 |
| - name: "credential" |
| value: { CredentialType: 1, CredentialIndex: 1 } |
| - name: "credentialData" |
| value: "123456" |
| - name: "userIndex" |
| value: null |
| - name: "userStatus" |
| value: null |
| - name: "userType" |
| value: null |
| response: |
| values: |
| - name: "status" |
| value: 0x00 |
| - name: "userIndex" |
| value: 1 |
| - name: "nextCredentialIndex" |
| value: 2 |
| |
| - label: "Create Week Day schedule for first user" |
| command: "SetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: "Create Year Day schedule for first user" |
| command: "SetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| # Start clearing holiday schedules |
| - label: "Clear a single holiday schedule" |
| command: "ClearHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| |
| - label: "Make sure that first holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 12345 |
| - name: "localEndTime" |
| value: 12345689 |
| - name: "operatingMode" |
| value: 0 |
| |
| - label: "Make sure that second holiday schedule was deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Make sure that third holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| response: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 1 |
| - name: "localEndTime" |
| value: 100 |
| - name: "operatingMode" |
| value: 4 |
| |
| - label: |
| "Make sure clearing holiday schedule did not clear week day schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: |
| "Make sure clearing holiday schedule did not clear year day schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Clear all remaining holiday schedules" |
| command: "ClearHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 0xFE |
| |
| - label: "Make sure that first holiday is still deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 1 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Make sure that second holiday schedule was deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| response: |
| values: |
| - name: "holidayIndex" |
| value: 2 |
| - name: "status" |
| value: 0x8B |
| |
| - label: "Make sure that third holiday schedule was not deleted" |
| command: "GetHolidaySchedule" |
| arguments: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| response: |
| values: |
| - name: "holidayIndex" |
| value: NumberOfHolidaySchedulesSupported |
| - name: "status" |
| value: 0x8B |
| |
| - label: |
| "Make sure clearing holiday schedule did not clear week day schedule" |
| command: "GetWeekDaySchedule" |
| arguments: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "weekDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "daysMask" |
| value: 0x01 |
| - name: "startHour" |
| value: 0 |
| - name: "startMinute" |
| value: 0 |
| - name: "endHour" |
| value: 23 |
| - name: "endMinute" |
| value: 59 |
| |
| - label: |
| "Make sure clearing holiday schedule did not clear year day schedule" |
| command: "GetYearDaySchedule" |
| arguments: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| response: |
| values: |
| - name: "yearDayIndex" |
| value: 1 |
| - name: "userIndex" |
| value: 1 |
| - name: "status" |
| value: 0x0 |
| - name: "localStartTime" |
| value: 9000 |
| - name: "localEndTime" |
| value: 888888888 |
| |
| - label: "Final Cleanup" |
| command: "ClearUser" |
| timedInteractionTimeoutMs: 10000 |
| arguments: |
| values: |
| - name: "userIndex" |
| value: 0xFFFE |