python - 标签在蝗虫中没有响应
问题描述
我有两个挑战:
- 我正在尝试使用
--tags
但docker-compose.yml
它不起作用,这是一个片段
@tag('get_all_themes')
@task
def get_all_themes(self):
self.client.get('/atlasnextgen/public-api/v1/themas',
headers={"Authorization": f"Basic {auth}"})
@tag('get_themes_uuid')
@task
def get_themes_by_uuid(self):
self.client.get(f'/atlasnextgen/public-api/v1/themas/{uuid}',
headers={"Authorization": f"Basic {auth}"})
docker-compose.yml 中的命令是:-f /mnt/locust/public_apis/themes.py --master -u 50 -r 10 -t 60s --headless --print-stats --csv /mnt/locust/reports/csv/result_for --csv-full-history --html /mnt/locust/reports/html/docker_loadtest_result.html --tags get_all_themes
请问我做错了什么?
- 如何在 docker-compose 文件中运行命令,以便每个命令使用特定标签?
解决方案
推荐阅读
- embedded-linux - 部署嵌入式 linux 应用程序的最佳方式是什么?
- angular - 是否有任何方法或其他方法可以使用离子收听来电?
- pyspark - 如何使用 spark 数据帧(python/pyspark)从 csv 文件中跳过不需要的标题
- cmd - Xcopy 错误:参数数量无效
- java - Java 代码遍历 json 对象并更新 Json 对象中的多个值
- c - C发送虚拟整数作为没有变量定义的引用指针
- node.js - Node.js 反向代理背后的 ArangoDB Web 界面 - 无法连接
- node.js - 有没有办法修复从 Laravel 到 nodejs/expressjs 客户端的 CORS api 调用?
- c - 如何使用 mbedTLS 库或 openssl 检查证书是 CA 或用户证书
- android - 更改改造响应时,Mediator Live 数据未更新