@@ -1477,6 +1477,19 @@ func TestOrganizationResourceFetcher_FetchData(t *testing.T) {
14771477 nil ,
14781478 )
14791479
1480+ orgAPI .EXPECT ().
1481+ DiscoveryDomains (gomock .Any (), gomock .Any ()).
1482+ Return (
1483+ & management.DiscoveryDomainList {
1484+ Domains : []* management.OrganizationDiscoveryDomain {
1485+ {
1486+ Domain : auth0 .String ("example.com" ),
1487+ },
1488+ },
1489+ },
1490+ nil ,
1491+ ).Times (4 )
1492+
14801493 fetcher := organizationResourceFetcher {
14811494 api : & auth0.API {
14821495 Organization : orgAPI ,
@@ -1492,6 +1505,10 @@ func TestOrganizationResourceFetcher_FetchData(t *testing.T) {
14921505 ResourceName : "auth0_organization_connections.organization_1" ,
14931506 ImportID : "org_1" ,
14941507 },
1508+ {
1509+ ResourceName : "auth0_organization_discovery_domains.organization_1" ,
1510+ ImportID : "org_1" ,
1511+ },
14951512 {
14961513 ResourceName : "auth0_organization.organization_2" ,
14971514 ImportID : "org_2" ,
@@ -1500,6 +1517,10 @@ func TestOrganizationResourceFetcher_FetchData(t *testing.T) {
15001517 ResourceName : "auth0_organization_connections.organization_2" ,
15011518 ImportID : "org_2" ,
15021519 },
1520+ {
1521+ ResourceName : "auth0_organization_discovery_domains.organization_2" ,
1522+ ImportID : "org_2" ,
1523+ },
15031524 {
15041525 ResourceName : "auth0_organization.organization_3" ,
15051526 ImportID : "org_3" ,
@@ -1508,10 +1529,18 @@ func TestOrganizationResourceFetcher_FetchData(t *testing.T) {
15081529 ResourceName : "auth0_organization_connections.organization_3" ,
15091530 ImportID : "org_3" ,
15101531 },
1532+ {
1533+ ResourceName : "auth0_organization_discovery_domains.organization_3" ,
1534+ ImportID : "org_3" ,
1535+ },
15111536 {
15121537 ResourceName : "auth0_organization.organization_4_no_connections" ,
15131538 ImportID : "org_4" ,
15141539 },
1540+ {
1541+ ResourceName : "auth0_organization_discovery_domains.organization_4_no_connections" ,
1542+ ImportID : "org_4" ,
1543+ },
15151544 }
15161545
15171546 data , err := fetcher .FetchData (context .Background ())
0 commit comments