45 lines
1.6 KiB
JavaScript
Raw Normal View History

/*
* 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 { goToAddNewServicePage, testSampleData, testServiceCreationAndIngestion } from '../../common/common';
import { MY_SQL_TABLE } from '../../constants/constants';
describe('MySQL Ingestion', () => {
it('add and ingest data', () => {
goToAddNewServicePage();
const connectionInput = () => {
cy.get('#root_username').type('openmetadata_user');
cy.get('#root_password').type('openmetadata_password');
cy.get('#root_hostPort').type('172.16.239.10:3306');
cy.get('#root_database').type('openmetadata_db');
};
const addIngestionInput = () => {
cy.get('[data-testid="schema-filter-pattern-checkbox"]').check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.should('be.visible')
.type('openmetadata_db');
};
testServiceCreationAndIngestion(
'Mysql',
connectionInput,
addIngestionInput
);
});
it('Check for Sample data in table entry', () => {
testSampleData(MY_SQL_TABLE);
});
});