Skip to content

Commit

Permalink
Merge branch 'main' into rolebased-entity-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketkatkar97 authored Aug 11, 2024
2 parents 120478e + eb3cdda commit c11e9c2
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { getCurrentMillis } from '../../../src/utils/date-time/DateTimeUtils';
import { uuid } from '../../constants/constants';
import { EntityType } from '../../constants/Entity.interface';
import {
Expand Down Expand Up @@ -217,6 +218,30 @@ const prepareDataQualityTestCasesViaREST = ({
testDefinition: 'tableColumnCountToBeBetween',
testSuite: testSuite.name,
},
}).then((response) => {
const testCaseFqn = response.body.fullyQualifiedName;

cy.request({
method: 'PUT',
url: `/api/v1/dataQuality/testCases/${testCaseFqn}/testCaseResult`,
headers: { Authorization: `Bearer ${token}` },
body: {
result:
'Found min=10001, max=27809 vs. the expected min=90001, max=96162.',
testCaseStatus: 'Failed',
testResultValue: [
{
name: 'minValueForMaxInCol',
value: '10001',
},
{
name: 'maxValueForMaxInCol',
value: '27809',
},
],
timestamp: getCurrentMillis(),
},
});
});
});
cy.request({
Expand Down Expand Up @@ -246,11 +271,6 @@ const prepareDataQualityTestCasesViaREST = ({
})
);
});

triggerTestCasePipeline({
serviceName: serviceName,
tableName: tableName,
});
};

