Fix test failures when run without env vars (#2356)
## Description Either skip tests that require env vars or have them use mock credentials if they don't need access to external services. ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No ## Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [x] 🤖 Test - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup ## Issue(s) * closes #2354 ## Test Plan - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
438bcd78ed
commit
c4b2de5c6c
@ -22,7 +22,7 @@ func TestBetaUnitSuite(t *testing.T) {
|
||||
|
||||
func (suite *BetaUnitSuite) TestBetaService_Adapter() {
|
||||
t := suite.T()
|
||||
a := tester.NewM365Account(t)
|
||||
a := tester.NewMockM365Account(t)
|
||||
m365, err := a.M365Config()
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@ -18,6 +18,12 @@ type BetaClientSuite struct {
|
||||
}
|
||||
|
||||
func TestBetaClientSuite(t *testing.T) {
|
||||
tester.RunOnAny(
|
||||
t,
|
||||
tester.CorsoCITests,
|
||||
tester.CorsoGraphConnectorTests,
|
||||
)
|
||||
|
||||
suite.Run(t, new(BetaClientSuite))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user