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

"500 Internal Server Error" when attempting to export a key that doesn't exist #259

Open
patrickcping opened this issue Feb 17, 2023 · 2 comments
Assignees
Labels
service/base PingOne Platform status/blocked/upstream-api The issue/PR is blocked by an upstream API type/bug Something isn't working

Comments

@patrickcping
Copy link
Collaborator

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

PingOne Terraform provider Version

v0.9.0

Terraform Version

N/a

Affected Resource(s)

  • pingone_certificate_signing_request
  • pingone_certificate_export

Terraform Configuration Files

# Copy-paste your PingOne related Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

# Remember to replace any account/customer sensitive information in the configuration before submitting the issue

data "pingone_certificate_signing_request" "foo" {
  environment_id = var.environment_id

  key_id = var.key_id_does_not_exist // a key ID that doesn't exist in the environment
}

data "pingone_certificate_export" "foo" {
  environment_id = var.environment_id

  key_id = var.key_id_does_not_exist // a key ID that doesn't exist in the environment
}

Debug Output

=== CONT  TestAccCertificateSigningRequestDataSource_NotFound
    data_source_certificate_signing_request_test.go:49: Step 1/1, expected an error with pattern, no match on: Error running pre-apply refresh: exit status 1
        
        Error: Error when calling `ExportCSR`: 500 Internal Server Error 
        
          with data.pingone_certificate_signing_request.vribeisjoy,
          on terraform_plugin_test.tf line 7, in data "pingone_certificate_signing_request" "vribeisjoy":
           7: data "pingone_certificate_signing_request" "vribeisjoy" {
        
--- FAIL: TestAccCertificateSigningRequestDataSource_NotFound (1.82s)
=== CONT  TestAccCertificateExportDataSource_NotFound
    data_source_certificate_export_test.go:49: Step 1/1, expected an error with pattern, no match on: Error running pre-apply refresh: exit status 1
        
        Error: Error when calling `GetKey`: 500 Internal Server Error 
        
          with data.pingone_certificate_export.sdlmaibroz,
          on terraform_plugin_test.tf line 7, in data "pingone_certificate_export" "sdlmaibroz":
           7: data "pingone_certificate_export" "sdlmaibroz" {
        
--- FAIL: TestAccCertificateExportDataSource_NotFound (1.67s)

Panic Output

Expected Behavior

  • Passed tests
  • Resource should output a "Not found" message

Actual Behavior

  • Failed tests
  • Message is not expected

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@patrickcping patrickcping added type/bug Something isn't working service/base PingOne Platform status/blocked/upstream-api The issue/PR is blocked by an upstream API labels Feb 17, 2023
@patrickcping patrickcping self-assigned this Feb 17, 2023
@patrickcping
Copy link
Collaborator Author

Raised to platform engineering

@patrickcping
Copy link
Collaborator Author

Ref P14C-51790

@patrickcping patrickcping removed this from the v1.0.0-rc1 milestone Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/base PingOne Platform status/blocked/upstream-api The issue/PR is blocked by an upstream API type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant