-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCIP-4302: Remove dependencies from integration-tests/ccip-tests/* (#…
…15321) * CCIP-4302: Remove dependencies from integration-tests/ccip-tests/* * Fix lint and path * Increase execution time for usdc and messaging test
- Loading branch information
1 parent
cfefebb
commit 29eb755
Showing
9 changed files
with
127 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": patch | ||
--- | ||
|
||
Removing ccip-tests/\* dependencies and moving ccip tests under a directory in smoke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package actions | ||
|
||
import ( | ||
"fmt" | ||
"net/http" | ||
|
||
"github.com/rs/zerolog/log" | ||
|
||
ctfClient "github.com/smartcontractkit/chainlink-testing-framework/lib/client" | ||
ctftestenv "github.com/smartcontractkit/chainlink-testing-framework/lib/docker/test_env" | ||
) | ||
|
||
// SetMockServerWithUSDCAttestation responds with a mock attestation for any msgHash | ||
// The path is set with regex to match any path that starts with /v1/attestations | ||
func SetMockServerWithUSDCAttestation( | ||
killGrave *ctftestenv.Killgrave, | ||
mockserver *ctfClient.MockserverClient, | ||
) error { | ||
path := "/v1/attestations" | ||
response := struct { | ||
Status string `json:"status"` | ||
Attestation string `json:"attestation"` | ||
Error string `json:"error"` | ||
}{ | ||
Status: "complete", | ||
Attestation: "0x9049623e91719ef2aa63c55f357be2529b0e7122ae552c18aff8db58b4633c4d3920ff03d3a6d1ddf11f06bf64d7fd60d45447ac81f527ba628877dc5ca759651b08ffae25a6d3b1411749765244f0a1c131cbfe04430d687a2e12fd9d2e6dc08e118ad95d94ad832332cf3c4f7a4f3da0baa803b7be024b02db81951c0f0714de1b", | ||
} | ||
if killGrave == nil && mockserver == nil { | ||
return fmt.Errorf("both killgrave and mockserver are nil") | ||
} | ||
log.Info().Str("path", path).Msg("setting attestation-api response for any msgHash") | ||
if killGrave != nil { | ||
err := killGrave.SetAnyValueResponse(fmt.Sprintf("%s/{_hash:.*}", path), []string{http.MethodGet}, response) | ||
if err != nil { | ||
return fmt.Errorf("failed to set killgrave server value: %w", err) | ||
} | ||
} | ||
if mockserver != nil { | ||
err := mockserver.SetAnyValueResponse(fmt.Sprintf("%s/.*", path), response) | ||
if err != nil { | ||
return fmt.Errorf("failed to set mockserver value: %w URL = %s", err, fmt.Sprintf("%s/%s/.*", mockserver.LocalURL(), path)) | ||
} | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters