@hpcc-js/comms
Version:
hpcc-js - Communications
23 lines (19 loc) • 899 B
text/typescript
import { expect } from "chai";
import { Connection, DFUXRefService } from "../index.node";
describe("DFUXRefService", () => {
it("basic", () => {
expect(DFUXRefService).to.exist;
});
it.skip("directories", async () => {
const dfuXRefService = new DFUXRefService(new Connection({ baseUrl: "https://play.hpccsystems.com:18010/", rejectUnauthorized: false }));
expect(dfuXRefService).to.exist;
const xrefNodes = await dfuXRefService.DFUXRefList().then(response => {
expect(response.DFUXRefListResult).to.exist;
expect(response.DFUXRefListResult.XRefNode).to.have.length;
return response.DFUXRefListResult.XRefNode;
});
await dfuXRefService.DFUXRefDirectories({ Cluster: xrefNodes[0].Name }).then(response => {
expect(response.DFUXRefDirectoriesQueryResult).to.exist;
});
});
});