-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #896 from areed/nameserver-web
Update web server type for kurl.nameserver
- Loading branch information
Showing
3 changed files
with
44 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,33 @@ | ||
import * as path from "path"; | ||
import {describe, it} from "mocha"; | ||
import {expect} from "chai"; | ||
import { KurlClient } from "./"; | ||
import { Installer } from "../installers"; | ||
|
||
const kurlURL = process.env.KURL_URL || "http://localhost:30092"; | ||
const client = new KurlClient(kurlURL); | ||
|
||
const spec = ` | ||
spec: | ||
kubernetes: | ||
version: latest | ||
weave: | ||
version: latest | ||
docker: | ||
version: latest | ||
kurl: | ||
nameserver: 8.8.8.8 | ||
`; | ||
|
||
describe("script with kurl config", () => { | ||
it("200", async () => { | ||
const uri = await client.postInstaller(spec); | ||
|
||
expect(uri).to.match(/dcd3038/); | ||
|
||
const script = await client.getInstallScript("dcd3038"); | ||
|
||
expect(script).to.match(new RegExp(`kurl:`)); | ||
expect(script).to.match(new RegExp(`nameserver: 8.8.8.8`)); | ||
}); | ||
}); |
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
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