-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove redundant link Signed-off-by: Simeon Widdis <[email protected]> * Add local repository testing Signed-off-by: Simeon Widdis <[email protected]> --------- Signed-off-by: Simeon Widdis <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
22 changes: 22 additions & 0 deletions
22
server/adaptors/integrations/__test__/local_repository.test.ts
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,22 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { Repository } from '../repository/repository'; | ||
import { Integration } from '../repository/integration'; | ||
import path from 'path'; | ||
|
||
describe("The local repository", () => { | ||
it("Should pass shallow validation for all local integrations.", async () => { | ||
let repository: Repository = new Repository(path.join(__dirname, '../__data__/repository')); | ||
let integrations: Integration[] = await repository.getIntegrationList(); | ||
await Promise.all(integrations.map(i => expect(i.check()).resolves.toBeTruthy())); | ||
}); | ||
|
||
it("Should pass deep validation for all local integrations.", async () => { | ||
let repository: Repository = new Repository(path.join(__dirname, '../__data__/repository')); | ||
let integrations: Integration[] = await repository.getIntegrationList(); | ||
await Promise.all(integrations.map(i => expect(i.deepCheck()).resolves.toBeTruthy())); | ||
}); | ||
}); |