4409063550e6c4cc87cfd37f92f7b8db2699f885
hiram
  Fri Mar 13 17:13:14 2026 -0700
with the aid of claude add a genome argument to the ucscGenomes endpoint and manage assembly alias a bit more than previously for ucscGenomes and genarkGenomes refs #35972

diff --git src/hg/hubApi/tests/makefile src/hg/hubApi/tests/makefile
index 8689174f808..95603d31479 100644
--- src/hg/hubApi/tests/makefile
+++ src/hg/hubApi/tests/makefile
@@ -21,31 +21,31 @@
 
 hgwdev::
 	SERVERNAME="https://api-test.gi.ucsc.edu" make test
 
 alpha::
 	SERVERNAME="https://genome-test.gi.ucsc.edu" make test
 
 beta::
 	SERVERNAME="https://apibeta.soe.ucsc.edu" make test
 
 all:: test0 listFunctions getFunctions listSchema getSequence wigData \
 	search supportedTypes errorTests notSupported bugReports
 
 listFunctions: list01 list02 list04 list05 list06 list07 list08 \
 	list10 list11 list12 list13 list14 list15 list16 list17 list18 \
-	list20 list21 list23 list24 list25 list27 list28 list29 \
+	list20 list21 list23 list24 list25 list27 list27b list27c list28 list29 \
 	list30 list31 list32
 
 getFunctions: test8 test9 test10 test11 test12 test13 test14 \
 	test15 test16 test19 test21 test26 test27 test28 \
 	test29 test39 test40 test42 test43 test44 test45 test46 test47 \
 	test48 test49 test50 test51 test52 test53 test54 test55 test56 test57 \
 	test58 test59 multiTrack01
 
 findGenome: findGenome01
 
 listSchema: schema01 schema02 schema03 schema04 schema05 schema06 schema07 \
 	schema08 schema09 schema10 schema11 schema12
 
 getSequence: getSeq01 getSeq02 getSeq03 getSeq04 getSeq05 getSeq06 getSeq07
 
@@ -254,30 +254,42 @@
 	@ curl -L "${SERVERNAME}/list/files?genome=ce2;maxItemsOutput=5;format=text" 2> /dev/null | egrep -v "${excludeLines}" | sed -e 's#https://.*/list#/list#;  s#/hubs/.*/hub#/hubs/hub#;' | gzip -c > testOutput/$@.gz
 	@zdiff expected/$@.gz testOutput/$@.gz
 
 # testing /list/genarkGenomes
 #list26: setOutput
 #	@printf "### $@ '${SERVERNAME}/list/genarkGenomes?maxItemsOutput=5'\n"
 #	@./jsonConsumer.pl -maxItemsOutput=5  -serverName="${SERVERNAME}" -endpoint="/list/genarkGenomes" 2>&1 | egrep -v "${excludeLines}|totalAssemblies" | sed -e 's#https://.*/list#/list#;  s#/hubs/.*/hub#/hubs/hub#;' | gzip -c > testOutput/$@.gz
 	#@zdiff expected/$@.gz testOutput/$@.gz
 
 # testing /list/genarkGenomes verify existence of genome GCA_000002765.3
 list27: setOutput
 	@printf "### $@ '${SERVERNAME}/list/genarkGenomes?genome=GCA_000002765.3;maxItemsOutput=5'\n"
 	@./jsonConsumer.pl -genome=GCA_000002765.3 -maxItemsOutput=5  -serverName="${SERVERNAME}" -endpoint="/list/genarkGenomes" 2>&1 | egrep -v "${excludeLines}|totalAssemblies" | sed -e 's#https://.*/list#/list#;  s#/hubs/.*/hub#/hubs/hub#;' | gzip -c > testOutput/$@.gz
 	@zdiff expected/$@.gz testOutput/$@.gz
 
+# testing /list/genarkGenomes verify existence of genome GCF_000001405.40
+list27b: setOutput
+	@printf "### $@ '${SERVERNAME}/list/genarkGenomes?genome=GCF_000001405.40;maxItemsOutput=5'\n"
+	@./jsonConsumer.pl -genome=GCF_000001405.40 -maxItemsOutput=5  -serverName="${SERVERNAME}" -endpoint="/list/genarkGenomes" 2>&1 | egrep -v "${excludeLines}|totalAssemblies" | sed -e 's#https://.*/list#/list#;  s#/hubs/.*/hub#/hubs/hub#;' | gzip -c > testOutput/$@.gz
+	@zdiff expected/$@.gz testOutput/$@.gz
+
+# testing /list/ucscGenomes verify existence of genome GCF_000001405.40
+list27c: setOutput
+	@printf "### $@ '${SERVERNAME}/list/ucscGenomes?genome=GCF_000001405.40'\n"
+	@./jsonConsumer.pl -genome=GCF_000001405.40 -serverName="${SERVERNAME}" -endpoint="/list/ucscGenomes" 2>&1 | egrep -v "${excludeLines}|totalAssemblies" | sed -e 's#https://.*/list#/list#;  s#/hubs/.*/hub#/hubs/hub#;' | gzip -c > testOutput/$@.gz
+	@zdiff expected/$@.gz testOutput/$@.gz
+
 # testing /list/tracks?genome=GCA_001698545.1 without hubUrl
 list28: setOutput
 	@printf "### $@ '${SERVERNAME}/list/tracks?genome=GCA_001698545.1'\n"
 	@./jsonConsumer.pl -serverName="${SERVERNAME}" -endpoint="/list/tracks" -genome="GCA_001698545.1" 2>&1 | egrep -v "${excludeLines}" | egrep -v "dateTime" | sed -e 's#https://.*/list#/list#;'  | gzip -c > testOutput/$@.gz
 	@zdiff expected/$@.gz testOutput/$@.gz
 
 # testing /list/tracks?genome=GCA_001698545.1 with hubUrl
 list29: setOutput
 	@printf "### $@ '${SERVERNAME}/list/tracks?genome=GCA_001698545.1;hubUrl=https://hgdownload.soe.ucsc.edu/hubs/GCA/001/698/545/GCA_001698545.1/hub.txt'\n"
 	@./jsonConsumer.pl -serverName="${SERVERNAME}" -endpoint="/list/tracks" -genome="GCA_001698545.1" -hubUrl="https://hgdownload.soe.ucsc.edu/hubs/GCA/001/698/545/GCA_001698545.1/hub.txt" 2>&1 | egrep -v "${excludeLines}" | egrep -v "dateTime" | sed -e 's#https://.*/list#/list#;'  | gzip -c > testOutput/$@.gz
 	@zdiff expected/$@.gz testOutput/$@.gz
 
 # testing /list/chromosomes?genome=GCA_021951015.1 without hubUrl
 list30: setOutput
 	@printf "### $@ '${SERVERNAME}/list/chromosomes?genome=GCA_021951015.1'\n"