Skip to content

Commit

Permalink
fix: update docs and add test case (#229)
Browse files Browse the repository at this point in the history
* fix: update docs and add test case

* fix

* chore: release
  • Loading branch information
lowlydba authored Mar 9, 2024
1 parent 4d9eff5 commit 488ef0f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 8 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ lowlydba.sqlserver Release Notes
.. contents:: Topics


v2.3.2
======

Release Summary
---------------

Small fix for documentation and upstream fix available in dbatools v2.1.9.

Bugfixes
--------

- Update documentation for agent_job_schedule to reflect proper input formatting. (https://github.com/lowlydba/lowlydba.sqlserver/pull/229)

v2.3.1
======

Expand Down
11 changes: 11 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -483,3 +483,14 @@ releases:
- 2-3-1-release-summary.yml
- 231-dbops-v09.yml
release_date: '2024-02-24'
2.3.2:
changes:
bugfixes:
- Update documentation for agent_job_schedule to reflect proper input formatting.
(https://github.com/lowlydba/lowlydba.sqlserver/pull/229)
release_summary: Small fix for documentation and upstream fix available in dbatools
v2.1.9.
fragments:
- 2-3-2-release-summary.yml
- 229-docs-update.yml
release_date: '2024-03-09'
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace: lowlydba
name: sqlserver
version: 2.3.1
version: 2.3.2
readme: README.md
authors:
- John McCall (github.com/lowlydba)
Expand Down
9 changes: 5 additions & 4 deletions plugins/modules/agent_job_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,18 @@
start_date:
description:
- The date on which execution of a job can begin.
- If I(force=true)the start date will be the current day.
- Format is C(YYYY-MM-DD).
- If I(force=true) the start date will be the current day.
- Format is C(yyyyMMdd).
type: str
required: false
end_date:
description:
- The date on which execution of a job can stop.
- If I(force=true) the end date will be C(9999-12-31).
- Format is C(YYYY-MM-DD).
- If I(force=true) the end date will be C(99991231), via dbatools.
- Format is C(yyyyMMdd).
type: str
required: false
start_time:
description:
- The time on any day to begin execution of a job. Format C(HHMMSS) (24 hour clock).
Expand Down
5 changes: 2 additions & 3 deletions tests/integration/targets/agent_job_schedule/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
sql_password: "{{ sqlserver_password }}"
start_date: "{{ start_date }}"
start_time: "{{ start_time }}"
end_date: "{{ end_date }}"
end_time: "{{ end_time }}"
frequency_type: "{{ frequency_type }}"
frequency_interval: "{{ frequency_interval }}"
Expand All @@ -46,7 +45,7 @@
- result is changed
- result.data.Name == "{{ job_name }}"

- name: Create job schedule with force
- name: Create job schedule with force, no end date
lowlydba.sqlserver.agent_job_schedule:
schedule: "{{ forced_schedule_name }}"
force: true
Expand All @@ -56,7 +55,7 @@
that:
- result.data.ScheduleUid != None
- result.data.ActiveStartDate == "3020-05-25T00:00:00.0000000"
- result.data.ActiveEndDate == "3020-05-25T00:00:00.0000000"
- result.data.ActiveEndDate == "9999-12-31T00:00:00.0000000"
- result.data.JobCount == 1
- result.data.IsEnabled is true
- result.data.ScheduleName == "{{ forced_schedule_name }}"
Expand Down

0 comments on commit 488ef0f

Please sign in to comment.