Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akash-network/provider
/ functions
Functions
3,441 in github.com/akash-network/provider
⨍
Functions
3,441
◇
Types & classes
766
Function
TestAdjust_InterconnectGroup_TwoServicesOneEach_OneNode_Rejected
Same shape, but only one node. Both peers cannot land on it (anti-affinity would be unschedulable), so Adjust must reject.
cluster/kube/operators/clients/inventory/interconnect_group_adjust_test.go:144
Function
TestAdjust_InterconnectGroup_TwoServicesOneEach_TwoNodes_Success
Two services in pair0, count=1 each. 2 nodes, 8 GPUs each. Bid should succeed because each service can claim a distinct node.
cluster/kube/operators/clients/inventory/interconnect_group_adjust_test.go:132
Function
TestAllHostnames_KeepsDamagedProviderHostsReserved
Hostname reservations compare owner, dseq and gseq only. A ProviderHost whose spec does not yield a valid lease ID must neither abort provider startup
cluster/kube/client_hostname_connections_test.go:92
Function
TestAssign
(t *testing.T)
testutil/shard/shard_test.go:115
Function
TestAssignPlacesEveryItemOnceWithinBound
Every item lands on exactly one shard, in ascending order, and no shard that gets items ends more than one item above the average load.
testutil/shard/shard_test.go:182
Function
TestAssignRejectsInvalidInput
(t *testing.T)
testutil/shard/shard_test.go:244
Function
TestAttemptReclaimCloseBroadcastsWhenElapsed
(t *testing.T)
cluster/manager_reclaim_test.go:71
Function
TestAttemptReclaimCloseGatesOnBlockTimeNotWallClock
(t *testing.T)
cluster/manager_reclaim_test.go:91
Function
TestAttemptReclaimCloseRetriesOnBroadcastError
(t *testing.T)
cluster/manager_reclaim_test.go:113
Function
TestAttemptReclaimCloseSkipsWhileCatchingUp
(t *testing.T)
cluster/manager_reclaim_test.go:103
Function
TestAttestationSidecarEnvMock
(t *testing.T)
cmd/provider-services/cmd/attestation_env_test.go:25
Function
TestAttestationSidecarEnvPropagatesLogging
(t *testing.T)
cmd/provider-services/cmd/attestation_env_test.go:12
Function
TestAuthErrorResponseDoesNotLogHTTPErrors
(t *testing.T)
gateway/rest/auth_test.go:29
Function
TestAuthErrorResponseLogsUnknownError
(t *testing.T)
gateway/rest/auth_test.go:16
Function
TestAuthProcess_ErrAuthAmbiguous
(t *testing.T)
gateway/utils/utils_test.go:101
Function
TestAuthProcess_NoTokenReturnsClaims
(t *testing.T)
gateway/utils/utils_test.go:111
Function
TestBalanceCheckerBatchesWithdrawalsDueWhileOneIsPending
Leases that fall due while a withdrawal is pending wait for it, and are then withdrawn from together, in transactions of at most maxWithdrawBatch leas
balance_checker_test.go:1225
Function
TestBalanceCheckerClosesLeaseWithTerminalEscrow
The chain can leave a lease active after its escrow payment or account closed or was overdrawn, e.g. when the escrow hook skipped the lease. None of t
balance_checker_test.go:209
Function
TestBalanceCheckerDropsFailedBatchWithdrawalOfReplacedMonitor
The leases of a failed batch are each withdrawn from again alone. A lease removed and added again while it waits for that is monitored afresh: the wit
balance_checker_test.go:1462
Function
TestBalanceCheckerDropsQueuedWithdrawalOfClosedLease
A lease reported closed while its withdrawal waits is being torn down, so its withdrawal is not sent.
balance_checker_test.go:1334
Function
TestBalanceCheckerDropsQueuedWithdrawalOfRemovedLease
A lease removed while its withdrawal waits is being torn down, so its withdrawal is not sent.
balance_checker_test.go:1310
Function
TestBalanceCheckerDropsQueuedWithdrawalOfReplacedMonitor
A lease removed and added again while its withdrawal waits is monitored afresh: the withdrawal queued for its removed monitor is dropped, so the lease
balance_checker_test.go:1368
Function
TestBalanceCheckerExpiredTimer
(t *testing.T)
balance_checker_test.go:885
Function
TestBalanceCheckerIgnoresClosedEscrowForRemovedLease
Removing a lease's funds monitor means its teardown is already under way, so a closed-escrow withdrawal failure that arrives afterwards must not tear
balance_checker_test.go:687
Function
TestBalanceCheckerIgnoresClosedEscrowForReplacedMonitor
The result of a removed monitor's withdrawal is ignored, as for a removed lease, even when it finds the escrow closed: the lease's new monitor withdra
balance_checker_test.go:1519
Function
TestBalanceCheckerIgnoresLeaseReportedClosed
Once the checker has reported a lease closed, it no longer acts on the lease while the cluster removes it with LeaseRemoveFundsMonitor: not on its sch
balance_checker_test.go:786
Function
TestBalanceCheckerKeepsReplacedMonitorWithdrawalApart
The result of a removed monitor's withdrawal, success or failure, does not touch the lease's new monitor: while the new monitor's own withdrawal is pe
balance_checker_test.go:1400
Function
TestBalanceCheckerLogsWithdrawalsOffWithoutPeriod
Without a withdrawal period the checker says at startup that withdrawals are off: no withdrawal settles the escrow of a lease out of funds, so the cha
balance_checker_test.go:1107
Function
TestBalanceCheckerNeverWithdrawsWithoutWithdrawalPeriod
With --withdrawal-period=0 the balance checker only checks balances. A lease out of funds is checked again at every funds check, but never withdrawn f
balance_checker_test.go:1177
Function
TestBalanceCheckerPreservesNonterminalAndUncertainLeases
(t *testing.T)
balance_checker_test.go:45
Function
TestBalanceCheckerReclaimingLeaseFunds
(t *testing.T)
balance_checker_test.go:127
Function
TestBalanceCheckerReconcilesClosedLease
(t *testing.T)
balance_checker_test.go:278
Function
TestBalanceCheckerRetriesFailedWithdrawalAtNextCheck
A withdrawal that fails for any reason but a closed escrow is sent again at the lease's next funds check, instead of waiting for the next withdrawal p
balance_checker_test.go:1560
Function
TestBalanceCheckerRetryTearsDownAfterUncodedWithdrawFailure
Gas simulation strips the escrow code from a withdrawal failure, so the failure alone does not show that the escrow closed. The lease stays monitored,
balance_checker_test.go:728
Function
TestBalanceCheckerSchedulesNoWithdrawalOfLeaseFoundAtStartupWithoutPeriod
The first withdrawals of the leases found at startup are spread over the withdrawal period. Without a period none is scheduled for them either.
balance_checker_test.go:1203
Function
TestBalanceCheckerSendsEachLeaseOfFailedBatchAlone
A transaction succeeds or fails as a whole, so the leases of a failed batch are each withdrawn from again alone. Each lease then gets its own result:
balance_checker_test.go:1265
Function
TestBalanceCheckerSendsNoWithdrawalAfterStopping
Once the checker stops, a withdrawal not yet sent is dropped: the tx client would take it even on an ended context.
balance_checker_test.go:934
Function
TestBalanceCheckerSendsOneWithdrawalAtATime
While a withdrawal's broadcast is outstanding, the lease's funds checks go on, so a closed escrow is still noticed, but no other withdrawal is sent fo
balance_checker_test.go:605
Function
TestBalanceCheckerSpreadsWithdrawalsOfLeasesFoundAtStartup
The leases found at startup start monitoring together, so their first periodic withdrawals are spread over the withdrawal period instead of all fallin
balance_checker_test.go:1625
Function
TestBalanceCheckerStopsWaitingForWithdrawalOnClose
A withdrawal waiting on its broadcast stops waiting when the checker stops.
balance_checker_test.go:571
Function
TestBalanceCheckerWaitsForWithdrawalBroadcast
A withdrawal waits for its broadcast to finish, however long the tx queue holds it, so the checker acts on the outcome: a withdrawal that finds the es
balance_checker_test.go:541
Function
TestBalanceCheckerWithdrawFailure
A withdrawal that fails with the escrow code for a closed payment or account can never succeed, so the lease is torn down instead of retried. Failures
balance_checker_test.go:462
Function
TestBlockedDomain
(t *testing.T)
cluster/hostname_test.go:57
Function
TestBlockedHostname
(t *testing.T)
cluster/hostname_test.go:39
Function
TestBuildHTTPRouteSpecExtensionRef
TestBuildHTTPRouteSpecExtensionRef asserts the rule gains an ExtensionRef filter to the route's SnippetsFilter when http_options are set, and none whe
cluster/kube/gateway/nginx_gateway_test.go:145
Function
TestBuildRouteExtensionsSnippetsFilter
TestBuildRouteExtensionsSnippetsFilter asserts BuildRouteExtensions emits a SnippetsFilter named after the route carrying the snippet at the location
cluster/kube/gateway/nginx_gateway_test.go:120
Function
TestBuildSidecarPatch_CPUOnly
(t *testing.T)
cluster/kube/webhook/sidecar_test.go:162
Function
TestBuildSidecarPatch_EmptyImage
(t *testing.T)
cluster/kube/webhook/sidecar_test.go:186
Function
TestBuildSidecarPatch_GPU
(t *testing.T)
cluster/kube/webhook/sidecar_test.go:124
Function
TestCPUArchMatches
(t *testing.T)
cluster/types/v1beta3/clients/inventory/cpu_arch_test.go:79
Function
TestCertificatesStorage_MoveToArchive
(t *testing.T)
tools/certissuer/storage_test.go:20
Function
TestCertificatesStorage_MoveToArchive_ambiguousDomain
(t *testing.T)
tools/certissuer/storage_test.go:98
Function
TestCertificatesStorage_MoveToArchive_noFileRelatedToDomain
(t *testing.T)
tools/certissuer/storage_test.go:60
Function
TestCheckLeaseActiveArmsReclaimDeadline
TestCheckLeaseActiveArmsReclaimDeadline covers the restart path: a lease already reclaiming when the provider comes back still owns running workloads,
cluster/manager_reclaim_test.go:236
Function
TestCleanupRBACWhenPermissionsRemoved
(t *testing.T)
cluster/kube/cleanup_test.go:164
Function
TestCleanupStaleRBACResources
(t *testing.T)
cluster/kube/cleanup_test.go:19
Function
TestCleanupStaleRBACResourcesDoesNotDeleteNonAkashResources
(t *testing.T)
cluster/kube/cleanup_test.go:117
Function
TestCleanupStaleResourcesIntegration
(t *testing.T)
cluster/kube/cleanup_test.go:232
Function
TestClientExec
(t *testing.T)
cluster/kube/client_exec_test.go:174
Function
TestClientExecPodFailed
(t *testing.T)
cluster/kube/client_exec_test.go:282
Function
TestClientExecPodNotReady
(t *testing.T)
cluster/kube/client_exec_test.go:305
Function
TestClientExecPodNotRunning
(t *testing.T)
cluster/kube/client_exec_test.go:259
Function
TestClientExecTty
(t *testing.T)
cluster/kube/client_exec_test.go:197
Function
TestClientExecWrongPodIndex
(t *testing.T)
cluster/kube/client_exec_test.go:240
Function
TestClientExecWrongServiceName
(t *testing.T)
cluster/kube/client_exec_test.go:221
Function
TestClientObserveHostnameState_CancelReleasesBlockedProducer
Cancelling the observation must release a producer whose consumer stopped reading, and stop its watch.
cluster/kube/client_hostname_connections_test.go:193
Function
TestClientObserveHostnameState_SkipsUnconvertibleProviderHosts
A resource whose lease ID cannot be built must be skipped rather than emitted without a type.
cluster/kube/client_hostname_connections_test.go:152
Function
TestClientObserveHostnameState_WatchErrorEndsStream
A watch error event carries a *metav1.Status, not a ProviderHost. It must end the stream instead of panicking on the type assertion.
cluster/kube/client_hostname_connections_test.go:220
Function
TestClusterErrorToHTTP
(t *testing.T)
gateway/rest/cluster_errors_test.go:16
Function
TestConfigClusterStorage
(t *testing.T)
operator/inventory/config_test.go:33
Function
TestConfigClusterStorageAvailable
(t *testing.T)
operator/inventory/config_test.go:195
Function
TestConfigClusterStorageExclude
(t *testing.T)
operator/inventory/config_test.go:70
Function
TestConfigClusterStorageExclude2
(t *testing.T)
operator/inventory/config_test.go:109
Function
TestConfigClusterStorageNotListed
(t *testing.T)
operator/inventory/config_test.go:148
Function
TestConfigEmpty
(t *testing.T)
operator/inventory/config_test.go:10
Function
TestConfigEnv
(t *testing.T)
tools/logging/config_test.go:107
Function
TestConfigExcludeNode
(t *testing.T)
operator/inventory/config_test.go:168
Function
TestConfigFromEnvDefaults
(t *testing.T)
sidecar/attestation/internal/logging/logging_test.go:30
Function
TestConfigFromEnvInvalid
(t *testing.T)
sidecar/attestation/internal/logging/logging_test.go:66
Function
TestConfigFromEnvValues
(t *testing.T)
sidecar/attestation/internal/logging/logging_test.go:43
Function
TestConfigFromViper
(t *testing.T)
tools/logging/config_test.go:117
Function
TestCreateOrUpdateHTTPRouteAppliesFilterBeforeReference
TestCreateOrUpdateHTTPRouteAppliesFilterBeforeReference asserts a new route ends up referencing a SnippetsFilter that actually exists and is owned by
cluster/kube/gateway/httproute_test.go:113
Function
TestCreateOrUpdateHTTPRouteDoesNotDangleOnExtensionFailure
TestCreateOrUpdateHTTPRouteDoesNotDangleOnExtensionFailure asserts that when the SnippetsFilter cannot be applied, an existing route is not updated to
cluster/kube/gateway/httproute_test.go:137
Function
TestCreateOrUpdateHTTPRouteNewRoutePlaceholderNotRoutable
TestCreateOrUpdateHTTPRouteNewRoutePlaceholderNotRoutable asserts that when the SnippetsFilter cannot be applied for a brand-new route, the placeholde
cluster/kube/gateway/httproute_test.go:189
Method
TestDedicatedStorageClass
()
integration/persistentstorage_test.go:151
Function
TestDefaultErrorHandler
(t *testing.T)
gateway/rest/auth_test.go:38
Method
TestDefaultStorageClass
()
integration/customcurrency_test.go:31
Method
TestDefaultStorageClass
()
integration/persistentstorage_test.go:37
Function
TestDefaultTimestampIsSubSecond
Entries logged within the same second must stay ordered by their time field.
tools/logging/logger_test.go:41
Function
TestDefaultsConformance
(t *testing.T)
tools/logging/conformance_test.go:98
Function
TestDefaultsConformance
(t *testing.T)
sidecar/attestation/internal/logging/conformance_test.go:122
Function
TestDeploy
(t *testing.T)
cluster/kube/deploy_test.go:27
Function
TestDeployConnectsRoCENetworksToWorkloads
Exercise Deploy itself: independently testing NAD lookup and podAnnotations misses a broken connection between those helpers and the submitted workloa
cluster/kube/roce_networks_test.go:125
Function
TestDeployFailureLogsError
(t *testing.T)
cluster/kube/client_log_test.go:23
Function
TestDeploySetsEnvironmentVariables
(t *testing.T)
cluster/kube/builder/deployment_test.go:53
Function
TestDeploymentManagerCleansUpClosedLeaseOnRecovery
(t *testing.T)
cluster/manager_recovery_test.go:27
Function
TestDeploymentManagerDoesNotTreatMissingLeaseAsClosed
(t *testing.T)
cluster/manager_recovery_test.go:101
Function
TestDeploymentManagerLeaseState
(t *testing.T)
cluster/manager_recovery_test.go:117
Function
TestDeploymentManagerRetriesFailedTeardown
(t *testing.T)
cluster/manager_recovery_test.go:31
Function
TestDeploymentNeedsRoCENetworks
(t *testing.T)
cluster/kube/roce_networks_test.go:44
← previous
next →
2,601–2,700 of 3,441, ranked by callers