Skip to content

Commit

Permalink
Update all remaining tests to no longer pass a payload param to MockR…
Browse files Browse the repository at this point in the history
…outer
  • Loading branch information
cee-chen committed Feb 4, 2021
1 parent 22f5665 commit 495fe39
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('analytics routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/app_search/engines/{engineName}/analytics/queries',
payload: 'query',
});

registerAnalyticsRoutes({
Expand Down Expand Up @@ -71,7 +70,6 @@ describe('analytics routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/app_search/engines/{engineName}/analytics/queries/{query}',
payload: 'query',
});

registerAnalyticsRoutes({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('credentials routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/app_search/credentials',
payload: 'query',
});

registerCredentialsRoutes({
Expand Down Expand Up @@ -54,7 +53,6 @@ describe('credentials routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/app_search/credentials',
payload: 'body',
});

registerCredentialsRoutes({
Expand Down Expand Up @@ -167,7 +165,6 @@ describe('credentials routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/app_search/credentials/details',
payload: 'query',
});

registerCredentialsRoutes({
Expand All @@ -191,7 +188,6 @@ describe('credentials routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/app_search/credentials/{name}',
payload: 'body',
});

registerCredentialsRoutes({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('documents routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/app_search/engines/{engineName}/documents',
payload: 'body',
});

registerDocumentsRoutes({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('engine routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/app_search/engines',
payload: 'query',
});

registerEnginesRoutes({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ describe('search settings routes', () => {
const mockRouter = new MockRouter({
method: 'put',
path: '/api/app_search/engines/{engineName}/search_settings',
payload: 'body',
});

beforeEach(() => {
Expand Down Expand Up @@ -149,7 +148,6 @@ describe('search settings routes', () => {
const mockRouter = new MockRouter({
method: 'post',
path: '/api/app_search/engines/{engineName}/search_settings_search',
payload: 'body',
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe('log settings routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/app_search/log_settings',
payload: 'body',
});

registerSettingsRoutes({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe('Enterprise Search Telemetry API', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/enterprise_search/stats',
payload: 'body',
});

registerTelemetryRoute({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/workplace_search/groups',
payload: 'query',
});

registerGroupsRoute({
Expand All @@ -50,7 +49,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/groups',
payload: 'body',
});

registerGroupsRoute({
Expand Down Expand Up @@ -85,7 +83,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/groups/search',
payload: 'body',
});

registerSearchGroupsRoute({
Expand Down Expand Up @@ -163,7 +160,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/groups/{id}',
payload: 'body',
});

registerGroupRoute({
Expand Down Expand Up @@ -246,7 +242,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/groups/{id}/share',
payload: 'body',
});

registerShareGroupRoute({
Expand Down Expand Up @@ -282,7 +277,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/groups/{id}/assign',
payload: 'body',
});

registerAssignGroupRoute({
Expand Down Expand Up @@ -318,7 +312,6 @@ describe('groups routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/groups/{id}/boosts',
payload: 'body',
});

registerBoostsGroupRoute({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('Overview route', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/workplace_search/overview',
payload: 'query',
});

registerOverviewRoute({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('security routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/workplace_search/org/security/source_restrictions',
payload: 'body',
});

registerSecuritySourceRestrictionsRoute({
Expand All @@ -72,7 +71,6 @@ describe('security routes', () => {
mockRouter = new MockRouter({
method: 'patch',
path: '/api/workplace_search/org/security/source_restrictions',
payload: 'body',
});

registerSecuritySourceRestrictionsRoute({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('settings routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/org/settings/customize',
payload: 'body',
});

registerOrgSettingsCustomizeRoute({
Expand Down Expand Up @@ -76,7 +75,6 @@ describe('settings routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/org/settings/oauth_application',
payload: 'body',
});

registerOrgSettingsOauthApplicationRoute({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/account/create_source',
payload: 'body',
});

registerAccountCreateSourceRoute({
Expand Down Expand Up @@ -194,7 +193,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/account/sources/{id}/documents',
payload: 'body',
});

registerAccountSourceDocumentsRoute({
Expand Down Expand Up @@ -281,7 +279,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'patch',
path: '/api/workplace_search/account/sources/{id}/settings',
payload: 'body',
});

registerAccountSourceSettingsRoute({
Expand Down Expand Up @@ -364,7 +361,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/account/sources/{id}/searchable',
payload: 'body',
});

registerAccountSourceSearchableRoute({
Expand Down Expand Up @@ -422,7 +418,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/account/sources/{id}/display_settings/config',
payload: 'body',
});

registerAccountSourceDisplaySettingsConfig({
Expand Down Expand Up @@ -489,7 +484,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/account/sources/{id}/schemas',
payload: 'body',
});

registerAccountSourceSchemasRoute({
Expand Down Expand Up @@ -667,7 +661,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/create_source',
payload: 'body',
});

registerOrgCreateSourceRoute({
Expand Down Expand Up @@ -707,7 +700,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/sources/{id}/documents',
payload: 'body',
});

registerOrgSourceDocumentsRoute({
Expand Down Expand Up @@ -794,7 +786,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'patch',
path: '/api/workplace_search/org/sources/{id}/settings',
payload: 'body',
});

registerOrgSourceSettingsRoute({
Expand Down Expand Up @@ -877,7 +868,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/org/sources/{id}/searchable',
payload: 'body',
});

registerOrgSourceSearchableRoute({
Expand Down Expand Up @@ -935,7 +925,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/sources/{id}/display_settings/config',
payload: 'body',
});

registerOrgSourceDisplaySettingsConfig({
Expand Down Expand Up @@ -1002,7 +991,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/sources/{id}/schemas',
payload: 'body',
});

registerOrgSourceSchemasRoute({
Expand Down Expand Up @@ -1102,7 +1090,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/settings/connectors',
payload: 'body',
});

registerOrgSourceOauthConfigurationsRoute({
Expand Down Expand Up @@ -1133,7 +1120,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/org/settings/connectors',
payload: 'body',
});

registerOrgSourceOauthConfigurationsRoute({
Expand Down Expand Up @@ -1187,7 +1173,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'post',
path: '/api/workplace_search/org/settings/connectors/{serviceType}',
payload: 'body',
});

registerOrgSourceOauthConfigurationRoute({
Expand Down Expand Up @@ -1218,7 +1203,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'put',
path: '/api/workplace_search/org/settings/connectors/{serviceType}',
payload: 'body',
});

registerOrgSourceOauthConfigurationRoute({
Expand Down Expand Up @@ -1272,7 +1256,6 @@ describe('sources routes', () => {
mockRouter = new MockRouter({
method: 'get',
path: '/api/workplace_search/sources/create',
payload: 'query',
});

registerOauthConnectorParamsRoute({
Expand Down

0 comments on commit 495fe39

Please sign in to comment.