Skip to content

Commit c8d5a7c

Browse files
committed
refactor(sandbox): refactor auth ms basic example
refactor auth ms basic example g
1 parent f4e9690 commit c8d5a7c

File tree

82 files changed

+484
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+484
-249
lines changed

sandbox/auth-basic-login-signup-example/Dockerfile

Lines changed: 0 additions & 88 deletions
This file was deleted.

sandbox/auth-basic-login-signup-example/src/providers/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

sandbox/auth-basic-login-signup-example/.eslintignore renamed to sandbox/auth-ms-basic-example/.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
dist/
33
coverage/
44
.eslintrc.js
5-
mochawesome-report
5+
mochawesome-report
6+
migrations/

sandbox/auth-basic-login-signup-example/.eslintrc.js renamed to sandbox/auth-ms-basic-example/.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ module.exports = {
44
'no-extra-boolean-cast': 'off',
55
'@typescript-eslint/interface-name-prefix': 'off',
66
'no-prototype-builtins': 'off',
7-
'no-await-in-loop': 'error'
7+
'no-await-in-loop': 'error',
88
},
99
parserOptions: {
1010
project: './tsconfig.json',
1111
tsconfigRootDir: __dirname,
1212
},
13-
};
13+
};

sandbox/auth-ms-basic-example/mochawesome-report/assets/app.css

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandbox/auth-ms-basic-example/mochawesome-report/assets/app.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
object-assign
3+
(c) Sindre Sorhus
4+
@license MIT
5+
*/
6+
7+
/*!
8+
Copyright (c) 2017 Jed Watson.
9+
Licensed under the MIT License (MIT), see
10+
http://jedwatson.github.io/classnames
11+
*/
12+
13+
/*! *****************************************************************************
14+
Copyright (c) Microsoft Corporation. All rights reserved.
15+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
16+
this file except in compliance with the License. You may obtain a copy of the
17+
License at http://www.apache.org/licenses/LICENSE-2.0
18+
19+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
21+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
22+
MERCHANTABLITY OR NON-INFRINGEMENT.
23+
24+
See the Apache Version 2.0 License for specific language governing permissions
25+
and limitations under the License.
26+
***************************************************************************** */
27+
28+
/*! mochawesome-report-generator 6.2.0 | https://github.com/adamgruber/mochawesome-report-generator */
29+
30+
/** @license React v0.19.1
31+
* scheduler.production.min.js
32+
*
33+
* Copyright (c) Facebook, Inc. and its affiliates.
34+
*
35+
* This source code is licensed under the MIT license found in the
36+
* LICENSE file in the root directory of this source tree.
37+
*/
38+
39+
/** @license React v16.13.1
40+
* react-dom.production.min.js
41+
*
42+
* Copyright (c) Facebook, Inc. and its affiliates.
43+
*
44+
* This source code is licensed under the MIT license found in the
45+
* LICENSE file in the root directory of this source tree.
46+
*/
47+
48+
/** @license React v16.13.1
49+
* react.production.min.js
50+
*
51+
* Copyright (c) Facebook, Inc. and its affiliates.
52+
*
53+
* This source code is licensed under the MIT license found in the
54+
* LICENSE file in the root directory of this source tree.
55+
*/
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!doctype html>
2+
<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>

0 commit comments

Comments
 (0)