SunnyBoy-WYH opened a new pull request, #2360:
URL: https://github.com/apache/incubator-hugegraph/pull/2360

   …x arthas odd test
   
   <!-- 
     Thank you very much for contributing to Apache HugeGraph, we are happy 
that you want to help us improve it!
   
     Here are some tips for you:
       1. If this is your first time, please read the [contributing 
guidelines](https://github.com/apache/hugegraph/blob/master/CONTRIBUTING.md)
   
       2. If a PR fix/close an issue, type the message "close xxx" (xxx is the 
link of related 
   issue) in the content, GitHub will auto link it (Required)
   
       3. Name the PR title in "Google Commit Format", start with "feat | fix | 
perf | refactor | doc | chore", 
         such like: "feat(core): support the PageRank algorithm" or "fix: wrong 
break in the compute loop" (module is optional)
         skip it if you are unsure about which is the best component.
   
       4. One PR address one issue, better not to mix up multiple issues.
   
       5. Put an `x` in the `[ ]` to mark the item as CHECKED. `[x]` (or click 
it directly after 
   published)
   -->
   
   ## Purpose of the PR
   swagger support auth for standardAuth mode and try to fix arthas odd test
   - close #xxx  <!-- or use "fix #xxx", "xxx" is the ID-link of related issue, 
e.g: close #1024 -->
   
   <!--
   Please explain more context in this section, clarify why the changes are 
needed. 
   e.g:
   - If you propose a new API, clarify the use case for a new API.
   - If you fix a bug, you can clarify why it is a bug, and should be 
associated with an issue.
   -->
   
   ## Main Changes
   1. add swagger auth annoation.
   2. set openapi.json to whitelist.
   3. try to simplify arthas test,try to fix the odd test failed case.
   
   
   ## Verifying these changes
   
   no auth model,we can try it out in swagger:
   <img width="1019" alt="24fbd7022f9f6a3ff361442ab6477bb" 
src="https://github.com/apache/incubator-hugegraph/assets/48077841/7f015d36-824c-48a5-ac8f-3a556e89b9ef";>
    auth model,we cant try it out in swagger:
   <img width="1026" alt="1d4bec0ddee89e86e5eef603b021dd1" 
src="https://github.com/apache/incubator-hugegraph/assets/48077841/88ccb3cb-6b79-4af3-9366-0499f91c33a1";>
   after set auth info,success:
   <img width="527" alt="9c4b6f83e3c7e7ef4b02cad243f50b3" 
src="https://github.com/apache/incubator-hugegraph/assets/48077841/979169e1-9ab1-47c0-80bc-7c1a9802a04e";>
   
   <img width="936" alt="559b6f513d241a487f3d903c682d283" 
src="https://github.com/apache/incubator-hugegraph/assets/48077841/6ebbd7d8-777d-4c57-b23b-e81535dac188";>
   
   <!-- Please pick the proper options below -->
   
   - [ ] Trivial rework / code cleanup without any test coverage. (No Need)
   - [ ] Already covered by existing tests, such as *(please modify tests 
here)*.
   - [ ] Need tests and can be verified as follows:
       - xxx
   
   ## Does this PR potentially affect the following parts?
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ]  Nope
   - [ ]  Dependencies (add/update license info) <!-- Don't forget to 
add/update the info in "LICENSE" & "NOTICE" files (both in root & dist module) 
-->
   - [ ]  Modify configurations
   - [ ]  The public API
   - [ ]  Other affects (typed here)
   
   ## Documentation Status
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ]  `Doc - TODO` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ]  `Doc - Done` <!-- Related docs have been already added or updated -->
   - [ ]  `Doc - No Need` <!-- Your PR changes don't impact/need docs -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to