@@ -48,29 +48,30 @@ func TestIntegrations(t *testing.T) {
4848 cliPath , err := e2e .AtlasCLIBin ()
4949 require .NoError (t , err )
5050
51- if ! Gov () { // cloudgov does not have an available datadog region
52- t .Run ("Create DATADOG" , func (t * testing.T ) {
53- cmd := exec .Command (cliPath ,
54- integrationsEntity ,
55- "create" ,
56- datadogEntity ,
57- "--apiKey" ,
58- key ,
59- "--projectId" ,
60- g .projectID ,
61- "-o=json" )
62- cmd .Env = os .Environ ()
63- resp , err := cmd .CombinedOutput ()
64-
65- a := assert .New (t )
66- a .NoError (err , string (resp ))
67-
68- var thirdPartyIntegrations mongodbatlas.ThirdPartyIntegrations
69- if err := json .Unmarshal (resp , & thirdPartyIntegrations ); a .NoError (err ) {
70- a .True (integrationExists (datadogEntity , thirdPartyIntegrations ))
71- }
72- })
73- }
51+ t .Run ("Create DATADOG" , func (t * testing.T ) {
52+ if Gov () {
53+ t .Skip ("Skipping DATADOG integration test, cloudgov does not have an available datadog region" )
54+ }
55+ cmd := exec .Command (cliPath ,
56+ integrationsEntity ,
57+ "create" ,
58+ datadogEntity ,
59+ "--apiKey" ,
60+ key ,
61+ "--projectId" ,
62+ g .projectID ,
63+ "-o=json" )
64+ cmd .Env = os .Environ ()
65+ resp , err := cmd .CombinedOutput ()
66+
67+ a := assert .New (t )
68+ a .NoError (err , string (resp ))
69+
70+ var thirdPartyIntegrations mongodbatlas.ThirdPartyIntegrations
71+ if err := json .Unmarshal (resp , & thirdPartyIntegrations ); a .NoError (err ) {
72+ a .True (integrationExists (datadogEntity , thirdPartyIntegrations ))
73+ }
74+ })
7475
7576 t .Run ("Create NEW_RELIC" , func (t * testing.T ) {
7677 cmd := exec .Command (cliPath ,
0 commit comments