-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3f84c1
commit aab3608
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
import { describe, expect, it } from '@jest/globals'; | ||
import { ExasolExtension, NotFoundError } from '../api'; | ||
import { convertBaseExtension } from './index'; | ||
import { emptyBaseExtension } from './test-utils'; | ||
|
||
|
||
describe("index", () => { | ||
function testee(): ExasolExtension { | ||
const baseExtension = emptyBaseExtension() | ||
baseExtension.name = "test-ext" | ||
baseExtension.version = "v1" | ||
return convertBaseExtension(baseExtension) | ||
} | ||
|
||
describe("findInstances()", () => { | ||
it("is not supported", () => { | ||
expect(() => testee().findInstances(undefined, undefined)).toThrowError(new NotFoundError("Finding instances not supported")) | ||
}) | ||
}) | ||
|
||
describe("addInstance()", () => { | ||
it("is not supported", () => { | ||
expect(() => testee().addInstance(undefined, undefined, undefined)).toThrowError(new NotFoundError("Creating instances not supported")) | ||
}) | ||
}) | ||
|
||
describe("deleteInstance()", () => { | ||
it("is not supported", () => { | ||
expect(() => testee().deleteInstance(undefined, undefined, undefined)).toThrowError(new NotFoundError("Deleting instances not supported")) | ||
}) | ||
}) | ||
|
||
describe("getInstanceParameters()", () => { | ||
it("is not supported", () => { | ||
expect(() => testee().getInstanceParameters(undefined, undefined)).toThrowError(new NotFoundError("Creating instances not supported")) | ||
}) | ||
}) | ||
|
||
describe("readInstanceParameterValues()", () => { | ||
it("is not supported", () => { | ||
expect(() => testee().readInstanceParameterValues(undefined, undefined, undefined)).toThrowError(new NotFoundError("Reading instance parameter values not supported")) | ||
}) | ||
}) | ||
}) |