Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cases] Serverless tests for Cases detail view #164827

Merged
merged 25 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b2f4628
Added Cases detail view tests for serverless.
adcoelho Aug 25, 2023
b7a9f79
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Aug 25, 2023
d72c0a4
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Aug 25, 2023
95116ce
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Aug 25, 2023
78e730b
Fixed linting errors.
adcoelho Aug 25, 2023
0767294
Merge remote-tracking branch 'upstream/main' into pr/164827
js-jankisalvi Aug 28, 2023
a5e025b
resolve helpers conflict
js-jankisalvi Aug 28, 2023
39d7f89
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Aug 28, 2023
b7b0c81
Merge branch 'main' into basic-serverless-tests-for-cases
js-jankisalvi Aug 29, 2023
715aaa8
removed skipped tests
js-jankisalvi Aug 29, 2023
d04f431
Merge branch 'basic-serverless-tests-for-cases' of https://github.com…
js-jankisalvi Aug 29, 2023
4c92164
removed unused function
js-jankisalvi Aug 30, 2023
9d38266
Merge branch 'main' into basic-serverless-tests-for-cases
js-jankisalvi Sep 1, 2023
db04752
Merge remote-tracking branch 'upstream/main' into basic-serverless-te…
adcoelho Sep 4, 2023
02e7a39
Fix file upload tests for serverless.
adcoelho Sep 4, 2023
d736b0a
Merge remote-tracking branch 'upstream/main' into basic-serverless-te…
adcoelho Sep 4, 2023
d645274
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Sep 4, 2023
9c09002
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Sep 4, 2023
f9c92a5
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Sep 5, 2023
47bb529
Addressing PR comments.
adcoelho Sep 5, 2023
2a93881
Removed skiped tests.
adcoelho Sep 5, 2023
e113385
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Sep 6, 2023
d8d464b
Skip lens tests on serverless.
adcoelho Sep 6, 2023
7bc80bc
Merge branch 'main' into basic-serverless-tests-for-cases
adcoelho Sep 7, 2023
5b4cbb6
Fix tests.
adcoelho Sep 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ export const updateCase = async ({

const { body: cases } = await apiCall
.set('kbn-xsrf', 'true')
.set('x-elastic-internal-origin', 'foo')
.set(headers)
.send(params)
.expect(expectedHttpCode);
Expand Down
7 changes: 6 additions & 1 deletion x-pack/test/functional/services/cases/test_resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ export function CasesTestResourcesServiceProvider({ getService }: FtrProviderCon

return {
async installKibanaSampleData(sampleDataId: 'ecommerce' | 'flights' | 'logs') {
await supertest.post(`/api/sample_data/${sampleDataId}`).set('kbn-xsrf', 'true').expect(200);
await supertest
.post(`/api/sample_data/${sampleDataId}`)
.set('kbn-xsrf', 'true')
.set('x-elastic-internal-origin', 'foo')
.expect(200);
},

async removeKibanaSampleData(sampleDataId: 'ecommerce' | 'flights' | 'logs') {
await supertest
.delete(`/api/sample_data/${sampleDataId}`)
.set('kbn-xsrf', 'true')
.set('x-elastic-internal-origin', 'foo')
.expect(204);
},
};
Expand Down
Loading