Skip to content

Commit

Permalink
refactor(sandbox): refactor auth ms basic example
Browse files Browse the repository at this point in the history
refactor auth ms basic example

g
  • Loading branch information
Tyagi-Sunny committed Jan 28, 2025
1 parent f4e9690 commit c8d5a7c
Show file tree
Hide file tree
Showing 82 changed files with 484 additions and 249 deletions.
88 changes: 0 additions & 88 deletions sandbox/auth-basic-login-signup-example/Dockerfile

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
dist/
coverage/
.eslintrc.js
mochawesome-report
mochawesome-report
migrations/
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ module.exports = {
'no-extra-boolean-cast': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'no-prototype-builtins': 'off',
'no-await-in-loop': 'error'
'no-await-in-loop': 'error',
},
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
};
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions sandbox/auth-ms-basic-example/mochawesome-report/assets/app.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */

/*! mochawesome-report-generator 6.2.0 | https://github.com/adamgruber/mochawesome-report-generator */

/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:2,&quot;tests&quot;:3,&quot;passes&quot;:3,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-01-28T16:15:58.529Z&quot;,&quot;end&quot;:&quot;2025-01-28T16:15:58.860Z&quot;,&quot;duration&quot;:331,&quot;testsRegistered&quot;:3,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;4310987d-52a2-4c3b-b315-33799d8cb954&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;4a2d4874-8175-42f6-b513-d5aa2e00a091&quot;,&quot;title&quot;:&quot;HomePage&quot;,&quot;fullFile&quot;:&quot;/home/sunny.tyagi/Desktop/loopback4-microservice-catalog/sandbox/auth-ms-basic-example/dist/__tests__/acceptance/home-page.acceptance.js&quot;,&quot;file&quot;:&quot;/dist/__tests__/acceptance/home-page.acceptance.js&quot;,&quot;beforeHooks&quot;:[{&quot;title&quot;:&quot;\&quot;before all\&quot; hook: setupApplication in \&quot;HomePage\&quot;&quot;,&quot;fullTitle&quot;:&quot;HomePage \&quot;before all\&quot; hook: setupApplication in \&quot;HomePage\&quot;&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:209,&quot;pass&quot;:false,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;({ app, client } = await (0, test_helper_1.setupApplication)());&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;8d2d3beb-b725-4f0f-885d-a013367d3525&quot;,&quot;parentUUID&quot;:&quot;4a2d4874-8175-42f6-b513-d5aa2e00a091&quot;,&quot;isHook&quot;:true,&quot;skipped&quot;:false}],&quot;afterHooks&quot;:[{&quot;title&quot;:&quot;\&quot;after all\&quot; hook in \&quot;HomePage\&quot;&quot;,&quot;fullTitle&quot;:&quot;HomePage \&quot;after all\&quot; hook in \&quot;HomePage\&quot;&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:1,&quot;pass&quot;:false,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;await app.stop();&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;51d322f5-0bfc-42f9-a9b6-625bda6d3d27&quot;,&quot;parentUUID&quot;:&quot;4a2d4874-8175-42f6-b513-d5aa2e00a091&quot;,&quot;isHook&quot;:true,&quot;skipped&quot;:false}],&quot;tests&quot;:[{&quot;title&quot;:&quot;exposes a default home page&quot;,&quot;fullTitle&quot;:&quot;HomePage exposes a default home page&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:49,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;medium&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;await client\n .get(&#x27;/&#x27;)\n .expect(200)\n .expect(&#x27;Content-Type&#x27;, /text\\/html/);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;818c03f0-c547-453a-a8af-d73067c21422&quot;,&quot;parentUUID&quot;:&quot;4a2d4874-8175-42f6-b513-d5aa2e00a091&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;exposes self-hosted explorer&quot;,&quot;fullTitle&quot;:&quot;HomePage exposes self-hosted explorer&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:12,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;await client\n .get(&#x27;/explorer/&#x27;)\n .expect(200)\n .expect(&#x27;Content-Type&#x27;, /text\\/html/)\n .expect(/&lt;title&gt;LoopBack API Explorer/);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;9d0fac57-11cf-462e-9ba3-62e64c1568a3&quot;,&quot;parentUUID&quot;:&quot;4a2d4874-8175-42f6-b513-d5aa2e00a091&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;818c03f0-c547-453a-a8af-d73067c21422&quot;,&quot;9d0fac57-11cf-462e-9ba3-62e64c1568a3&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:61,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000},{&quot;uuid&quot;:&quot;e6264d9d-4cb4-4f30-8f42-3e82446e732a&quot;,&quot;title&quot;:&quot;PingController&quot;,&quot;fullFile&quot;:&quot;/home/sunny.tyagi/Desktop/loopback4-microservice-catalog/sandbox/auth-ms-basic-example/dist/__tests__/acceptance/ping.controller.acceptance.js&quot;,&quot;file&quot;:&quot;/dist/__tests__/acceptance/ping.controller.acceptance.js&quot;,&quot;beforeHooks&quot;:[{&quot;title&quot;:&quot;\&quot;before all\&quot; hook: setupApplication in \&quot;PingController\&quot;&quot;,&quot;fullTitle&quot;:&quot;PingController \&quot;before all\&quot; hook: setupApplication in \&quot;PingController\&quot;&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:34,&quot;pass&quot;:false,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;({ app, client } = await (0, test_helper_1.setupApplication)());&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;33bcffa2-0b35-4997-954b-5d2a5d7b1409&quot;,&quot;parentUUID&quot;:&quot;e6264d9d-4cb4-4f30-8f42-3e82446e732a&quot;,&quot;isHook&quot;:true,&quot;skipped&quot;:false}],&quot;afterHooks&quot;:[{&quot;title&quot;:&quot;\&quot;after all\&quot; hook in \&quot;PingController\&quot;&quot;,&quot;fullTitle&quot;:&quot;PingController \&quot;after all\&quot; hook in \&quot;PingController\&quot;&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:1,&quot;pass&quot;:false,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;await app.stop();&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;27ec5e4d-ff7c-4d37-986a-5d6ea8e8b88d&quot;,&quot;parentUUID&quot;:&quot;e6264d9d-4cb4-4f30-8f42-3e82446e732a&quot;,&quot;isHook&quot;:true,&quot;skipped&quot;:false}],&quot;tests&quot;:[{&quot;title&quot;:&quot;invokes GET /ping&quot;,&quot;fullTitle&quot;:&quot;PingController invokes GET /ping&quot;,&quot;timedOut&quot;:false,&quot;duration&quot;:14,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;const res = await client.get(&#x27;/ping?msg=world&#x27;).expect(200);\n(0, testlab_1.expect)(res.body).to.containEql({ greeting: &#x27;Hello from LoopBack&#x27; });&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;51fb9cdc-b8e8-4dec-b1a9-f00769de4ee7&quot;,&quot;parentUUID&quot;:&quot;e6264d9d-4cb4-4f30-8f42-3e82446e732a&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;51fb9cdc-b8e8-4dec-b1a9-f00769de4ee7&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:14,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;11.1.0&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;mochawesome-report&quot;,&quot;reportTitle&quot;:&quot;auth-ms-basic-example&quot;,&quot;reportPageTitle&quot;:&quot;Mochawesome Report&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:true,&quot;timestamp&quot;:false,&quot;ts&quot;:false,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;mochawesome-report/assets&quot;,&quot;jsonFile&quot;:&quot;/home/sunny.tyagi/Desktop/loopback4-microservice-catalog/sandbox/auth-ms-basic-example/mochawesome-report/mochawesome.json&quot;,&quot;htmlFile&quot;:&quot;/home/sunny.tyagi/Desktop/loopback4-microservice-catalog/sandbox/auth-ms-basic-example/mochawesome-report/mochawesome.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
Loading

0 comments on commit c8d5a7c

Please sign in to comment.