Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Jul 8, 2024
1 parent e13cf97 commit e5f7134
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/automation-ondemand-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ jobs:
echo ::add-mask::$BASE64_CONFIG_OVERRIDE
echo "BASE64_CONFIG_OVERRIDE=$BASE64_CONFIG_OVERRIDE" >> $GITHUB_ENV
- name: Run Tests
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@7e83c2a815a9275eea1ffd0be9fa2f19656c1368 # v2.3.21
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@54e3fc110916259183d8f50c012aa98f2d2a6718 # v2.3.21
if: ${{ matrix.tests.enabled == true }}
env:
TEST_SUITE: ${{ matrix.tests.suite }}
Expand Down
10 changes: 10 additions & 0 deletions integration-tests/reorg/automation_reorg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package reorg
import (
"fmt"
"math/big"
"os"
"regexp"
"strconv"
"testing"
Expand Down Expand Up @@ -84,6 +85,15 @@ var (
* Upkeeps are expected to be performed during the reorg.
*/
func TestAutomationReorg(t *testing.T) {
logger := logging.GetTestLogger(t)

tId := os.Getenv("LOKI_TENANT_ID")
if tId != "" {
logger.Info().Msg("LOKI_TENANT_ID env var found and non empty")
} else {
logger.Info().Msg("LOKI_TENANT_ID env var not found or empty")
}

c, err := tc.GetConfig([]string{"Reorg"}, tc.Automation)
require.NoError(t, err, "Error getting config")

Expand Down
7 changes: 7 additions & 0 deletions integration-tests/testconfig/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ func GetConfig(configurationNames []string, product Product) (TestConfig, error)
return TestConfig{}, errors.Wrapf(err, "error reading test config values from env vars")
}

tId := os.Getenv("LOKI_TENANT_ID")
if tId != "" {
logger.Info().Msg("LOKI_TENANT_ID env var found and non empty")
} else {
logger.Info().Msg("LOKI_TENANT_ID env var not found or empty")
}

logger.Debug().Msg("Validating test config")
err = testConfig.Validate()
if err != nil {
Expand Down

0 comments on commit e5f7134

Please sign in to comment.