bisakh

Untitled

Mar 8th, 2021
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 55.78 KB | None | 0 0
  1. 🔥➜ web git:(feat-plugin) npm run test:e2e        
  2. > apisix-dashboard@2.4.0 test:e2e /home/bisakh/Desktop/OSS/apisix-dashboard/web
  3. > start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-ci
  4.  
  5. 1: starting server using command "cross-env SERVE_ENV=test yarn start"
  6. and when url "[ 'http-get://localhost:8000' ]" is responding with HTTP status code 200
  7. running tests using command "npm run cypress:run-ci"
  8.  
  9. yarn run v1.22.10
  10. $ umi dev
  11. 🚀 Starting Umi UI using umi@3.3.7...
  12. 🌈 Umi UI mini Ready on port 3000.
  13. Starting the development server...
  14.  
  15. ● Webpack █████████████████████████ building (69%) 3182/3218
  16.  
  17. ● Webpack █████████████████████████ building (69%) 3186/3218
  18.  
  19. ● Webpack █████████████████████████ building (69%) 3194/3220
  20.  
  21.  
  22. ● Webpack █████████████████████████ building (69%) 3484/3530
  23.  modules 46 active                                ● Webpack █████████████████████████ building (69%) 3487/3530
  24.  
  25. ● Webpack █████████████████████████ building (69%)
  26. ● Webpack █████████████████████████ building (69%)
  27. ● Webpack █████████████████████████ building (69%)
  28. ✔ Webpack
  29.   Compiled successfully   in 50.01s
  30.  
  31.  DONE  Compiled successfully in 50011ms          00:59:59
  32.  
  33.  
  34.   App running at:
  35.   - Local:   http://localhost:8000 (copied to clipboard)
  36.   - Network: http://192.168.43.238:8000
  37.  
  38. > apisix-dashboard@2.4.0 cypress:run-ci /home/bisakh/Desktop/OSS/apisix-dashboard/web
  39. > CYPRESS_SERVE_ENV=test cypress run
  40.  
  41. It looks like this is your first time using Cypress: 6.4.0
  42.  
  43.   ✔  Verified Cypress!
  44. /home/bisakh/.cache/Cypre
  45. ss/6.4.0/Cypress
  46.  
  47. Opening Cypress...
  48.  
  49. =========================
  50.  
  51.   (Run Starting)
  52.  
  53.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  54.   │ Cypress:    6.4.0                                                                              │
  55.   │ Browser:    Electron 87 (headless)                                                             │
  56.   │ Specs:      19 found (consumer/create_and_delete_consumer.spec.js, lang/switch-language.spec.j │
  57.   │             s, metrics/metrics-smoketest.spec.js, plugin/create-edit-delete-plugin.spec.js, pl │
  58.   │             uginTemplate/create-edit-delete-plugin-template.spec.js, pluginTemplate/create-plu │
  59.   │             gin-templat...)                                                                    │
  60.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  61.  
  62.  
  63. ────────────────────────────────────────────────────────────────────────────────────────────────────
  64.                                                                                                    
  65.   Running:  consumer/create_and_delete_consumer.spec.js                                    (1 of 19)
  66.  
  67.  
  68.   Create and Delete Consumer
  69.     ✓ creates consumer with key-auth (6587ms)
  70.     ✓ should view the consumer (1907ms)
  71.     ✓ delete the consumer (1391ms)
  72.     ✓ creates consumer with wrong json (2664ms)
  73.  
  74.  
  75.   4 passing (13s)
  76.  
  77.  
  78.   (Results)
  79.  
  80.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  81.   │ Tests:        4                                                                                │
  82.   │ Passing:      4                                                                                │
  83.   │ Failing:      0                                                                                │
  84.   │ Pending:      0                                                                                │
  85.   │ Skipped:      0                                                                                │
  86.   │ Screenshots:  0                                                                                │
  87.   │ Video:        false                                                                            │
  88.   │ Duration:     13 seconds                                                                       │
  89.   │ Spec Ran:     consumer/create_and_delete_consumer.spec.js                                      │
  90.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  91.  
  92.  
  93. ────────────────────────────────────────────────────────────────────────────────────────────────────
  94.                                                                                                    
  95.   Running:  lang/switch-language.spec.js                                                   (2 of 19)
  96.  
  97.  
  98.   Switch language
  99.     ✓ should switch language (4775ms)
  100.  
  101.  
  102.   1 passing (5s)
  103.  
  104.  
  105.   (Results)
  106.  
  107.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  108.   │ Tests:        1                                                                                │
  109.   │ Passing:      1                                                                                │
  110.   │ Failing:      0                                                                                │
  111.   │ Pending:      0                                                                                │
  112.   │ Skipped:      0                                                                                │
  113.   │ Screenshots:  0                                                                                │
  114.   │ Video:        false                                                                            │
  115.   │ Duration:     5 seconds                                                                        │
  116.   │ Spec Ran:     lang/switch-language.spec.js                                                     │
  117.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  118.  
  119.  
  120. ────────────────────────────────────────────────────────────────────────────────────────────────────
  121.                                                                                                    
  122.   Running:  metrics/metrics-smoketest.spec.js                                              (3 of 19)
  123.  
  124.  
  125.   metrics page smoke test
  126.     ✓ should visit metrics page (1921ms)
  127.  
  128.  
  129.   1 passing (2s)
  130.  
  131.  
  132.   (Results)
  133.  
  134.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  135.   │ Tests:        1                                                                                │
  136.   │ Passing:      1                                                                                │
  137.   │ Failing:      0                                                                                │
  138.   │ Pending:      0                                                                                │
  139.   │ Skipped:      0                                                                                │
  140.   │ Screenshots:  0                                                                                │
  141.   │ Video:        false                                                                            │
  142.   │ Duration:     2 seconds                                                                        │
  143.   │ Spec Ran:     metrics/metrics-smoketest.spec.js                                                │
  144.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  145.  
  146.  
  147. ────────────────────────────────────────────────────────────────────────────────────────────────────
  148.                                                                                                    
  149.   Running:  plugin/create-edit-delete-plugin.spec.js                                       (4 of 19)
  150.  
  151.  
  152.   Create and Delete Plugin List
  153.  
  154.  
  155.  
  156.     ✓ should visit plugin market (987266ms)
  157.     ✓ should edit the plugin (2299ms)
  158.     ✓ should delete plugin list (12040ms)
  159.  
  160.  
  161.   3 passing (17m)
  162.  
  163.  
  164.   (Results)
  165.  
  166.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  167.   │ Tests:        3                                                                                │
  168.   │ Passing:      3                                                                                │
  169.   │ Failing:      0                                                                                │
  170.   │ Pending:      0                                                                                │
  171.   │ Skipped:      0                                                                                │
  172.   │ Screenshots:  0                                                                                │
  173.   │ Video:        false                                                                            │
  174.   │ Duration:     16 minutes, 43 seconds                                                           │
  175.   │ Spec Ran:     plugin/create-edit-delete-plugin.spec.js                                         │
  176.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  177.  
  178.  
  179. ────────────────────────────────────────────────────────────────────────────────────────────────────
  180.                                                                                                    
  181.   Running:  pluginTemplate/create-edit-delete-plugin-template.spec.js                      (5 of 19)
  182.  
  183.  
  184.   Create Edit and Delete PluginTemplate
  185.     ✓ should create pluginTemplate (5338ms)
  186.     ✓ should edit the pluginTemplate (3203ms)
  187.     ✓ should delete pluginTemplate (3172ms)
  188.  
  189.  
  190.   3 passing (12s)
  191.  
  192.  
  193.   (Results)
  194.  
  195.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  196.   │ Tests:        3                                                                                │
  197.   │ Passing:      3                                                                                │
  198.   │ Failing:      0                                                                                │
  199.   │ Pending:      0                                                                                │
  200.   │ Skipped:      0                                                                                │
  201.   │ Screenshots:  0                                                                                │
  202.   │ Video:        false                                                                            │
  203.   │ Duration:     12 seconds                                                                       │
  204.   │ Spec Ran:     pluginTemplate/create-edit-delete-plugin-template.spec.js                        │
  205.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  206.  
  207.  
  208. ────────────────────────────────────────────────────────────────────────────────────────────────────
  209.                                                                                                    
  210.   Running:  pluginTemplate/create-plugin-template-with-route.spec.js                       (6 of 19)
  211.  
  212.  
  213.   Create PluginTemplate Binding To Route
  214.     ✓ should create test pluginTemplate (8915ms)
  215.     ✓ should delete the pluginTemplate failure (2332ms)
  216.     ✓ should edit the route with pluginTemplate (3929ms)
  217.     ✓ should delete the pluginTemplate successfully (3855ms)
  218.  
  219.  
  220.   4 passing (20s)
  221.  
  222.  
  223.   (Results)
  224.  
  225.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  226.   │ Tests:        4                                                                                │
  227.   │ Passing:      4                                                                                │
  228.   │ Failing:      0                                                                                │
  229.   │ Pending:      0                                                                                │
  230.   │ Skipped:      0                                                                                │
  231.   │ Screenshots:  0                                                                                │
  232.   │ Video:        false                                                                            │
  233.   │ Duration:     20 seconds                                                                       │
  234.   │ Spec Ran:     pluginTemplate/create-plugin-template-with-route.spec.js                         │
  235.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  236.  
  237.  
  238. ────────────────────────────────────────────────────────────────────────────────────────────────────
  239.                                                                                                    
  240.   Running:  route/can-skip-upstream-when-select-service-id.spec.js                         (7 of 19)
  241.  
  242.  
  243.   Can select service_id skip upstream in route
  244.     ✓ should create test upstream and service (6610ms)
  245.     ✓ should skip upstream module after service is selected when creating route (4651ms)
  246.     ✓ should skip upstream module after service is selected when editing route (3786ms)
  247.     ✓ should delete upstream, service and route (4574ms)
  248.  
  249.  
  250.   4 passing (21s)
  251.  
  252.  
  253.   (Results)
  254.  
  255.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  256.   │ Tests:        4                                                                                │
  257.   │ Passing:      4                                                                                │
  258.   │ Failing:      0                                                                                │
  259.   │ Pending:      0                                                                                │
  260.   │ Skipped:      0                                                                                │
  261.   │ Screenshots:  0                                                                                │
  262.   │ Video:        false                                                                            │
  263.   │ Duration:     20 seconds                                                                       │
  264.   │ Spec Ran:     route/can-skip-upstream-when-select-service-id.spec.js                           │
  265.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  266.  
  267.  
  268. ────────────────────────────────────────────────────────────────────────────────────────────────────
  269.                                                                                                    
  270.   Running:  route/create-edit-delete-route.spec.js                                         (8 of 19)
  271.  
  272.  
  273.   Create and Delete Route
  274.     ✓ should create route (11372ms)
  275.     ✓ should view the route (2510ms)
  276.     ✓ should edit the route (5444ms)
  277.     ✓ should delete the route (2037ms)
  278.  
  279.  
  280.   4 passing (22s)
  281.  
  282.  
  283.   (Results)
  284.  
  285.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  286.   │ Tests:        4                                                                                │
  287.   │ Passing:      4                                                                                │
  288.   │ Failing:      0                                                                                │
  289.   │ Pending:      0                                                                                │
  290.   │ Skipped:      0                                                                                │
  291.   │ Screenshots:  0                                                                                │
  292.   │ Video:        false                                                                            │
  293.   │ Duration:     22 seconds                                                                       │
  294.   │ Spec Ran:     route/create-edit-delete-route.spec.js                                           │
  295.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  296.  
  297.  
  298. ────────────────────────────────────────────────────────────────────────────────────────────────────
  299.                                                                                                    
  300.   Running:  route/create-route-with-upstream.spec.js                                       (9 of 19)
  301.  
  302.  
  303.   Create Route with Upstream
  304.     ✓ should create an upstream (3951ms)
  305.     ✓ should create route with upstream just created (5084ms)
  306.     ✓ should edit this route with upstream (6312ms)
  307.     ✓ should delete this test route and upstream (3239ms)
  308.  
  309.  
  310.   4 passing (20s)
  311.  
  312.  
  313.   (Results)
  314.  
  315.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  316.   │ Tests:        4                                                                                │
  317.   │ Passing:      4                                                                                │
  318.   │ Failing:      0                                                                                │
  319.   │ Pending:      0                                                                                │
  320.   │ Skipped:      0                                                                                │
  321.   │ Screenshots:  0                                                                                │
  322.   │ Video:        false                                                                            │
  323.   │ Duration:     19 seconds                                                                       │
  324.   │ Spec Ran:     route/create-route-with-upstream.spec.js                                         │
  325.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  326.  
  327.  
  328. ────────────────────────────────────────────────────────────────────────────────────────────────────
  329.                                                                                                    
  330.   Running:  route/import_export_route.spec.js                                             (10 of 19)
  331.  
  332.  
  333.   import and export routes
  334.     ✓ should create route1 and route2 (11066ms)
  335.     ✓ should export route: route_name_0, route_name_1 (3166ms)
  336.     ✓ should delete the route (2274ms)
  337.     ✓ should import route(s) from be test files (7642ms)
  338.  
  339.  
  340.   4 passing (25s)
  341.  
  342.  
  343.   (Results)
  344.  
  345.   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  346.   │ Tests:        4                                                                                │
  347.   │ Passing:      4                                                                                │
  348.   │ Failing:      0                                                                                │
  349.   │ Pending:      0                                                                                │
  350.   │ Skipped:      0                                                                                │
  351.   │ Screenshots:  0                                                                                │
  352.   │ Video:        false                                                                            │
  353.   │ Duration:     25 seconds                                                                       │
  354.   │ Spec Ran:     route/import_export_route.spec.js                                                │
  355.   └────────────────────────────────────────────────────────────────────────────────────────────────┘
  356.  
  357.  
  358. ────────────────────────────────────────────────────────────────────────────────────────────────────
  359.                                                                                                    
  360.   Running:  route/online-debug.spec.js                                                    (11 of 19)
  361.  
  362.  
  363.   Online debug
  364. [HPM] Error occurred while trying to proxy request /apisix/admin/debug-request-forwarding from localhost:8000 to http://localhost:9000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
  365. [HPM] Error occurred while trying to proxy request /apisix/admin/debug-request-forwarding from localhost:8000 to http://localhost:9000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
  366.  
Advertisement
Add Comment
Please, Sign In to add comment