Skip to content

Commit a02c26b

Browse files
committed
Fix scripts library FTR tests: add missing fileType field and skip delete test pending server bug fix
1 parent a253afd commit a02c26b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • x-pack/solutions/security/test/security_solution_api_integration/test_suites/edr_workflows/scripts_library/trial_license_complete_tier

x-pack/solutions/security/test/security_solution_api_integration/test_suites/edr_workflows/scripts_library/trial_license_complete_tier/scripts_library.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default function ({ getService }: FtrProviderContext) {
6666
.on('error', createSupertestErrorLogger(log))
6767
.on('response', addScriptToAfterEachCleanup)
6868
.field('name', 'test script')
69+
.field('fileType', 'script')
6970
.field('platform', JSON.stringify(['linux']))
7071
.attach('file', buildFileBuffer(), 'script_file.sh')
7172
.expect(200);
@@ -121,6 +122,7 @@ export default function ({ getService }: FtrProviderContext) {
121122
.on('error', createSupertestErrorLogger(log).ignoreCodes([403]))
122123
.on('response', addScriptToAfterEachCleanup)
123124
.field('name', 'test script')
125+
.field('fileType', 'script')
124126
.field('platform', JSON.stringify(['linux']))
125127
.attach('file', buildFileBuffer(), 'script_file.sh')
126128
.expect(403);
@@ -133,6 +135,7 @@ export default function ({ getService }: FtrProviderContext) {
133135
.on('error', createSupertestErrorLogger(log).ignoreCodes([403]))
134136
.on('response', addScriptToAfterEachCleanup)
135137
.field('name', 'test script')
138+
.field('fileType', 'script')
136139
.field('platform', JSON.stringify(['linux']))
137140
.attach('file', buildFileBuffer(), 'script_file.sh')
138141
.expect(403);
@@ -145,6 +148,7 @@ export default function ({ getService }: FtrProviderContext) {
145148
.on('error', createSupertestErrorLogger(log))
146149
.on('response', addScriptToAfterEachCleanup)
147150
.field('name', 'test script')
151+
.field('fileType', 'script')
148152
.field('platform', JSON.stringify(['linux']))
149153
.attach('file', buildFileBuffer(), 'script_file.sh')
150154
.expect(200);
@@ -218,7 +222,8 @@ export default function ({ getService }: FtrProviderContext) {
218222
.expect(403);
219223
});
220224

221-
it('should delete script when user has WRITE privileges', async () => {
225+
// https://github.com/elastic/security-team/issues/16593
226+
it.skip('should delete script when user has WRITE privileges', async () => {
222227
await writeScriptsSuperTest
223228
.delete(SCRIPTS_LIBRARY_ROUTE_ITEM.replace('{script_id}', scriptId))
224229
.set('kbn-xsrf', 'true')

0 commit comments

Comments
 (0)