Skip to content

Commit

Permalink
refactor(pci-load-balancer): some refactor and trans folders rename
Browse files Browse the repository at this point in the history
Signed-off-by: LIDRISSI Hamid <[email protected]>
  • Loading branch information
seven-amid committed Oct 22, 2024
1 parent 4edf191 commit 06ae556
Show file tree
Hide file tree
Showing 252 changed files with 381 additions and 480 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from 'react';
import { render } from '@testing-library/react';
import { render, waitFor } from '@testing-library/react';
import { useNotifications, NotificationType } from './useNotifications';
import { Notifications } from './notifications.component';

Expand Down Expand Up @@ -37,11 +37,28 @@ describe('notifications component', () => {
expect(container.children[0].children[0].innerHTML).toBe('Notification-1');
expect(container.children[1].children[0].innerHTML).toBe('Notification-2');
});
it('should clear notifications', async () => {

it('should not clear notifications created within the last 1000ms', async () => {
let { container } = render(<Notifications />);
expect(container.children.length).not.toBe(0);
expect(container.children.length).toBe(2);

render(<ClearNotifications />);
container = render(<Notifications />).container;
expect(container.children.length).toBe(0);

expect(container.children.length).toBe(2);
});

it('should clear notifications older than 1000ms', async () => {
let { container } = render(<Notifications />);
expect(container.children.length).toBe(2);

await new Promise((resolve) => setTimeout(resolve, 2000));

render(<ClearNotifications />);
container = render(<Notifications />).container;

await waitFor(() => {
expect(container.children.length).toBe(0);
});
});
});

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"octavia_load_balancer_pools_name": "Name",
"octavia_load_balancer_pools_protocol": "Protokoll",
"octavia_load_balancer_pools_protocol_helper": "Das Protokoll, für das dieser Pool und seine Mitglieder überwachen.",
"octavia_load_balancer_pools_algorithm": "Algorithmus des Loadbalancers",
"octavia_load_balancer_pools_algorithm_helper": "Der Loadbalancer-Algorithmus, der den Traffic auf die Mitglieder des Pools verteilt.",
"octavia_load_balancer_pools_actions_edit": "Bearbeiten",
"octavia_load_balancer_pools_actions_manage_members": "Mitglieder verwalten",
"octavia_load_balancer_pools_actions_delete": "Löschen",
"octavia_load_balancer_pools_title": "Pools",
"octavia_load_balancer_pools_description_part_1": "Ein Pool steht für eine Gruppe von Mitgliedern, die für das Backend zuständig sind und eine gemeinsame Konfiguration haben, z. B. im Hinblick auf den Loadbalancer-Algorithmus, den Test oder die Konfiguration persistenter Sitzungen.",
"octavia_load_balancer_pools_description_part_2": "Entdecken Sie weitere Optionen über Horizon.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"octavia_load_balancer_pools_name": "Name",
"octavia_load_balancer_pools_protocol": "Protocol",
"octavia_load_balancer_pools_protocol_helper": "The protocol on which this pool and its members are listening.",
"octavia_load_balancer_pools_algorithm": "Load Balancer algorithm",
"octavia_load_balancer_pools_algorithm_helper": "The Load Balancer algorithm that distributes traffic between pool members.",
"octavia_load_balancer_pools_actions_edit": "Edit",
"octavia_load_balancer_pools_actions_manage_members": "Manage members",
"octavia_load_balancer_pools_actions_delete": "Delete",
"octavia_load_balancer_pools_title": "Pools",
"octavia_load_balancer_pools_description_part_1": "A pool is a group of back-end members that share a common configuration, such as the Load Balancer algorithm, probe, or persistent session configuration.",
"octavia_load_balancer_pools_description_part_2": "Explore additional options via Horizon.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"octavia_load_balancer_pools_name": "Nombre",
"octavia_load_balancer_pools_protocol": "Protocolo",
"octavia_load_balancer_pools_protocol_helper": "Protocolo por el que el pool y sus miembros escuchan.",
"octavia_load_balancer_pools_algorithm": "Algoritmo del Load Balancer",
"octavia_load_balancer_pools_algorithm_helper": "El algoritmo del Load Balancer que reparte el tráfico entre los miembros del pool.",
"octavia_load_balancer_pools_actions_edit": "Editar",
"octavia_load_balancer_pools_actions_manage_members": "Administrar los miembros",
"octavia_load_balancer_pools_actions_delete": "Eliminar",
"octavia_load_balancer_pools_title": "Pools",
"octavia_load_balancer_pools_description_part_1": "Un pool representa un grupo de miembros del back-end que tienen una configuración común, como el algoritmo del Load Balancer, la sonda o la configuración de sesiones permanentes.",
"octavia_load_balancer_pools_description_part_2": "Descubra opciones adicionales en Horizon.",
Expand Down
Loading

0 comments on commit 06ae556

Please sign in to comment.