}
waitForElementVisibility(By.xpath(XpathSelector.DELETE_BTN.getXpath(attributeName))).click();
waitToBeClickable(By.xpath(XpathSelector.DELETE_ATTRIBUTE_CONFIRM_BTN.getXpath())).click();
- waitForElementInvisibility(By.xpath(XpathSelector.DELETE_BTN.getXpath(attributeName)), 5);
+ waitForElementInvisibility(By.xpath(XpathSelector.DELETE_BTN.getXpath(attributeName)), 10);
}
public void editAttribute(final AttributeData attributeData) {
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebElement;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.testng.Assert;
import java.io.File;
public class VspValidationPage extends GeneralPageElements {
+ private static final Logger LOGGER = LoggerFactory.getLogger(VspValidationPage.class);
+
private static final String ATTACHMENT_NAME_TEST_ID = ".//*[@data-test-id='validation-tree-node-name']";
private static final String VALIDATION_ERROR_COUNT = ".//*[@data-test-id='validation-error-count']";
private static final String VALIDATION_WARNING_COUNT = ".//*[@data-test-id='validation-warning-count']";
public static void navigateToVspAttachmentsValidationPage() {
GeneralUIUtils.clickOnElementByTestId(SOFTWARE_PRODUCT_ATTACHMENTS);
GeneralUIUtils.clickOnElementByTestId(ATTACHMENTS_TAB_VALIDATION);
+ GeneralUIUtils.ultimateWait();
}
private static boolean elementHasWarningCount(WebElement webElement) {
return true;
} catch (NoSuchElementException ex) {
return false;
+ } catch (Exception ex) {
+ LOGGER.warn("Unexpected exception while checking for warning count", ex);
+ return false;
}
}
return true;
} catch (NoSuchElementException ex) {
return false;
+ } catch (Exception ex) {
+ LOGGER.warn("Unexpected exception while checking for error count", ex);
+ return false;
}
}
private static boolean hasAttachmentFileExtension(WebElement webElement, String extension) {
- return webElement
- .findElement(By.xpath(ATTACHMENT_NAME_TEST_ID))
- .getText()
- .endsWith(extension);
+ try {
+ return webElement
+ .findElement(By.xpath(ATTACHMENT_NAME_TEST_ID))
+ .getText()
+ .endsWith(extension);
+ } catch (NoSuchElementException ex) {
+ return false;
+ } catch (Exception ex) {
+ LOGGER.warn("Unexpected exception while checking attachment file extension", ex);
+ return false;
+ }
}
private static List<WebElement> getChildElements(WebElement webElement) throws Exception {
-FROM onap/policy-jdk-alpine:2.4.4
+FROM python:3.11-alpine
+
+RUN addgroup sdc && \
+ adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc
+
+RUN apk add --no-cache wget && \
+ pip install --no-cache-dir cqlsh==6.2.1
-USER root
-RUN addgroup sdc
-RUN adduser --gecos "sdc sdc,1,1,1" --disabled-password --ingroup sdc --shell /bin/sh sdc
USER sdc
+
RUN mkdir ~/.cassandra/ && \
- echo '[cql]' > ~/.cassandra/cqlshrc && \
- echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
-USER root
+ echo '[cql]' > ~/.cassandra/cqlshrc && \
+ echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
-RUN set -ex && \
- for i in 1 2 3 4 5; do apk update && break || sleep 10; done && apk info > /dev/null && \
- pip3 install --upgrade 'pip<23' 'setuptools<66' wheel && \
- pip3 install cqlsh==6.1.0 && \
- command -v cqlsh && \
- mkdir ~/.cassandra/ && \
- echo '[cql]' > ~/.cassandra/cqlshrc && \
- echo 'version=3.4.4' >> ~/.cassandra/cqlshrc && \
- apk add --no-cache wget
+USER root
+RUN mkdir -p /root/.cassandra/ && \
+ echo '[cql]' > /root/.cassandra/cqlshrc && \
+ echo 'version=3.4.4' >> /root/.cassandra/cqlshrc
USER sdc