Code Monkey home page Code Monkey logo

lunarlink's Issues

增加生成单接口测试用例的功能

1.一个全新的平台,无论是使用swagger 接口导入还是使用yapi 导入, 导入的都只是接口, 由单接口而需要产生的测试用例并没有, 光导入了接口, 然后单接口的测试用例还是要自己一个个的拖拉拽去生成, 这一步的操作反而更浪费时间

2.另外默认的状态码校验这个是否支持全局配置 配置,举例,系统只要接口通了 http码就是200 ,但是实际可能是根据响应的data 里面的code 去判断是否业务有异常

1里面的步骤暂时可能需要使用已有的系统添加的接口去写代码 先生成一波
2. 这个可能是要对导入yapi 时进行修改源代码进行校验的修改

yapi导入异常

使用rabbitmq 链接失败, 将celery 的后端broker 改成redis 的链接成功,redis 中也可以看到相关的信息,

 INFO [pid:31004] [basehttp.py->log_message:161] "POST /api/lunarlink/yapi/1 HTTP/1.1" 200 149
2024-04-09 09:23:52,401 [none] django.server INFO [pid:31004] [basehttp.py->log_message:161] "OPTIONS /api/lunarlink/tree/1?type=1 HTTP/1.1" 200 0
2024-04-09 09:23:52,714 [d0795e6da284401991b3af8049b8185c] lunarlink.utils.decorator INFO [pid:31004] [decorator.py->inner_wrapper:32] before process request params:
{
    "type": "1"
}
2024-04-09 09:23:52.715 | INFO     | crud.crud_helper:get_or_create:43 - input get_or_create=Relation, filter_kwargs={'project_id': 1, 'type': 1}, defaults={'tree': [{'id': 1, 'label': '默认目录', 'children': []}], 'project_id': 1}
2024-04-09 09:23:52.750 | INFO     | lunarlink.services.tree_service_impl:get_or_create:49 - tree exist project_id=1 type=1
2024-04-09 09:23:52,847 [d0795e6da284401991b3af8049b8185c] django.server INFO [pid:31004] [basehttp.py->log_message:161] "GET /api/lunarlink/tree/1?type=1 HTTP/1.1" 200 166
2024-04-09 09:23:52,423  INFO  [pid:38720] [celery.worker.strategy strategy.py->task_message_handler:161] Task lunarlink.tasks.async_import_yapi_api[2e0dd4f2-ebbb-4dd9-a507-3afbc8f1b81f] received[2024-04-09 09:23:54,145: INFO/SpawnPoolWorker-27] child process 22544 calling self.run()

另外windows下rotation 写00:00 会报错 ,且需要加 enqueue=True
最后yapi 导入接口 还是没有
image

运行迁移命令报错,大佬给看下呗

django.setup()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/init.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/log.py", line 75, in configure_logging
logging_config_func(logging_settings)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 795, in dictConfig
dictConfigClass(config).configure()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 549, in configure
'filter %r: %s' % (name, e))
ValueError: Unable to configure filter 'request_id': Cannot resolve 'log_request_id.filters.RequestIDFilter': No module named 'log_request_id'
macdeMacBook-Pro-6:backend mac$

能否提供showdoc的导入呢?

showdoc是和yapi类似的接口管理平台,目前项目中使用showdoc做文档管理,请问作者有计划接入showdoc的导入吗?

接口录制

如果项目部署在服务器上,想要录制我浏览器上的请求需要怎么配置呢? ip填服务器的ip, 端口填7778 ? 本地录制还是远端呢? 本地还会启动一个vpn 用于访问内网私有域名

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.