Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Feb 22, 2024
1 parent 259fca3 commit efa8935
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions dist/clusters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ describe('upgradeCluster', () => {
const mockServer = mockttp.getLocal();
const apiClient = new configuration_1.VendorPortalApi();
apiClient.apiToken = "abcd1234";
apiClient.endpoint = "http://localhost:30880";
beforeEach(async () => {
mockServer.start(30880);
await mockServer.start();
apiClient.endpoint = `http://localhost:${mockServer.port}`;
});
afterEach(async () => {
mockServer.stop();
Expand All @@ -151,9 +151,9 @@ describe('pollForCluster', () => {
const mockServer = mockttp.getLocal();
const apiClient = new configuration_1.VendorPortalApi();
apiClient.apiToken = "abcd1234";
apiClient.endpoint = "http://localhost:30880";
beforeEach(async () => {
mockServer.start(30880);
await mockServer.start();
apiClient.endpoint = `http://localhost:${mockServer.port}`;
});
afterEach(async () => {
mockServer.stop();
Expand Down
12 changes: 7 additions & 5 deletions pacts/npm_consumer-vp_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@
"providerState": "cluster created",
"request": {
"body": {
"kubernetes_distribution": "kind",
"kubernetes_version": "v1.25.1",
"kubernetes_distribution": "eks",
"kubernetes_version": "v1.29",
"name": "cluster1",
"tags": [
"node_groups": [
{
"key": "foo",
"value": "bar"
"disk_gib": 100,
"instance_type": "r1.medium",
"name": "foo",
"node_count": 3
}
],
"ttl": "10m"
Expand Down
8 changes: 4 additions & 4 deletions src/clusters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ describe('upgradeCluster', () => {
const mockServer = mockttp.getLocal();
const apiClient = new VendorPortalApi();
apiClient.apiToken = "abcd1234";
apiClient.endpoint = "http://localhost:30880";


beforeEach(async () => {
mockServer.start(30880);
await mockServer.start();
apiClient.endpoint = `http://localhost:${mockServer.port}`;
});

afterEach(async () => {
Expand All @@ -174,10 +174,10 @@ describe('pollForCluster', () => {
const mockServer = mockttp.getLocal();
const apiClient = new VendorPortalApi();
apiClient.apiToken = "abcd1234";
apiClient.endpoint = "http://localhost:30880";

beforeEach(async () => {
mockServer.start(30880);
await mockServer.start();
apiClient.endpoint = `http://localhost:${mockServer.port}`;
});

afterEach(async () => {
Expand Down

0 comments on commit efa8935

Please sign in to comment.