Commit b75d483
authored
Fix: Cron Trigger Plan-time Validation; Cron Trigger Updates; Cron Trigger Testing (#100)
## What
* Add Cron Trigger plan-time validation
* Fix Cron Trigger updating (force replacement of resource on any
change, because there is no update verb in the cron trigger API)
* Improve Cron Trigger Testing
* Misc: remove use of "Hermes" service name in Provider logs. While
accurate in the [API
docs](https://g.codefresh.io/api/#tag/Triggers-Events), this may cause
unnecessary confusion to users of the Terraform provider.
## Why
* Updating a Cron Trigger results in duplicates
* No plan-time validation on Cron Triggers
## Notes
* Closes #99
* Closes #98
* Adding a `minor` label because now we have plan-validation, which can
potentially break existing cron trigger configurations in Terraform)
Co-authored-by: Yonatan Koren <10080107+korenyoni@users.noreply.github.com>1 parent 22bf53a commit b75d483
File tree
10 files changed
+274
-22
lines changed- client
- codefresh
- examples/triggers
10 files changed
+274
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
45 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
46 | 82 | | |
47 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
48 | 96 | | |
49 | 97 | | |
50 | 98 | | |
| |||
97 | 145 | | |
98 | 146 | | |
99 | 147 | | |
100 | | - | |
| 148 | + | |
| 149 | + | |
101 | 150 | | |
102 | 151 | | |
103 | 152 | | |
| |||
107 | 156 | | |
108 | 157 | | |
109 | 158 | | |
110 | | - | |
| 159 | + | |
111 | 160 | | |
112 | 161 | | |
113 | 162 | | |
| |||
122 | 171 | | |
123 | 172 | | |
124 | 173 | | |
125 | | - | |
| 174 | + | |
126 | 175 | | |
127 | 176 | | |
128 | 177 | | |
| |||
0 commit comments