Skip to content

Commit

Permalink
update utils
Browse files Browse the repository at this point in the history
Signed-off-by: James Struga <[email protected]>
  • Loading branch information
James Struga committed Oct 29, 2024
1 parent 106dc11 commit 6e54eb8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/FVTTests/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
} from './environment';
import { WebDriver, WebElement, By, until, Key } from 'selenium-webdriver';

export async function createTestPartitionedDataset() {
async function createTestPartitionedDataset() {
await deleteDataset(TEST_PARTITIONED_DATASET, true);
await createDataset({
primary: 300,
Expand All @@ -35,7 +35,7 @@ export async function createTestPartitionedDataset() {
});
}

export async function createTestSequentialDataset() {
async function createTestSequentialDataset() {
await deleteDataset(TEST_SEQUENTIAL_DATASET, true);
await createDataset({
primary: 300,
Expand Down Expand Up @@ -80,7 +80,7 @@ async function createDataset(requestBody: DatasetCreationParams) {
}
}

export async function createTestDatasetMember() {
async function createTestDatasetMember() {
const fullDatasetAndMemberName = `${TEST_PARTITIONED_DATASET}(${TEST_DATASET_MEMBER})`;
const response = await fetch(`https://${SERVER_HOST}:${SERVER_PORT}/ibmzosmf/api/v1/zosmf/restfiles/ds/${fullDatasetAndMemberName}`, {
method: 'PUT',
Expand All @@ -103,12 +103,12 @@ export async function createTestDatasetMember() {
}
}

export async function cleanupDatasets(failOk = false) {
async function cleanupDatasets(failOk = false) {
await deleteDataset(TEST_PARTITIONED_DATASET, true);
await deleteDataset(TEST_SEQUENTIAL_DATASET, true);
}

export async function deleteDataset(dataset: string, failOk = false) {
async function deleteDataset(dataset: string, failOk = false) {
const response = await fetch(`https://${SERVER_HOST}:${SERVER_PORT}/ibmzosmf/api/v1/zosmf/restfiles/ds/${dataset}`, {
method: 'DELETE',
headers: {
Expand All @@ -128,7 +128,7 @@ export async function deleteDataset(dataset: string, failOk = false) {
}
}

export async function editDatasetQualifierField(driver: WebDriver, searchQualifier: string) {
async function editDatasetQualifierField(driver: WebDriver, searchQualifier: string) {
const qualifierField: WebElement = await driver.findElement(By.id("datasets-qualifier-field"));
await qualifierField.clear();
await qualifierField.sendKeys(searchQualifier);
Expand Down

0 comments on commit 6e54eb8

Please sign in to comment.