mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 01:45:32 +00:00
59 lines
1.8 KiB
JavaScript
59 lines
1.8 KiB
JavaScript
/*
|
|
* Copyright 2021 Collate
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
import { deleteCreatedService, goToAddNewServicePage, testServiceCreationAndIngestion, uuid } from '../../common/common';
|
|
|
|
|
|
const serviceType = 'Glue';
|
|
const serviceName = `${serviceType}-ct-test-${uuid()}`;
|
|
|
|
describe('Glue Ingestion', () => {
|
|
it('add and ingest data', () => {
|
|
goToAddNewServicePage();
|
|
const connectionInput = () => {
|
|
cy.get('#root_awsConfig_awsAccessKeyId')
|
|
.scrollIntoView()
|
|
.type(Cypress.env('glueAwsAccessKeyId'));
|
|
cy.get('#root_awsConfig_awsSecretAccessKey')
|
|
.scrollIntoView()
|
|
.type(Cypress.env('glueAwsSecretAccessKey'));
|
|
cy.get('#root_awsConfig_awsRegion')
|
|
.scrollIntoView()
|
|
.type(Cypress.env('glueAwsRegion'));
|
|
cy.get('#root_awsConfig_endPointURL')
|
|
.scrollIntoView()
|
|
.type(Cypress.env('glueEndPointURL'));
|
|
cy.get('#root_storageServiceName')
|
|
.scrollIntoView()
|
|
.type(Cypress.env('glueStorageServiceName'));
|
|
};
|
|
|
|
const addIngestionInput = () => {
|
|
// no filters
|
|
};
|
|
|
|
testServiceCreationAndIngestion(
|
|
serviceType,
|
|
connectionInput,
|
|
addIngestionInput,
|
|
serviceName,
|
|
'database',
|
|
false
|
|
);
|
|
});
|
|
|
|
it('delete created service', () => {
|
|
deleteCreatedService('Database', serviceName);
|
|
});
|
|
});
|