Skip to content

Commit

Permalink
updating chainlink-common dependency and updating test cases IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablolagreca committed Nov 11, 2024
1 parent 1b60d1e commit 76e7db7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions core/services/relay/evm/evmtesting/bindings_test_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const contractName = "ChainReaderTester"
func WrapContractReaderTesterWithBindings(t *testing.T, wrapped *EVMChainComponentsInterfaceTester[*testing.T]) interfacetests.ChainComponentsInterfaceTester[*testing.T] {
//Tests not yet supported by EVM bindings.
wrapped.DisableTests([]string{
interfacetests.GetLatestValueAsValuesDotValue, interfacetests.GetLatestValueNoArgumentsAndPrimitiveReturnAsValuesDotValue, interfacetests.GetLatestValueNoArgumentsAndSliceReturnAsValueDotValue,
interfacetests.GetLatestValueGetsLatestForEvent, interfacetests.GetLatestValueBasedOnConfidenceLevelForEvent,
interfacetests.GetLatestValueReturnsNotFoundWhenNotTriggeredForEvent, interfacetests.GetLatestValueWithFilteringForEvent, interfacetests.BatchGetLatestValue, interfacetests.BatchGetLatestValueMultipleContractNamesSameFunction,
interfacetests.BatchGetLatestValueDifferentParamsResultsRetainOrder, interfacetests.BatchGetLatestValueDifferentParamsResultsRetainOrderMultipleContracts, interfacetests.BatchGetLatestValueNoArgumentsPrimitiveReturn,
interfacetests.BatchGetLatestValueSetsErrorsProperly, interfacetests.BatchGetLatestValueNoArgumentsWithSliceReturn, interfacetests.BatchGetLatestValueWithModifiersOwnMapstructureOverride,
interfacetests.QueryKeyNotFound, interfacetests.QueryKeyReturnsData, interfacetests.QueryKeyReturnsDataAsValuesDotValue, interfacetests.QueryKeyReturnsDataAsValuesDotValue,
interfacetests.QueryKeyCanFilterWithValueComparator, interfacetests.QueryKeyCanLimitResultsWithCursor,
QueryKeyFilterOnDataWordsWithValueComparator, QueryKeyOnDataWordsWithValueComparatorOnNestedField,
QueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField, QueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex,
interfacetests.ContractReaderGetLatestValueAsValuesDotValue, interfacetests.ContractReaderGetLatestValueNoArgumentsAndPrimitiveReturnAsValuesDotValue, interfacetests.ContractReaderGetLatestValueNoArgumentsAndSliceReturnAsValueDotValue,
interfacetests.ContractReaderGetLatestValueGetsLatestForEvent, interfacetests.ContractReaderGetLatestValueBasedOnConfidenceLevelForEvent,
interfacetests.ContractReaderGetLatestValueReturnsNotFoundWhenNotTriggeredForEvent, interfacetests.ContractReaderGetLatestValueWithFilteringForEvent, interfacetests.ContractReaderBatchGetLatestValue, interfacetests.ContractReaderBatchGetLatestValueMultipleContractNamesSameFunction,
interfacetests.ContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrder, interfacetests.ContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrderMultipleContracts, interfacetests.ContractReaderBatchGetLatestValueNoArgumentsPrimitiveReturn,
interfacetests.ContractReaderBatchGetLatestValueSetsErrorsProperly, interfacetests.ContractReaderBatchGetLatestValueNoArgumentsWithSliceReturn, interfacetests.ContractReaderBatchGetLatestValueWithModifiersOwnMapstructureOverride,
interfacetests.ContractReaderQueryKeyNotFound, interfacetests.ContractReaderQueryKeyReturnsData, interfacetests.ContractReaderQueryKeyReturnsDataAsValuesDotValue, interfacetests.ContractReaderQueryKeyReturnsDataAsValuesDotValue,
interfacetests.ContractReaderQueryKeyCanFilterWithValueComparator, interfacetests.ContractReaderQueryKeyCanLimitResultsWithCursor,
ContractReaderQueryKeyFilterOnDataWordsWithValueComparator, ContractReaderQueryKeyOnDataWordsWithValueComparatorOnNestedField,
ContractReaderQueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField, ContractReaderQueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex,
})
wrapped.SetChainReaderConfigSupplier(func(t *testing.T) types.ChainReaderConfig {
return getChainReaderConfig(wrapped)
Expand Down
32 changes: 16 additions & 16 deletions core/services/relay/evm/evmtesting/run_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
)

const (
QueryKeyFilterOnDataWordsWithValueComparator = "Filtering can be done on data words using value comparator"
QueryKeyOnDataWordsWithValueComparatorOnNestedField = "Filtering can be done on data words using value comparator on a nested field"
QueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField = "Filtering can be done on data words using value comparator on field that follows a dynamic field"
QueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex = "Filtering can be done on data words using value comparators on fields that require manual index input"
DynamicTypedTopicsFilterAndCorrectReturn = "Dynamically typed topics can be used to filter and have type correct in return"
MultipleTopicCanFilterTogether = "Multiple topics can filter together"
FilteringCanBeDoneOnHashedIndexedTopics = "Filtering can be done on indexed topics that get hashed"
BindReturnsErrorOnMissingContractAtAddress = "Bind returns error on missing contract at address"
ContractReaderQueryKeyFilterOnDataWordsWithValueComparator = "Filtering can be done on data words using value comparator"
ContractReaderQueryKeyOnDataWordsWithValueComparatorOnNestedField = "Filtering can be done on data words using value comparator on a nested field"
ContractReaderQueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField = "Filtering can be done on data words using value comparator on field that follows a dynamic field"
ContractReaderQueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex = "Filtering can be done on data words using value comparators on fields that require manual index input"
ContractReaderDynamicTypedTopicsFilterAndCorrectReturn = "Dynamically typed topics can be used to filter and have type correct in return"
ContractReaderMultipleTopicCanFilterTogether = "Multiple topics can filter together"
ContractReaderFilteringCanBeDoneOnHashedIndexedTopics = "Filtering can be done on indexed topics that get hashed"
ContractReaderBindReturnsErrorOnMissingContractAtAddress = "Bind returns error on missing contract at address"
)

func RunChainComponentsEvmTests[T TestingT[T]](t T, it *EVMChainComponentsInterfaceTester[T]) {
Expand All @@ -47,7 +47,7 @@ func RunContractReaderEvmTests[T TestingT[T]](t T, it *EVMChainComponentsInterfa

testCases := []Testcase[T]{
{
Name: DynamicTypedTopicsFilterAndCorrectReturn,
Name: ContractReaderDynamicTypedTopicsFilterAndCorrectReturn,
Test: func(t T) {
it.Setup(t)

Expand Down Expand Up @@ -86,7 +86,7 @@ func RunContractReaderEvmTests[T TestingT[T]](t T, it *EVMChainComponentsInterfa
},
},
{
Name: MultipleTopicCanFilterTogether,
Name: ContractReaderMultipleTopicCanFilterTogether,
Test: func(t T) {
it.Setup(t)
ctx := it.Helper.Context(t)
Expand Down Expand Up @@ -119,7 +119,7 @@ func RunContractReaderEvmTests[T TestingT[T]](t T, it *EVMChainComponentsInterfa
},
},
{
Name: FilteringCanBeDoneOnHashedIndexedTopics,
Name: ContractReaderFilteringCanBeDoneOnHashedIndexedTopics,
Test: func(t T) {
it.Setup(t)

Expand Down Expand Up @@ -156,7 +156,7 @@ func RunContractReaderEvmTests[T TestingT[T]](t T, it *EVMChainComponentsInterfa
},
},
{
Name: BindReturnsErrorOnMissingContractAtAddress,
Name: ContractReaderBindReturnsErrorOnMissingContractAtAddress,
Test: func(t T) {
it.Setup(t)

Expand All @@ -178,7 +178,7 @@ func RunContractReaderInLoopTests[T TestingT[T]](t T, it ChainComponentsInterfac

testCases := []Testcase[T]{
{
Name: QueryKeyFilterOnDataWordsWithValueComparator,
Name: ContractReaderQueryKeyFilterOnDataWordsWithValueComparator,
Test: func(t T) {
ctx := tests.Context(t)
cr := it.GetContractReader(t)
Expand Down Expand Up @@ -209,7 +209,7 @@ func RunContractReaderInLoopTests[T TestingT[T]](t T, it ChainComponentsInterfac
},
},
{
Name: QueryKeyOnDataWordsWithValueComparatorOnNestedField,
Name: ContractReaderQueryKeyOnDataWordsWithValueComparatorOnNestedField,
Test: func(t T) {
ctx := tests.Context(t)
cr := it.GetContractReader(t)
Expand Down Expand Up @@ -245,7 +245,7 @@ func RunContractReaderInLoopTests[T TestingT[T]](t T, it ChainComponentsInterfac
},
},
{
Name: QueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField,
Name: ContractReaderQueryKeyFilterOnDataWordsWithValueComparatorOnDynamicField,
Test: func(t T) {
ctx := tests.Context(t)
cr := it.GetContractReader(t)
Expand Down Expand Up @@ -281,7 +281,7 @@ func RunContractReaderInLoopTests[T TestingT[T]](t T, it ChainComponentsInterfac
},
},
{
Name: QueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex,
Name: ContractReaderQueryKeyFilteringOnDataWordsUsingValueComparatorsOnFieldsWithManualIndex,
Test: func(t T) {
ctx := tests.Context(t)
cr := it.GetContractReader(t)
Expand Down

0 comments on commit 76e7db7

Please sign in to comment.