Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource:azurerm_mobile_network_packet_core_control_plane;New Datasource: azurerm_mobile_network_packet_core_control_plane #20730

Merged
merged 8 commits into from
Mar 20, 2023

Conversation

ziyeqf
Copy link
Contributor

@ziyeqf ziyeqf commented Mar 2, 2023

overall

order | name 
0     | azurerm_mobile_network                              ✅
1     | azurerm_mobile_network_site                         ✅
1     | azurerm_mobile_network_data_network                 ✅
1     | azurerm_mobile_network_service                      ✅
1     | azurerm_mobile_network_slice                        ✅
1     | azurerm_mobile_network_sim_group                    ✅
2     | azurerm_mobile_network_packet_core_control_plane    <- this one
2     | azurerm_mobile_network_sim_policy                   #20732
3     | azurerm_mobile_network_packet_core_data_plane       
4     | azurerm_mobile_network_attached_data_network        
5     | azurerm_mobile_network_sim        

test

terraform-provider-azurerm ❯ TF_ACC=1 go test -v ./internal/services/mobilenetwork -run=TestAccMobileNetworkPacketCoreControlPlan -timeout=600m
=== RUN   TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== PAUSE TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_basic
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_basic
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_update
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_update
=== CONT  TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_update
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_basic
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
--- PASS: TestAccMobileNetworkPacketCoreControlPlanDataSource_basic (565.67s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings (644.19s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface (650.68s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withUeMTU (652.88s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_requiresImport (666.71s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_basic (678.05s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_update (784.06s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity (858.69s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/mobilenetwork 859.875s

…atasource: `azurerm_mobile_network_packet_core_control_plane`
@ziyeqf
Copy link
Contributor Author

ziyeqf commented Mar 3, 2023

have limited the test region..

terraform-provider-azurerm ❯ TF_ACC=1 go test -v ./internal/services/mobilenetwork -run=TestAccMobileNetworkPacketCoreControlPlan -timeout=600m
=== RUN   TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== PAUSE TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_basic
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_basic
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== RUN   TestAccMobileNetworkPacketCoreControlPlane_update
=== PAUSE TestAccMobileNetworkPacketCoreControlPlane_update
=== CONT  TestAccMobileNetworkPacketCoreControlPlanDataSource_basic
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withUeMTU
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_basic
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_requiresImport
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_update
=== CONT  TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity
--- PASS: TestAccMobileNetworkPacketCoreControlPlanDataSource_basic (576.30s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withIneropSettings (583.37s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withAccessInterface (584.61s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withUeMTU (588.17s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_basic (591.30s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_requiresImport (610.32s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_update (878.47s)
--- PASS: TestAccMobileNetworkPacketCoreControlPlane_withCertificateUserAssignedIdentity (897.50s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/mobilenetwork 898.712s

@ziyeqf ziyeqf requested a review from katbyte March 9, 2023 09:36
@ziyeqf
Copy link
Contributor Author

ziyeqf commented Mar 15, 2023

Screenshot 2023-03-15 at 13 00 45

@ziyeqf ziyeqf requested a review from katbyte March 20, 2023 01:51
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ☎️

@katbyte katbyte merged commit 1a3887b into hashicorp:main Mar 20, 2023
@github-actions github-actions bot added this to the v3.49.0 milestone Mar 20, 2023
katbyte added a commit that referenced this pull request Mar 20, 2023
@tombuildsstuff
Copy link
Contributor

@ziyeqf unfortunately we're going to need to revert this PR for now since there's some larger changes needed to make this shippable - I'll open a PR and then comment on this one to explain in more details

tombuildsstuff added a commit that referenced this pull request Mar 21, 2023
…e`;New Datasource: `azurerm_mobile_network_packet_core_control_plane` (#20730)"

This reverts commit 1a3887b.
tombuildsstuff added a commit that referenced this pull request Mar 21, 2023
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @ziyeqf

As mentioned in the last comment, unfortunately we're having to revert this PR in #21058 since it requires some larger schema changes. I've left comments inline for those, but if you're able to fix those up then we should be able to take another look.

Thanks!

var outputList []PlatformConfigurationModel

output := PlatformConfigurationModel{
Type: string(input.Type),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(as above) we generally don't expose the type field, what's the value for doing so here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's used to indentify the type of platform, just a parameter pass to service..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, the type of platform could not be told by the input of other parameters. AFAIK, the only way is to specify it manually.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants