@squiz/dxp-cli-next 5.31.0-develop.1 → 5.31.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,7 +77,7 @@ const createActivateCommand = () => {
|
|
|
77
77
|
}
|
|
78
78
|
(0, utils_1.logDebug)(`PUT ${apiUrl}`);
|
|
79
79
|
const activateInstanceAndDeploySchemaResponse = (yield apiService.client
|
|
80
|
-
.put(apiUrl, {
|
|
80
|
+
.put(apiUrl, undefined, {
|
|
81
81
|
headers: Object.assign({ 'Content-Type': 'application/json' }, (!hasRegion && { 'x-dxp-tenant': tenant })),
|
|
82
82
|
})
|
|
83
83
|
.catch((err) => {
|
|
@@ -102,7 +102,7 @@ describe('cdpInstanceCommand', () => {
|
|
|
102
102
|
axios_1.default.create.mockReturnValue(mockedAxiosInstance);
|
|
103
103
|
const program = (0, activate_1.default)();
|
|
104
104
|
yield program.parseAsync((0, utils_1.createMockActivateArgs)(region));
|
|
105
|
-
expect(mockedAxiosInstance.put).toHaveBeenCalledWith(`http://localhost:9999/__dxp/${region}/scv-deploy/${mockTenant}`, {
|
|
105
|
+
expect(mockedAxiosInstance.put).toHaveBeenCalledWith(`http://localhost:9999/__dxp/${region}/scv-deploy/${mockTenant}`, undefined, {
|
|
106
106
|
headers: {
|
|
107
107
|
'Content-Type': 'application/json',
|
|
108
108
|
},
|
|
@@ -138,7 +138,7 @@ describe('cdpInstanceCommand', () => {
|
|
|
138
138
|
axios_1.default.create.mockReturnValue(mockedAxios);
|
|
139
139
|
const program = (0, activate_1.default)();
|
|
140
140
|
yield program.parseAsync((0, utils_1.createMockActivateArgs)(region));
|
|
141
|
-
expect(mockedAxios.put).toHaveBeenCalledWith(`http://localhost:9999/__dxp/${region}/scv-deploy/${mockTenant}`, {
|
|
141
|
+
expect(mockedAxios.put).toHaveBeenCalledWith(`http://localhost:9999/__dxp/${region}/scv-deploy/${mockTenant}`, undefined, {
|
|
142
142
|
headers: {
|
|
143
143
|
'Content-Type': 'application/json',
|
|
144
144
|
},
|
|
@@ -207,7 +207,7 @@ describe('cdpInstanceCommand', () => {
|
|
|
207
207
|
expect(`${mockDomain}${mockPath}`).toEqual(mockDomainWithPath);
|
|
208
208
|
const program = (0, activate_1.default)();
|
|
209
209
|
yield program.parseAsync(createMockArgs());
|
|
210
|
-
expect(mockedAxiosInstance.put).toHaveBeenCalledWith('http://localhost:9999/__dxp/service/scv-deploy', {
|
|
210
|
+
expect(mockedAxiosInstance.put).toHaveBeenCalledWith('http://localhost:9999/__dxp/service/scv-deploy', undefined, {
|
|
211
211
|
headers: {
|
|
212
212
|
'Content-Type': 'application/json',
|
|
213
213
|
'x-dxp-tenant': 'myTenant',
|
|
@@ -248,7 +248,7 @@ describe('cdpInstanceCommand', () => {
|
|
|
248
248
|
expect(`${mockDomain}${mockPath}`).toEqual(mockDomainWithPath);
|
|
249
249
|
const program = (0, activate_1.default)();
|
|
250
250
|
yield program.parseAsync(createMockArgs());
|
|
251
|
-
expect(mockedAxios.put).toHaveBeenCalledWith('http://localhost:9999/__dxp/service/scv-deploy', {
|
|
251
|
+
expect(mockedAxios.put).toHaveBeenCalledWith('http://localhost:9999/__dxp/service/scv-deploy', undefined, {
|
|
252
252
|
headers: {
|
|
253
253
|
'Content-Type': 'application/json',
|
|
254
254
|
'x-dxp-tenant': 'myTenant',
|