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

[Remote clusters] Cloud deployment form when adding new cluster #94450

Merged
merged 46 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e88f2d9
Implemented in-form Cloud deployment url input
yuliacech Mar 11, 2021
61eee0b
Fixed i18n files and added mode switch back for non-Cloud
yuliacech Mar 11, 2021
134d063
Merge branch 'master' into remote_clusters_cloud_form_2
yuliacech Mar 16, 2021
24ee218
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 16, 2021
800c9ce
Added cloud docs link to the documentation service, fixed snapshot tests
yuliacech Mar 16, 2021
2631c2c
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 17, 2021
28d6fb0
Fixed docs build
yuliacech Mar 17, 2021
907ae2f
Added jest test for the new cloud url input
yuliacech Mar 18, 2021
94d626b
Merge branch 'master' into remote_clusters_cloud_form_2
yuliacech Mar 18, 2021
d7e1417
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 18, 2021
82eae18
Merge branch 'master' into remote_clusters_cloud_form_2
yuliacech Mar 18, 2021
1ac351a
Added unit test for cloud validation
yuliacech Mar 18, 2021
68e9cc8
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 22, 2021
2229208
Fixed eslint error
yuliacech Mar 22, 2021
8b93354
Fixed ts errors
yuliacech Mar 22, 2021
1d134ef
Added ts-ignore
yuliacech Mar 22, 2021
2d5f0ae
Fixed ts errors
yuliacech Mar 22, 2021
801b61c
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 25, 2021
ac5c03e
Refactored connection mode component and component tests
yuliacech Mar 25, 2021
c7ffc93
Fixed import
yuliacech Mar 25, 2021
fce253c
Fixed copy
yuliacech Mar 25, 2021
908f11d
Fixed copy
yuliacech Mar 25, 2021
70f3d80
Reverted docs changes
yuliacech Mar 25, 2021
5313f5b
Reverted docs changes
yuliacech Mar 25, 2021
94b072d
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 25, 2021
01075ac
Merge branch 'master' into remote_clusters_cloud_form_2
yuliacech Mar 29, 2021
f037d19
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 29, 2021
d2413bc
Replaced the screenshot with a popover and refactored integration tests
yuliacech Mar 29, 2021
de89802
Added todo for cloud deployments link
yuliacech Mar 29, 2021
b2161e9
Changed cloud URL help text copy
yuliacech Mar 30, 2021
a9e317c
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 31, 2021
6b9793c
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Mar 31, 2021
8a2a200
Added cloud base url and deleted unnecessary base path
yuliacech Mar 31, 2021
bfa86b7
Fixed es error
yuliacech Mar 31, 2021
ee1af7c
Fixed es error
yuliacech Mar 31, 2021
8dafc20
Changed wording
yuliacech Apr 1, 2021
f5c1dba
Reverted docs changes
yuliacech Apr 1, 2021
85655c1
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Apr 1, 2021
d157ddd
Updated the help popover
yuliacech Apr 6, 2021
2fa7a72
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Apr 6, 2021
95a06eb
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Apr 6, 2021
9e2ab0d
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Apr 6, 2021
a2c811e
Merge branch 'master' into remote_clusters_cloud_form_2
kibanamachine Apr 7, 2021
205aa4f
Deleted unneeded fragment component
yuliacech Apr 7, 2021
9c46850
Deleted unneeded fragment component
yuliacech Apr 8, 2021
e0d85ee
Updated tests descriptions to be more detailed
yuliacech Apr 8, 2021
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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import React from 'react';
import { registerTestBed } from '@kbn/test/jest';

import { RemoteClusterAdd } from '../../../public/application/sections';
import { createRemoteClustersStore } from '../../../public/application/store';
import { AppRouter, registerRouter } from '../../../public/application/services';
import { createRemoteClustersActions } from '../helpers';
import { AppContextProvider } from '../../../public/application/app_context';

const ComponentWithContext = ({ isCloudEnabled }: { isCloudEnabled: boolean }) => {
return (
<AppContextProvider context={{ isCloudEnabled, cloudBaseUrl: 'test.com' }}>
<RemoteClusterAdd />
</AppContextProvider>
);
};

const testBedConfig = ({ isCloudEnabled }: { isCloudEnabled: boolean }) => {
return {
store: createRemoteClustersStore,
memoryRouter: {
onRouter: (router: AppRouter) => registerRouter(router),
},
defaultProps: { isCloudEnabled },
};
};

const initTestBed = (isCloudEnabled: boolean) =>
registerTestBed(ComponentWithContext, testBedConfig({ isCloudEnabled }))();

export const setup = async (isCloudEnabled = false) => {
const testBed = await initTestBed(isCloudEnabled);

return {
...testBed,
actions: {
...createRemoteClustersActions(testBed),
},
};
};

This file was deleted.

Loading