Skip to content

Commit 40f35c1

Browse files
Aggregate APIs used on prod to provide targed for functional tests coverage
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent c651e34 commit 40f35c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/count_apis.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ then
88
echo "Example: $0 api-logs-prod.json"
99
exit 1
1010
fi
11-
N=10
11+
N=1
1212
if [ ! -z "${2}" ]
1313
then
1414
N="${2}"
@@ -24,14 +24,14 @@ jq -r '
2424
| sed -E 's#\.(png|svg|css|js|json|xml)$#.<asset>#g' \
2525
| sed -E 's#^/v[0-9]+/swagger\.<asset>$#/v*/swagger#g' \
2626
| sed -E 's#^/v[0-9]+/api-docs$#/v*/api-docs#g' \
27-
| sed -E 's#^/v[0-9]+/(api/)?graphql(\.php)?$#/v*/graphql#g' \
28-
| sed -E 's#^/v[0-9]+/graph(i)?ql(/.*)?$#/v*/graphiql#g' \
29-
| sed -E 's#^/v[0-9]+/(explorer|console|playground|altair)$#/v*/graphql-ui#g' \
30-
| sed -E 's#/([A-Za-z0-9]{5,8})(/|$)#/<shortid>\2#g' \
3127
| sed -E 's/[0-9a-fA-F-]{36}/<uuid>/g' \
3228
| sed -E ':a;s#/([0-9]{1,})(/|$)#/<id>\2#g;ta' \
3329
| sed -E 's#/(00|a0)[A-Za-z0-9]{13,16}(/|$)#/<sfid>\2#g' \
3430
| sed -E 's#/lf[A-Za-z0-9]{16,22}(/|$)#/<lfxid>\1#g' \
3531
| sed -E 's#/null(/|$)#/<null>\1#g' \
3632
| sort | uniq -c | sort -nr \
3733
| awk -v N="$N" '$1 >= N'
34+
# | sed -E 's#^/v[0-9]+/(api/)?graphql(\.php)?$#/v*/graphql#g' \
35+
# | sed -E 's#^/v[0-9]+/graph(i)?ql(/.*)?$#/v*/graphiql#g' \
36+
# | sed -E 's#^/v[0-9]+/(explorer|console|playground|altair)$#/v*/graphql-ui#g' \
37+
# | sed -E 's#/([A-Za-z0-9]{5,8})(/|$)#/<shortid>\2#g' \

0 commit comments

Comments
 (0)