Skip to content

Commit

Permalink
skip exposer and chain status for ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Feb 9, 2025
1 parent 2b68479 commit 6b67078
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starship/tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (s *TestSuite) TestChains_Status() {
s.T().Log("running test for /status endpoint for each chain")

for _, chain := range s.config.Chains {
if chain.Name == "neutron" {
if chain.Name == "neutron" || chain.Name == "ethereum" {
s.T().Skip("skip tests for neutron")
}
url := fmt.Sprintf("http://0.0.0.0:%d/status", chain.Ports.Rpc)
Expand All @@ -86,7 +86,7 @@ func (s *TestSuite) TestChains_StakingParams() {
s.T().Skip("skip staking params test for non rest endpoint")
}
s.T().Log("running test for /staking/parameters endpoint for each chain")
if s.config.Chains[0].Name == "neutron" {
if s.config.Chains[0].Name == "neutron" || s.config.Chains[0].Name == "ethereum" {
s.T().Skip("skip tests for neutron")
}

Expand Down
21 changes: 21 additions & 0 deletions starship/tests/e2e/exposer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func (s *TestSuite) TestExposer_GetNodeID() {
s.T().Log("running test for /node_id endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/node_id", nil)
s.Require().NoError(err)
Expand All @@ -45,6 +48,9 @@ func (s *TestSuite) TestExposer_GetGenesisFile() {
s.T().Log("running test for /genesis endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/genesis", nil)
s.Require().NoError(err)
Expand All @@ -62,6 +68,9 @@ func (s *TestSuite) TestExposer_GetPubKey() {
s.T().Log("running test for /pub_key endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}
if chain.Cometmock != nil && chain.Cometmock.Enabled {
s.T().Skip("skipping tests for cometmock enabled chain")
}
Expand All @@ -82,6 +91,9 @@ func (s *TestSuite) TestExposer_GetPrivKey() {
s.T().Log("running test for /priv_keys endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/priv_keys", nil)
s.Require().NoError(err)
Expand All @@ -99,6 +111,9 @@ func (s *TestSuite) TestExposer_GetPrivValState() {
s.T().Log("running test for /priv_validator_state endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/priv_validator_state", nil)
s.Require().NoError(err)
Expand All @@ -115,6 +130,9 @@ func (s *TestSuite) TestExposer_GetNodeKey() {
s.T().Log("running test for /node_key endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/node_key", nil)
s.Require().NoError(err)
Expand All @@ -131,6 +149,9 @@ func (s *TestSuite) TestExposer_GetKeys() {
s.T().Log("running test for /keys endpoint for exposer")

chain := s.config.Chains[0]
if chain.Ports.Exposer == 0 {
s.T().Skip("skipping /node_id test since no exposer")
}

req, err := http.NewRequest(http.MethodGet, "/keys", nil)
s.Require().NoError(err)
Expand Down

0 comments on commit 6b67078

Please sign in to comment.