@@ -32,10 +32,10 @@ export class MockServer {
32
32
body : {
33
33
storage : {
34
34
value : `
35
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" 4671afbe-d914-470a-bb9e-8b7321f60f79" >
36
- <ac:parameter ac:name=" title" >Configuration</ac:parameter>
35
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' 4671afbe-d914-470a-bb9e-8b7321f60f79' >
36
+ <ac:parameter ac:name=' title' >Configuration</ac:parameter>
37
37
<ac:rich-text-body>
38
- <table class=" wrapped" >
38
+ <table class=' wrapped' >
39
39
<colgroup>
40
40
<col/>
41
41
<col/>
@@ -57,8 +57,8 @@ export class MockServer {
57
57
</table>
58
58
</ac:rich-text-body>
59
59
</ac:structured-macro>
60
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" ecfe796e-b701-4f30-a74a-b94dbb33daff" >
61
- <ac:parameter ac:name=" title" >SMTP</ac:parameter>
60
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' ecfe796e-b701-4f30-a74a-b94dbb33daff' >
61
+ <ac:parameter ac:name=' title' >SMTP</ac:parameter>
62
62
<ac:rich-text-body>
63
63
<table>
64
64
<colgroup>
@@ -68,20 +68,20 @@ export class MockServer {
68
68
<tbody>
69
69
<tr>
70
70
<th>Host</th>
71
- <td colspan="1" >localhost</td>
71
+ <td colspan='1' >localhost</td>
72
72
</tr>
73
73
<tr>
74
74
<th>Port</th>
75
- <td colspan="1" >25</td>
75
+ <td colspan='1' >25</td>
76
76
</tr>
77
77
</tbody>
78
78
</table>
79
79
</ac:rich-text-body>
80
80
</ac:structured-macro>
81
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" f19cd8b2-57e0-4c68-a823-8a2daee08c12" >
82
- <ac:parameter ac:name=" title" >Checks</ac:parameter>
81
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' f19cd8b2-57e0-4c68-a823-8a2daee08c12' >
82
+ <ac:parameter ac:name=' title' >Checks</ac:parameter>
83
83
<ac:rich-text-body>
84
- <table class=" wrapped" >
84
+ <table class=' wrapped' >
85
85
<colgroup>
86
86
<col/>
87
87
<col/>
@@ -96,17 +96,17 @@ export class MockServer {
96
96
<td>356</td>
97
97
</tr>
98
98
<tr>
99
- <td colspan="1" >test2</td>
100
- <td colspan="1" >1234</td>
99
+ <td colspan='1' >test2</td>
100
+ <td colspan='1' >1234</td>
101
101
</tr>
102
102
</tbody>
103
103
</table>
104
104
</ac:rich-text-body>
105
105
</ac:structured-macro>
106
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" 1d192d60-7e69-4af8-8dd6-4006a7bfc952" >
107
- <ac:parameter ac:name=" title" >Maintainer</ac:parameter>
106
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' 1d192d60-7e69-4af8-8dd6-4006a7bfc952' >
107
+ <ac:parameter ac:name=' title' >Maintainer</ac:parameter>
108
108
<ac:rich-text-body>
109
- <table class=" wrapped" >
109
+ <table class=' wrapped' >
110
110
<colgroup>
111
111
<col/>
112
112
<col/>
@@ -117,22 +117,22 @@ export class MockServer {
117
117
<th>Maintainer</th>
118
118
</tr>
119
119
<tr>
120
- <td>Test2 </td>
120
+ <td>main/Test/.* </td>
121
121
<td>maintainer</td>
122
122
</tr>
123
123
</tbody>
124
124
</table>
125
125
</ac:rich-text-body>
126
126
</ac:structured-macro>
127
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" 93f1d981-c841-4cb4-b6e2-5940dfe69132" >
128
- <ac:parameter ac:name=" title" >Notification Template</ac:parameter>
127
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' 93f1d981-c841-4cb4-b6e2-5940dfe69132' >
128
+ <ac:parameter ac:name=' title' >Notification Template</ac:parameter>
129
129
<ac:rich-text-body>
130
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" f8503e48-c671-4ed6-897c-def2b2c3fa29" >
131
- <ac:parameter ac:name=" title" >Subject</ac:parameter>
130
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' f8503e48-c671-4ed6-897c-def2b2c3fa29' >
131
+ <ac:parameter ac:name=' title' >Subject</ac:parameter>
132
132
<ac:rich-text-body><p>${ MockServer . NOTIFICATION_SUBJECT } </p></ac:rich-text-body>
133
133
</ac:structured-macro>
134
- <ac:structured-macro ac:name=" panel" ac:schema-version="1" ac:macro-id=" 63c16112-dea3-434e-b1cb-467ff4e36d5f" >
135
- <ac:parameter ac:name=" title" >Body</ac:parameter>
134
+ <ac:structured-macro ac:name=' panel' ac:schema-version='1' ac:macro-id=' 63c16112-dea3-434e-b1cb-467ff4e36d5f' >
135
+ <ac:parameter ac:name=' title' >Body</ac:parameter>
136
136
<ac:rich-text-body>${ MockServer . NOTIFICATION_BODY } </ac:rich-text-body>
137
137
</ac:structured-macro>
138
138
</ac:rich-text-body>
@@ -179,7 +179,7 @@ export class MockServer {
179
179
180
180
public addDocumentEndpoint ( ) : void {
181
181
this . _scope
182
- . get ( '/rest/api/content/123' )
182
+ . get ( '/rest/api/content/123?expand=ancestors ' )
183
183
. basicAuth ( {
184
184
user : 'nobody' ,
185
185
pass : 'nothing' ,
@@ -189,6 +189,11 @@ export class MockServer {
189
189
base : 'https://example.com' ,
190
190
webui : '/display/SAMPLE/Test' ,
191
191
} ,
192
+ ancestors : [
193
+ {
194
+ title : 'main' ,
195
+ } ,
196
+ ] ,
192
197
version : {
193
198
by : {
194
199
username : 'author' ,
@@ -198,7 +203,7 @@ export class MockServer {
198
203
} ,
199
204
title : 'Test' ,
200
205
} )
201
- . get ( '/rest/api/content/234' )
206
+ . get ( '/rest/api/content/234?expand=ancestors ' )
202
207
. basicAuth ( {
203
208
user : 'nobody' ,
204
209
pass : 'nothing' ,
@@ -208,6 +213,14 @@ export class MockServer {
208
213
base : 'https://example.com' ,
209
214
webui : '/display/SAMPLE/Test2' ,
210
215
} ,
216
+ ancestors : [
217
+ {
218
+ title : 'main' ,
219
+ } ,
220
+ {
221
+ title : 'Test' ,
222
+ } ,
223
+ ] ,
211
224
version : {
212
225
by : {
213
226
username : 'author2' ,
0 commit comments