mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-24 00:48:36 +00:00
parent
51c1228b2a
commit
c0a0c04306
@ -66,8 +66,7 @@ public class WebhookResourceTest extends EntityResourceTest<Webhook> {
|
||||
}
|
||||
|
||||
@Test
|
||||
void post_webhookEnabledStateChange(TestInfo test)
|
||||
throws URISyntaxException, IOException, InterruptedException {
|
||||
void post_webhookEnabledStateChange(TestInfo test) throws URISyntaxException, IOException, InterruptedException {
|
||||
//
|
||||
// Create webhook in disabled state. It will not start webhook publisher
|
||||
//
|
||||
|
@ -216,8 +216,7 @@ public class DashboardServiceResourceTest extends EntityResourceTest<DashboardSe
|
||||
}
|
||||
|
||||
@Test
|
||||
void delete_ExistentDashboardService_as_admin_200(TestInfo test)
|
||||
throws HttpResponseException, URISyntaxException {
|
||||
void delete_ExistentDashboardService_as_admin_200(TestInfo test) throws HttpResponseException, URISyntaxException {
|
||||
Map<String, String> authHeaders = adminAuthHeaders();
|
||||
DashboardService dashboardService = createEntity(create(test), authHeaders);
|
||||
deleteEntity(dashboardService.getId(), authHeaders);
|
||||
|
@ -110,8 +110,7 @@ public class RoleResourceTest extends EntityResourceTest<Role> {
|
||||
}
|
||||
|
||||
@Test
|
||||
void patch_roleAttributes_as_non_admin_403(TestInfo test)
|
||||
throws HttpResponseException, JsonProcessingException {
|
||||
void patch_roleAttributes_as_non_admin_403(TestInfo test) throws HttpResponseException, JsonProcessingException {
|
||||
// Create table without any attributes
|
||||
Role role = createRole(create(test), adminAuthHeaders());
|
||||
// Patching as a non-admin should is disallowed
|
||||
|
@ -229,8 +229,7 @@ public class TeamResourceTest extends EntityResourceTest<Team> {
|
||||
// }
|
||||
|
||||
@Test
|
||||
void patch_teamAttributes_as_non_admin_403(TestInfo test)
|
||||
throws HttpResponseException, JsonProcessingException {
|
||||
void patch_teamAttributes_as_non_admin_403(TestInfo test) throws HttpResponseException, JsonProcessingException {
|
||||
// Create table without any attributes
|
||||
Team team = createTeam(create(test), adminAuthHeaders());
|
||||
// Patching as a non-admin should is disallowed
|
||||
|
@ -276,8 +276,7 @@ public class UserResourceTest extends EntityResourceTest<User> {
|
||||
* @see TableResourceTest also tests GET user returns owns list
|
||||
*/
|
||||
@Test
|
||||
void patch_userNameChange_as_another_user_401(TestInfo test)
|
||||
throws HttpResponseException, JsonProcessingException {
|
||||
void patch_userNameChange_as_another_user_401(TestInfo test) throws HttpResponseException, JsonProcessingException {
|
||||
// Ensure username can't be changed using patch
|
||||
User user =
|
||||
createUser(
|
||||
@ -305,8 +304,7 @@ public class UserResourceTest extends EntityResourceTest<User> {
|
||||
}
|
||||
|
||||
@Test
|
||||
void patch_userNameChange_as_same_user_200_ok(TestInfo test)
|
||||
throws HttpResponseException, JsonProcessingException {
|
||||
void patch_userNameChange_as_same_user_200_ok(TestInfo test) throws HttpResponseException, JsonProcessingException {
|
||||
// Ensure username can't be changed using patch
|
||||
User user =
|
||||
createUser(
|
||||
|
@ -166,9 +166,7 @@ public class PaginationAndFilterTest {
|
||||
Events.sendKeys(webDriver, By.cssSelector("[data-testid='searchBox']"), "dim_api_client");
|
||||
Events.click(webDriver, By.cssSelector("[data-testid='data-name']"));
|
||||
Thread.sleep(waitTime);
|
||||
actions
|
||||
.moveToElement(webDriver.findElement(By.xpath("//div[@data-testid='tag-conatiner']//span")))
|
||||
.perform();
|
||||
actions.moveToElement(webDriver.findElement(By.xpath("//div[@data-testid='tag-conatiner']//span"))).perform();
|
||||
Events.click(webDriver, By.xpath("//div[@data-testid='tag-conatiner']//span"));
|
||||
Events.click(webDriver, By.cssSelector("[data-testid='associatedTagName']"));
|
||||
for (int i = 0; i <= 4; i++) {
|
||||
@ -181,7 +179,10 @@ public class PaginationAndFilterTest {
|
||||
Events.click(webDriver, By.cssSelector("[data-testid='checkbox'][id='shopify']"));
|
||||
Thread.sleep(2000);
|
||||
Object filteredResults = webDriver.findElements(By.xpath("//div[@data-testid='search-results']/div")).size();
|
||||
String databaseCount = webDriver.findElement(By.xpath("//div[@data-testid='filter-container-shopify']//span[@data-testid='filter-count']")).getAttribute("innerHTML");
|
||||
String databaseCount =
|
||||
webDriver
|
||||
.findElement(By.xpath("//div[@data-testid='filter-container-shopify']//span[@data-testid='filter-count']"))
|
||||
.getAttribute("innerHTML");
|
||||
Assert.assertEquals(databaseCount, filteredResults);
|
||||
}
|
||||
|
||||
|
@ -200,8 +200,8 @@ public class MyDataPageTest {
|
||||
Events.click(webDriver, By.cssSelector("[data-testid='image']"));
|
||||
Thread.sleep(2000);
|
||||
try {
|
||||
WebElement spaceSearch = wait.until(ExpectedConditions.presenceOfElementLocated(
|
||||
By.cssSelector("[data-testid='Recently-Search- ']")));
|
||||
WebElement spaceSearch =
|
||||
wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("[data-testid='Recently-Search- ']")));
|
||||
if (spaceSearch.isDisplayed()) {
|
||||
throw new Exception("Spaces are captured in Recent Search");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user