Skip to content

Commit

Permalink
fix: use APIGEE_X_HOSTNAME env var
Browse files Browse the repository at this point in the history
  • Loading branch information
micovery committed Oct 31, 2024
1 parent 69521db commit 1eb0d1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions references/openapi-mock/test/response-mocker.int.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const request = require('supertest');
const fs = require('fs');
const { expect, test, describe, beforeEach } = require('@jest/globals');
const {setMockedResponse} = require("../apiproxy/resources/jsc/response-mocker");
const APIGEE_X_HOST= process.env.APIGEE_X_HOST;
const APIGEE_X_HOSTNAME= process.env.APIGEE_X_HOSTNAME;
const BASE_PATH = `/mock/v3/petstore`


Expand All @@ -30,8 +30,8 @@ let PROXY_URL;
describe("response-mocker-int", () => {

beforeEach(() => {
expect(APIGEE_X_HOST).toBeDefined();
PROXY_URL=`https://${APIGEE_X_HOST}${BASE_PATH}`
expect(APIGEE_X_HOSTNAME).toBeDefined();
PROXY_URL=`https://${APIGEE_X_HOSTNAME}${BASE_PATH}`
});

test('get /pet/findByStatus (mock-status: null, accept: null) | pre-defined example/json', async () => {
Expand Down

0 comments on commit 1eb0d1a

Please sign in to comment.