Live video on the AT Protocol
1package config
2
3import (
4 "testing"
5
6 "github.com/stretchr/testify/assert"
7)
8
9func TestAdaptFlags(t *testing.T) {
10 for _, pair := range pairs {
11 assert.Equal(t, pair[1], ToSnakeCase(pair[0]))
12 }
13}
14
15var pairs = [][]string{
16 {"aiMinRunnerVersion", "ai-min-runner-version"},
17 {"aiModels", "ai-models"},
18 {"aiModelsDir", "ai-models-dir"},
19 {"aiProcessingRetryTimeout", "ai-processing-retry-timeout"},
20 {"aiRunnerContainersPerGPU", "ai-runner-containers-per-gpu"},
21 {"aiRunnerImage", "ai-runner-image"},
22 {"aiRunnerImageOverrides", "ai-runner-image-overrides"},
23 {"aiServiceRegistry", "ai-service-registry"},
24 {"aiVerboseLogs", "ai-verbose-logs"},
25 {"aiWorker", "ai-worker"},
26 {"authWebhookUrl", "auth-webhook-url"},
27 {"autoAdjustPrice", "auto-adjust-price"},
28 {"blockPollingInterval", "block-polling-interval"},
29 {"broadcaster", "broadcaster"},
30 {"cliAddr", "cli-addr"},
31 {"currentManifest", "current-manifest"},
32 {"dataDir", "data-dir"},
33 {"datadir", "datadir"},
34 {"depositMultiplier", "deposit-multiplier"},
35 {"discoveryTimeout", "discovery-timeout"},
36 {"ethAcctAddr", "eth-acct-addr"},
37 {"ethController", "eth-controller"},
38 {"ethKeystorePath", "eth-keystore-path"},
39 {"ethOrchAddr", "eth-orch-addr"},
40 {"ethPassword", "eth-password"},
41 {"ethUrl", "eth-url"},
42 {"gasLimit", "gas-limit"},
43 {"gateway", "gateway"},
44 {"gatewayHost", "gateway-host"},
45 {"hevcDecoding", "hevc-decoding"},
46 {"httpAddr", "http-addr"},
47 {"httpIngest", "http-ingest"},
48 {"ignoreMaxPriceIfNeeded", "ignore-max-price-if-needed"},
49 {"initializeRound", "initialize-round"},
50 {"initializeRoundMaxDelay", "initialize-round-max-delay"},
51 {"kafkaBootstrapServers", "kafka-bootstrap-servers"},
52 {"kafkaGatewayTopic", "kafka-gateway-topic"},
53 {"kafkaPassword", "kafka-password"},
54 {"kafkaUser", "kafka-user"},
55 {"liveAIAuthApiKey", "live-ai-auth-api-key"},
56 {"liveAIAuthWebhookUrl", "live-ai-auth-webhook-url"},
57 {"liveAICapRefreshModels", "live-ai-cap-refresh-models"},
58 {"liveAITrickleHostForRunner", "live-ai-trickle-host-for-runner"},
59 {"liveOutSegmentTimeout", "live-out-segment-timeout"},
60 {"livePaymentInterval", "live-payment-interval"},
61 {"localVerify", "local-verify"},
62 {"maxAttempts", "max-attempts"},
63 {"maxFaceValue", "max-face-value"},
64 {"maxGasPrice", "max-gas-price"},
65 {"maxPricePerCapability", "max-price-per-capability"},
66 {"maxPricePerUnit", "max-price-per-unit"},
67 {"maxSessions", "max-sessions"},
68 {"maxTicketEV", "max-ticket-ev"},
69 {"maxTotalEV", "max-total-ev"},
70 {"maxTransactionReplacements", "max-transaction-replacements"},
71 {"mediaMTXApiPassword", "media-mtx-api-password"},
72 {"metadataAmqpExchange", "metadata-amqp-exchange"},
73 {"metadataPublishTimeout", "metadata-publish-timeout"},
74 {"metadataQueueUri", "metadata-queue-uri"},
75 {"metricsClientIP", "metrics-client-ip"},
76 {"metricsPerStream", "metrics-per-stream"},
77 {"minGasPrice", "min-gas-price"},
78 {"minPerfScore", "min-perf-score"},
79 {"monitor", "monitor"},
80 {"netint", "netint"},
81 {"network", "network"},
82 {"nvidia", "nvidia"},
83 {"objectStore", "object-store"},
84 {"orchAddr", "orch-addr"},
85 {"orchBlocklist", "orch-blocklist"},
86 {"orchMinLivepeerVersion", "orch-min-livepeer-version"},
87 {"orchPerfStatsUrl", "orch-perf-stats-url"},
88 {"orchSecret", "orch-secret"},
89 {"orchWebhookUrl", "orch-webhook-url"},
90 {"orchestrator", "orchestrator"},
91 {"pixelsPerUnit", "pixels-per-unit"},
92 {"priceFeedAddr", "price-feed-addr"},
93 {"pricePerBroadcaster", "price-per-broadcaster"},
94 {"pricePerGateway", "price-per-gateway"},
95 {"pricePerUnit", "price-per-unit"},
96 {"recordStore", "record-store"},
97 {"redeemer", "redeemer"},
98 {"redeemerAddr", "redeemer-addr"},
99 {"region", "region"},
100 {"reward", "reward"},
101 {"rtmpAddr", "rtmp-addr"},
102 {"selectPriceExpFactor", "select-price-exp-factor"},
103 {"selectPriceWeight", "select-price-weight"},
104 {"selectRandFreq", "select-rand-freq"},
105 {"selectStakeWeight", "select-stake-weight"},
106 {"serviceAddr", "service-addr"},
107 {"startupAvailabilityCheck", "startup-availability-check"},
108 {"testTranscoder", "test-transcoder"},
109 {"ticketEV", "ticket-ev"},
110 {"transactionTimeout", "transaction-timeout"},
111 {"transcoder", "transcoder"},
112 {"transcodingOptions", "transcoding-options"},
113 {"verifierPath", "verifier-path"},
114 {"verifierUrl", "verifier-url"},
115}