@@ -53,68 +53,74 @@ test combined_text_template_and_file | jq -e "
53
53
.body.channel == null and
54
54
.body.icon_url == null and
55
55
.body.icon_emoji == null and
56
+ .body.link_names == false and
56
57
.body.username == $( echo $username | jq -R .) and
57
58
.body.text == \" ${base_text} \n${sample_text} \" and
58
59
.body.attachments == null and
59
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
60
- ( .body | keys | length == 6 )"
60
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
61
+ ( .body | keys | length == 7 )"
61
62
62
63
63
64
test combined_text_template_and_file_empty | jq -e "
64
65
.webhook_url == $( echo $webhook_url | jq -R .) and
65
66
.body.channel == null and
66
67
.body.icon_url == null and
67
68
.body.icon_emoji == null and
69
+ .body.link_names == false and
68
70
.body.username == $( echo $username | jq -R .) and
69
71
.body.text == \" ${base_text} \n${missing_text} \n\" and
70
72
.body.attachments == null and
71
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
72
- ( .body | keys | length == 6 )"
73
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
74
+ ( .body | keys | length == 7 )"
73
75
74
76
75
77
test combined_text_template_and_file_missing | jq -e "
76
78
.webhook_url == $( echo $webhook_url | jq -R .) and
77
79
.body.channel == null and
78
80
.body.icon_url == null and
79
81
.body.icon_emoji == null and
82
+ .body.link_names == false and
80
83
.body.username == $( echo $username | jq -R .) and
81
84
.body.text == \" ${base_text} \n${missing_text} \n\" and
82
85
.body.attachments == null and
83
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
84
- ( .body | keys | length == 6 )"
86
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
87
+ ( .body | keys | length == 7 )"
85
88
86
89
test text | jq -e "
87
90
.webhook_url == $( echo $webhook_url | jq -R .) and
88
91
.body.channel == null and
89
92
.body.icon_url == null and
90
93
.body.icon_emoji == null and
94
+ .body.link_names == false and
91
95
.body.username == $( echo $username | jq -R .) and
92
96
.body.text == \" Inline static \` text\` \n\" and
93
97
.body.attachments == null and
94
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
95
- ( .body | keys | length == 6 )"
98
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
99
+ ( .body | keys | length == 7 )"
96
100
97
101
test text_file | jq -e "
98
102
.webhook_url == $( echo $webhook_url | jq -R .) and
99
103
.body.channel == null and
100
104
.body.icon_url == null and
101
105
.body.icon_emoji == null and
106
+ .body.link_names == false and
102
107
.body.username == $( echo $username | jq -R .) and
103
108
.body.text == \" ${sample_text} \" and
104
109
.body.attachments == null and
105
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
106
- ( .body | keys | length == 6 )"
110
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
111
+ ( .body | keys | length == 7 )"
107
112
108
113
test text_file_empty | jq -e "
109
114
.webhook_url == $( echo $webhook_url | jq -R .) and
110
115
.body.channel == null and
111
116
.body.icon_url == null and
112
117
.body.icon_emoji == null and
118
+ .body.link_names == false and
113
119
.body.username == $( echo $username | jq -R .) and
114
120
.body.text == \" ${missing_text} \n\" and
115
121
.body.attachments == null and
116
- ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ,\" attachments\" ]) ) and
117
- ( .body | keys | length == 6 )"
122
+ ( .body | keys | contains([\" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ,\" attachments\" ]) ) and
123
+ ( .body | keys | length == 7 )"
118
124
119
125
test text_file_empty_suppress | jq -e "
120
126
( . | keys | length == 1 ) and
@@ -183,10 +189,11 @@ test multiple_channels | jq -e "
183
189
.body.channel == \" #another_channel\" and
184
190
.body.icon_url == null and
185
191
.body.icon_emoji == null and
192
+ .body.link_names == false and
186
193
.body.username == $( echo $username | jq -R .) and
187
194
.body.text == \" Inline static text\n\" and
188
- ( .body | keys | contains([\" attachments\" , \" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" text\" ]) ) and
189
- ( .body | keys | length == 6 ) and
195
+ ( .body | keys | contains([\" attachments\" , \" channel\" ,\" icon_emoji\" ,\" icon_url\" ,\" username\" ,\" link_names \" , \" text\" ]) ) and
196
+ ( .body | keys | length == 7 ) and
190
197
.body.attachments == null"
191
198
192
199
0 commit comments