Skip to content

Commit

Permalink
Refactored routing email domain
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMoyles committed Jul 1, 2024
1 parent 83762bb commit 05a8e4d
Show file tree
Hide file tree
Showing 21 changed files with 561 additions and 337 deletions.
63 changes: 0 additions & 63 deletions genesyscloud/data_source_genesyscloud_routing_email_domain.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
authRole "terraform-provider-genesyscloud/genesyscloud/auth_role"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
"terraform-provider-genesyscloud/genesyscloud/util"
"testing"
Expand Down Expand Up @@ -146,7 +147,7 @@ func TestAccDataSourceRecordingMediaRetentionPolicy(t *testing.T) {
ProviderFactories: provider.GetProviderFactories(providerResources, providerDataSources),
Steps: []resource.TestStep{
{
Config: gcloud.GenerateRoutingEmailDomainResource(
Config: routingEmailDomain.GenerateRoutingEmailDomainResource(
domainRes,
domainId,
util.FalseValue, // Subdomain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/provider"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"

"testing"

Expand Down Expand Up @@ -44,7 +45,7 @@ func (r *registerTestInstance) registerTestResources() {
defer r.resourceMapMutex.Unlock()

providerResources[resourceName] = ResourceMediaRetentionPolicy()
providerResources["genesyscloud_routing_email_domain"] = gcloud.ResourceRoutingEmailDomain()
providerResources["genesyscloud_routing_email_domain"] = routingEmailDomain.ResourceRoutingEmailDomain()
providerResources["genesyscloud_routing_queue"] = routingQueue.ResourceRoutingQueue()
providerResources["genesyscloud_auth_role"] = authRole.ResourceAuthRole()
providerResources["genesyscloud_user_roles"] = userRoles.ResourceUserRoles()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
authRole "terraform-provider-genesyscloud/genesyscloud/auth_role"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
userRoles "terraform-provider-genesyscloud/genesyscloud/user_roles"
"terraform-provider-genesyscloud/genesyscloud/util"
"testing"
Expand Down Expand Up @@ -932,7 +933,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
ProviderFactories: provider.GetProviderFactories(providerResources, providerDataSources),
Steps: []resource.TestStep{
{
Config: gcloud.GenerateRoutingEmailDomainResource(
Config: routingEmailDomain.GenerateRoutingEmailDomainResource(
domainRes,
domainId,
util.FalseValue, // Subdomain
Expand Down Expand Up @@ -1039,7 +1040,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
},
{

Config: gcloud.GenerateRoutingEmailDomainResource(
Config: routingEmailDomain.GenerateRoutingEmailDomainResource(
domainRes,
domainId,
util.FalseValue, // Subdomain
Expand Down Expand Up @@ -1146,7 +1147,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
},
{

Config: gcloud.GenerateRoutingEmailDomainResource(
Config: routingEmailDomain.GenerateRoutingEmailDomainResource(
domainRes,
domainId,
util.FalseValue, // Subdomain
Expand Down Expand Up @@ -1253,7 +1254,7 @@ func TestAccResourceMediaRetentionPolicyBasic(t *testing.T) {
},
{

Config: gcloud.GenerateRoutingEmailDomainResource(
Config: routingEmailDomain.GenerateRoutingEmailDomainResource(
domainRes,
domainId,
util.FalseValue, // Subdomain
Expand Down
3 changes: 0 additions & 3 deletions genesyscloud/resource_genesyscloud_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func registerDataSources(l registrar.Registrar) {
l.RegisterDataSource("genesyscloud_routing_language", dataSourceRoutingLanguage())
l.RegisterDataSource("genesyscloud_routing_skill", dataSourceRoutingSkill())
l.RegisterDataSource("genesyscloud_routing_skill_group", dataSourceRoutingSkillGroup())
l.RegisterDataSource("genesyscloud_routing_email_domain", DataSourceRoutingEmailDomain())
l.RegisterDataSource("genesyscloud_routing_wrapupcode", DataSourceRoutingWrapupcode())
l.RegisterDataSource("genesyscloud_user", DataSourceUser())
l.RegisterDataSource("genesyscloud_widget_deployment", dataSourceWidgetDeployments())
Expand All @@ -57,7 +56,6 @@ func registerResources(l registrar.Registrar) {
l.RegisterResource("genesyscloud_location", ResourceLocation())
l.RegisterResource("genesyscloud_quality_forms_evaluation", ResourceEvaluationForm())
l.RegisterResource("genesyscloud_quality_forms_survey", ResourceSurveyForm())
l.RegisterResource("genesyscloud_routing_email_domain", ResourceRoutingEmailDomain())
l.RegisterResource("genesyscloud_routing_language", ResourceRoutingLanguage())
l.RegisterResource("genesyscloud_routing_skill", ResourceRoutingSkill())
l.RegisterResource("genesyscloud_routing_skill_group", ResourceRoutingSkillGroup())
Expand All @@ -80,7 +78,6 @@ func registerExporters(l registrar.Registrar) {
l.RegisterExporter("genesyscloud_location", LocationExporter())
l.RegisterExporter("genesyscloud_quality_forms_evaluation", EvaluationFormExporter())
l.RegisterExporter("genesyscloud_quality_forms_survey", SurveyFormExporter())
l.RegisterExporter("genesyscloud_routing_email_domain", RoutingEmailDomainExporter())
l.RegisterExporter("genesyscloud_routing_language", RoutingLanguageExporter())
l.RegisterExporter("genesyscloud_routing_skill", RoutingSkillExporter())
l.RegisterExporter("genesyscloud_routing_skill_group", ResourceSkillGroupExporter())
Expand Down
5 changes: 3 additions & 2 deletions genesyscloud/resource_genesyscloud_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
architectSchedules "terraform-provider-genesyscloud/genesyscloud/architect_schedules"
"terraform-provider-genesyscloud/genesyscloud/group"
"terraform-provider-genesyscloud/genesyscloud/provider"
routingEmailDomain "terraform-provider-genesyscloud/genesyscloud/routing_email_domain"
routingQueue "terraform-provider-genesyscloud/genesyscloud/routing_queue"
routingSettings "terraform-provider-genesyscloud/genesyscloud/routing_settings"
routingUtilization "terraform-provider-genesyscloud/genesyscloud/routing_utilization"
Expand Down Expand Up @@ -54,7 +55,7 @@ func (r *registerTestInstance) registerTestResources() {
providerResources["genesyscloud_location"] = ResourceLocation()
providerResources["genesyscloud_quality_forms_evaluation"] = ResourceEvaluationForm()
providerResources["genesyscloud_quality_forms_survey"] = ResourceSurveyForm()
providerResources["genesyscloud_routing_email_domain"] = ResourceRoutingEmailDomain()
providerResources["genesyscloud_routing_email_domain"] = routingEmailDomain.ResourceRoutingEmailDomain()
providerResources["genesyscloud_routing_language"] = ResourceRoutingLanguage()
providerResources["genesyscloud_routing_skill"] = ResourceRoutingSkill()
providerResources["genesyscloud_routing_skill_group"] = ResourceRoutingSkillGroup()
Expand Down Expand Up @@ -96,7 +97,7 @@ func (r *registerTestInstance) registerTestDataSources() {
providerDataSources["genesyscloud_routing_language"] = dataSourceRoutingLanguage()
providerDataSources["genesyscloud_routing_skill"] = dataSourceRoutingSkill()
providerDataSources["genesyscloud_routing_skill_group"] = dataSourceRoutingSkillGroup()
providerDataSources["genesyscloud_routing_email_domain"] = DataSourceRoutingEmailDomain()
providerDataSources["genesyscloud_routing_email_domain"] = routingEmailDomain.DataSourceRoutingEmailDomain()
providerDataSources["genesyscloud_routing_wrapupcode"] = DataSourceRoutingWrapupcode()
providerDataSources["genesyscloud_user"] = DataSourceUser()
providerDataSources["genesyscloud_widget_deployment"] = dataSourceWidgetDeployments()
Expand Down
Loading

0 comments on commit 05a8e4d

Please sign in to comment.