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_orbital_contact_profile #18317

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

jiaweitao001
Copy link
Contributor

  • All tests passed.
Test results:
--- PASS: TestAccContactProfile_basic (290.56s)
--- PASS: TestAccContactProfile_complete (377.92s)
--- PASS: TestAccContactProfile_update (385.53s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/orbital       400.348s

Comment on lines +121 to +123
* `modulation_configuration` - (Optional) Copy of the modem configuration file such as Kratos QRadio. Only valid for uplink directions. If provided, the modem connects to the customer endpoint and accepts commands from the customer instead of a VITA.49 stream.

* `demodulation_configuration` - (Optional) Copy of the modem configuration file such as Kratos QRadio or Kratos QuantumRx. Only valid for downlink directions. If provided, the modem connects to the customer endpoint and sends demodulated data instead of a VITA.49 stream.
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be

Suggested change
* `modulation_configuration` - (Optional) Copy of the modem configuration file such as Kratos QRadio. Only valid for uplink directions. If provided, the modem connects to the customer endpoint and accepts commands from the customer instead of a VITA.49 stream.
* `demodulation_configuration` - (Optional) Copy of the modem configuration file such as Kratos QRadio or Kratos QuantumRx. Only valid for downlink directions. If provided, the modem connects to the customer endpoint and sends demodulated data instead of a VITA.49 stream.
* `modem_modulation_file_content` - (Optional) Copy of the modem configuration file such as Kratos QRadio. Only valid for uplink directions. If provided, the modem connects to the customer endpoint and accepts commands from the customer instead of a VITA.49 stream.
* `modem_demodulation_file_content` - (Optional) Copy of the modem configuration file such as Kratos QRadio or Kratos QuantumRx. Only valid for downlink directions. If provided, the modem connects to the customer endpoint and sends demodulated data instead of a VITA.49 stream.

Copy link
Collaborator

Choose a reason for hiding this comment

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

the test config seems like they are a constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as commented above. Will double check with service team.

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.

may need to change this services tes regions in tc config:

------- Stdout: -------
=== RUN   TestAccContactProfile_basic
=== PAUSE TestAccContactProfile_basic
=== CONT  TestAccContactProfile_basic
    testcase.go:110: Step 1/2 error: Error running apply: exit status 1
        
        Error: creating Contact Profile (Subscription: "*******"
        Resource Group Name: "acctestRG-220913031041386609"
        Contact Profile Name: "testcontactprofile-220913031041386609"): contactprofile.ContactProfileClient#ContactProfilesCreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="LocationNotAvailableForResourceType" Message="The provided location 'westeurope' is not available for resource type 'Microsoft.Orbital/contactProfiles'. List of available regions for the resource type is 'westus2,westus3,westus,eastus,southcentralus,norwayeast,australiaeast,swedencentral'."
        
          with azurerm_orbital_contact_profile.test,
          on terraform_plugin_test.tf line 41, in resource "azurerm_orbital_contact_profile" "test":
          41: resource "azurerm_orbital_contact_profile" "test" {
        
        creating Contact Profile (Subscription:
        "*******"
        Resource Group Name: "acctestRG-220913031041386609"
        Contact Profile Name: "testcontactprofile-220913031041386609"):
        contactprofile.ContactProfileClient#ContactProfilesCreateOrUpdate: Failure
        sending request: StatusCode=0 -- Original Error:
        Code="LocationNotAvailableForResourceType" Message="The provided location
        'westeurope' is not available for resource type
        'Microsoft.Orbital/contactProfiles'. List of available regions for the
        resource type is
        'westus2,westus3,westus,eastus,southcentralus,norwayeast,australiaeast,swedencentral'."
--- FAIL: TestAccContactProfile_basic (168.94s)
FAIL

Comment on lines +48 to +50
"location": azure.SchemaLocation(),

"links": ContactProfileLinkSchema(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a reason you are pulling these out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This is schema has a nested structure, I'm pulling it out for better code readability.

Copy link
Collaborator

Choose a reason for hiding this comment

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

unless it is reused we should not be doing this

@jiaweitao001
Copy link
Contributor Author

Hi @katbyte , update from service team encoding_configuration and decoding_configuration are currently unused, removed from this PR.

Comment on lines +48 to +50
"location": azure.SchemaLocation(),

"links": ContactProfileLinkSchema(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

unless it is reused we should not be doing this

Comment on lines +188 to +189
demodulation_configuration = "na"
modulation_configuration = "AQUA_UPLINK_BPSK"
Copy link
Collaborator

Choose a reason for hiding this comment

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

these seem to just take a constant? so

Suggested change
demodulation_configuration = "na"
modulation_configuration = "AQUA_UPLINK_BPSK"
demodulation_type = "na"
modulation_type = "AQUA_UPLINK_BPSK"

configuration seems wrong for what takes a constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to service team, these are not constants.

@jiaweitao001 jiaweitao001 requested a review from katbyte October 9, 2022 03:21
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 eb6ced5 into hashicorp:main Oct 12, 2022
katbyte added a commit that referenced this pull request Oct 12, 2022
@github-actions github-actions bot added this to the v3.27.0 milestone Oct 12, 2022
@jiaweitao001 jiaweitao001 deleted the orbital_contact branch October 13, 2022 02:49
@github-actions
Copy link

This functionality has been released in v3.27.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@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 Nov 13, 2022
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.

2 participants