export const prepareDataQualityTestCases = (token: string) => {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ test('TestSuite multi pipeline support', async ({ page }) => {

await test.step('Create a new pipeline', async () => {
await page.getByText('Profiler & Data Quality').click();
await page
.getByRole('menuitem', {
name: 'Table Profile',
})
.click();
await page.getByTestId('profiler-add-table-test-btn').click();
await page.getByTestId('test-case').click();
await page.getByTestId('test-case-name').clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe('Tour should work properly', () => {

test('All tour steps should work', async ({ page }) => {
await page.locator('[data-testid="help-icon"]').click();
await page.getByRole('link', { name: 'Tour' }).click();
await page.getByRole('link', { name: 'Tour', exact: true }).click();

await expect(page.locator(`[data-tour-elem="badge"]`)).toHaveText('1');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const addAssetsToDomain = async (
);

await page.getByTestId('domain-details-add-button').click();
await page.getByRole('menuitem', { name: 'Assets' }).click();
await page.getByRole('menuitem', { name: 'Assets', exact: true }).click();

for (const asset of assets) {
const name = get(asset, 'entityResponseData.name');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ export const CustomEdge = ({
isStrokeNeeded = isColumnHighlighted;
}

const opacity = tracedNodes.length === 0 || isStrokeNeeded ? 1 : 0.25;

return {
...style,
...{
stroke: isStrokeNeeded ? theme.primaryColor : undefined,
opacity,
},
};
}, [style, tracedNodes, edge, isColumnHighlighted, isColumnLineage]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "Setzen Sie Unternehmensziele und KPIs, um die Datenkultur Ihres Unternehmens proaktiv voranzutreiben. Fördern Sie eine Kultur kontinuierlicher Verbesserung mit rechtzeitigen Berichten zur Überwachung der Datenqualität.",
"get-started-with-open-metadata": "Erste Schritte mit OpenMetadata",
"glossary-tag-assignment-help-message": "You can either remove these assets or remove the conflicting tags from the assets, and try adding the tags again.",
"glossary-tag-update-description": "This action will apply the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Validation failed for the following data assets",
"glossary-tag-update-modal-title-validating": "Validating data assets",
"glossary-term-description": "Jeder Begriff im Glossar hat eine eindeutige Definition. Neben der Definition des Standardbegriffs für ein Konzept können auch Synonyme sowie verwandte Begriffe (z. B. übergeordnete und untergeordnete Begriffe) angegeben werden. Es können Referenzen zu den Assets hinzugefügt werden, die sich auf die Begriffe beziehen. Neue Begriffe können dem Glossar hinzugefügt oder aktualisiert werden. Die Glossarbegriffe können von bestimmten Benutzern überprüft werden, die die Begriffe akzeptieren oder ablehnen können.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "Sie haben die Tour erfolgreich abgeschlossen.",
"synonym-placeholder": "Um ein Synonym hinzuzufügen, geben Sie es einfach ein und drücken Sie Enter",
"system-tag-delete-disable-message": "Das Löschen von systemgenerierten Tags ist nicht zulässig. Sie können versuchen, den Tag stattdessen zu deaktivieren.",
"tag-update-confirmation": "Would you like to proceed with adding a new tag?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "Machen Sie eine Produkttour, um loszulegen!",
"team-moved-success": "Team erfolgreich verschoben!",
"team-no-asset": "Ihr Team hat keine Vermögenswerte.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "Set organizational goals and KPIs to proactively drive the data culture of your company. Foster a culture of continuous improvement with timely reports to monitor data health.",
"get-started-with-open-metadata": "Get started with OpenMetadata",
"glossary-tag-assignment-help-message": "You can either remove these assets or remove the conflicting tags from the assets, and try adding the tags again.",
"glossary-tag-update-description": "This action will apply the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Validation failed for the following data assets",
"glossary-tag-update-modal-title-validating": "Validating data assets",
"glossary-term-description": "Every term in the glossary has a unique definition. Along with defining the standard term for a concept, the synonyms as well as related terms (for e.g., parent and child terms) can be specified. References can be added to the assets related to the terms. New terms can be added or updated to the Glossary. The glossary terms can be reviewed by certain users, who can accept or reject the terms.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "You’ve successfully completed the tour.",
"synonym-placeholder": "To add a synonym, simply type it in and press Enter",
"system-tag-delete-disable-message": "Deleting a system generated tags is not allowed. You can try disabling the tag instead.",
"tag-update-confirmation": "Would you like to proceed with adding a new tag?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "Take a product tour to get started!",
"team-moved-success": "Team moved successfully!",
"team-no-asset": "Your team does not have any assets.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "Fomenta la colaboración entre los productores y consumidores de datos.",
"get-started-with-open-metadata": "Comienza con OpenMetadata",
"glossary-tag-assignment-help-message": "Puedes eliminar estos activos o eliminar las etiquetas conflictivas de los activos e intentar agregar las etiquetas nuevamente.",
"glossary-tag-update-description": "Esta acción aplicará la etiqueta a todos los Activos vinculados al Término del glosario",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Error de validación para los siguientes activos de datos",
"glossary-tag-update-modal-title-validating": "Validando activos de datos",
"glossary-term-description": "Cada término en el glosario tiene una definición única. Además de definir el término estándar para un concepto, se pueden especificar sinónimos y términos relacionados (por ejemplo, términos padre e hijo). Se pueden agregar referencias a los activos relacionados con los términos. Se pueden agregar o actualizar nuevos términos al glosario. Los términos del glosario pueden ser revisados por ciertos usuarios, quienes pueden aceptar o rechazar los términos.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "Has completado el recorrido con éxito.",
"synonym-placeholder": "Para agregar un sinónimo, simplemente escríbelo y presiona Enter",
"system-tag-delete-disable-message": "No se permite eliminar una etiqueta generada por el sistema. Puedes intentar desactivar la etiqueta en su lugar.",
"tag-update-confirmation": "¿Te gustaría proceder con agregar una nueva etiqueta?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "¡Realiza un recorrido rápido del producto para comenzar!",
"team-moved-success": "¡Equipo movido con éxito!",
"team-no-asset": "Tu equipo no tiene ningún activo.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "Encouragez la collaborations entre les consommateurs et producteurs de données",
"get-started-with-open-metadata": "Démarrer avec OpenMetadata",
"glossary-tag-assignment-help-message": "Vous pouvez soit retirer ces actifs soit retirer les tags conflictuels de ces actifs, et tenter d'ajouter les tags à nouveau.",
"glossary-tag-update-description": "Cette action appliquera le tag à tous les actifs liés au terme du glossaire",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Echec de la validation des actifs de données suivants",
"glossary-tag-update-modal-title-validating": "Validatiion des actifs de données",
"glossary-term-description": "Chaque terme du glossaire a une définition unique. En plus de définir le terme standard pour un concept, les synonymes ainsi que les termes associés (par exemple, les termes parent et enfant) peuvent être spécifiés. Des références peuvent être ajoutées aux actifs liés aux termes. De nouveaux termes peuvent être ajoutés ou mis à jour dans le glossaire. Les termes du glossaire peuvent être examinés par certains utilisateurs, qui peuvent accepter ou rejeter les termes.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "Vous avez fini la visite avec succès.",
"synonym-placeholder": "Pour ajouter un synonyme, tapez-le et appuyez sur Entrée",
"system-tag-delete-disable-message": "Supprimer un tag système n'est pas permis. Tentez plutôt de désactiver ce tag.",
"tag-update-confirmation": "Confirmez-vous vouloir ajouter un nouveau tag?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "Faites une visite guidée pour vous lancer!",
"team-moved-success": "L'équipe a été déplacée avec succès !",
"team-no-asset": "Votre équipe n'a pas d'actifs de données",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "קבע מטרות וקודקודים מפתיעים לקידום תרבות הנתונים של החברה שלך. קידום תרבות של שיפור רגעי עם דוחות זמינים לצפייה כדי למזער בריאות הנתונים.",
"get-started-with-open-metadata": "התחל עם OpenMetadata",
"glossary-tag-assignment-help-message": "You can either remove these assets or remove the conflicting tags from the assets, and try adding the tags again.",
"glossary-tag-update-description": "This action will apply the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Validation failed for the following data assets",
"glossary-tag-update-modal-title-validating": "Validating data assets",
"glossary-term-description": "כל מונח במילון מסביר כיצד הוא מזהה את עצמו. בנוסף להגדרת המונח התקנית עבור קונספט, ניתן לציין נרדפים ומונחים קשורים (לדוגמה, מונחים הורה וילד). יש להוסיף הפניות לנכסים הקשורים למונחים. ניתן להוסיף מונחים חדשים או לעדכן את המילון. ניתן לבדוק את המונחים במילון על ידי משתמשים מסויימים, שיכולים לקבל או לדחות את המונחים.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "סיימת בהצלחה את הסיור.",
"synonym-placeholder": "כדי להוסיף שם נרדף, פשוט הקלד אותו ולחץ Enter",
"system-tag-delete-disable-message": "מחיקת תגיות שנוצרו באופן מערכתי אינה מותרת. ניתן לנסות לנטרל את התג במקום.",
"tag-update-confirmation": "Would you like to proceed with adding a new tag?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "התחל סיור במוצר כדי להתחיל!",
"team-moved-success": "הקבוצה הועברה בהצלחה!",
"team-no-asset": "לקבוצתך אין נכסים.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@
"fosters-collaboration-among-producers-and-consumers": "Fosters collaboration among the producers and consumers of data.",
"get-started-with-open-metadata": "Get started with OpenMetadata",
"glossary-tag-assignment-help-message": "You can either remove these assets or remove the conflicting tags from the assets, and try adding the tags again.",
"glossary-tag-update-description": "This action will apply the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-description": "This action will update the tag to all Assets linked to the Glossary Term",
"glossary-tag-update-modal-title-failed": "Validation failed for the following data assets",
"glossary-tag-update-modal-title-validating": "Validating data assets",
"glossary-term-description": "Every term in the glossary has a unique definition. Along with defining the standard term for a concept, the synonyms as well as related terms (for e.g., parent and child terms) can be specified. References can be added to the assets related to the terms. New terms can be added or updated to the Glossary. The glossary terms can be reviewed by certain users, who can accept or reject the terms.",
Expand Down Expand Up @@ -1794,7 +1794,7 @@
"successfully-completed-the-tour": "あなたは無事ツアーを終了しました。",
"synonym-placeholder": "To add a synonym, simply type it in and press Enter",
"system-tag-delete-disable-message": "Deleting a system generated tags is not allowed. You can try disabling the tag instead.",
"tag-update-confirmation": "Would you like to proceed with adding a new tag?",
"tag-update-confirmation": "Would you like to proceed with updating the tags?",
"take-quick-product-tour": "Take a product tour to get started!",
"team-moved-success": "チームの移動が成功しました!",
"team-no-asset": "あなたのチームはアセットを持っていません。",
Expand Down
Loading

0 comments on commit c11e9c2

Please sign in to comment.