Closed wcmjunior closed 2 months ago
Fix invalid repo TLS option check in cyral_repository_conf_auth.
cyral_repository_conf_auth
All tests ran successfully in a v4.16 CP:
v4.16
make local/test go test github.com/cyralinc/terraform-provider-cyral/... -v -race -timeout 20m ? github.com/cyralinc/terraform-provider-cyral [no test files] ? github.com/cyralinc/terraform-provider-cyral/cyral/core [no test files] ? github.com/cyralinc/terraform-provider-cyral/cyral/core/types/operationtype [no test files] ? github.com/cyralinc/terraform-provider-cyral/cyral/core/types/resourcetype [no test files] === RUN TestNewClient_WhenTLSSkipVerifyIsEnabled_ThenInsecureSkipVerifyIsTrue --- PASS: TestNewClient_WhenTLSSkipVerifyIsEnabled_ThenInsecureSkipVerifyIsTrue (0.00s) === RUN TestNewClient_WhenTLSSkipVerifyIsDisabled_ThenInsecureSkipVerifyIsFalse --- PASS: TestNewClient_WhenTLSSkipVerifyIsDisabled_ThenInsecureSkipVerifyIsFalse (0.00s) === RUN TestNewClient_WhenClientIDIsEmpty_ThenThrowError --- PASS: TestNewClient_WhenClientIDIsEmpty_ThenThrowError (0.00s) === RUN TestNewClient_WhenClientSecretIsEmpty_ThenThrowError --- PASS: TestNewClient_WhenClientSecretIsEmpty_ThenThrowError (0.00s) === RUN TestNewClient_WhenControlPlaneIsEmpty_ThenThrowError --- PASS: TestNewClient_WhenControlPlaneIsEmpty_ThenThrowError (0.00s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/client (cached) ? github.com/cyralinc/terraform-provider-cyral/cyral/internal/datalabel/classificationrule [no test files] ? github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/confextension [no test files] === RUN TestAccDatalabelDataSource === PAUSE TestAccDatalabelDataSource === RUN TestAccDatalabelResource --- PASS: TestAccDatalabelResource (3.07s) === CONT TestAccDatalabelDataSource --- PASS: TestAccDatalabelDataSource (24.74s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/datalabel 29.383s === RUN TestAccSAMLConfigurationDataSource === PAUSE TestAccSAMLConfigurationDataSource === RUN TestAccSidecarInstanceIDsDataSource === PAUSE TestAccSidecarInstanceIDsDataSource === RUN TestIntegrationsData_GetValue_Default --- PASS: TestIntegrationsData_GetValue_Default (0.00s) === RUN TestIntegrationsData_GetValue_Splunk --- PASS: TestIntegrationsData_GetValue_Splunk (0.00s) === RUN TestAccDatadogIntegrationResource === PAUSE TestAccDatadogIntegrationResource === RUN TestAccELKIntegrationResource === PAUSE TestAccELKIntegrationResource === RUN TestAccIdPIntegrationResource === PAUSE TestAccIdPIntegrationResource === RUN TestAccLogstashIntegrationResource === PAUSE TestAccLogstashIntegrationResource === RUN TestAccLookerIntegrationResource === PAUSE TestAccLookerIntegrationResource === RUN TestAccSplunkIntegrationResource === PAUSE TestAccSplunkIntegrationResource === RUN TestAccSumoLogicIntegrationResource === PAUSE TestAccSumoLogicIntegrationResource === CONT TestAccSAMLConfigurationDataSource === CONT TestAccIdPIntegrationResource === CONT TestAccLookerIntegrationResource === CONT TestAccELKIntegrationResource === CONT TestAccDatadogIntegrationResource === CONT TestAccSidecarInstanceIDsDataSource === CONT TestAccSumoLogicIntegrationResource === CONT TestAccLogstashIntegrationResource === CONT TestAccSplunkIntegrationResource --- PASS: TestAccELKIntegrationResource (13.35s) --- PASS: TestAccLookerIntegrationResource (13.51s) --- PASS: TestAccSplunkIntegrationResource (13.78s) --- PASS: TestAccDatadogIntegrationResource (13.82s) --- PASS: TestAccSumoLogicIntegrationResource (13.85s) --- PASS: TestAccLogstashIntegrationResource (20.57s) --- PASS: TestAccSAMLConfigurationDataSource (20.58s) --- PASS: TestAccSidecarInstanceIDsDataSource (25.06s) --- PASS: TestAccIdPIntegrationResource (60.42s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/deprecated 65.486s === RUN TestAccPolicyResource === PAUSE TestAccPolicyResource === CONT TestAccPolicyResource --- PASS: TestAccPolicyResource (10.07s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/deprecated/policy 13.609s === RUN TestIntegrationAWSIAMAuthN === PAUSE TestIntegrationAWSIAMAuthN === CONT TestIntegrationAWSIAMAuthN --- PASS: TestIntegrationAWSIAMAuthN (22.65s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/awsiam 26.696s === RUN TestAccDuoMFAIntegrationResource === PAUSE TestAccDuoMFAIntegrationResource === CONT TestAccDuoMFAIntegrationResource --- PASS: TestAccDuoMFAIntegrationResource (9.31s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/confextension/mfaduo 11.834s === RUN TestAccPagerDutyIntegrationResource === PAUSE TestAccPagerDutyIntegrationResource === CONT TestAccPagerDutyIntegrationResource --- PASS: TestAccPagerDutyIntegrationResource (10.59s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/confextension/pagerduty 13.616s === RUN TestAccHCVaultIntegrationResource === PAUSE TestAccHCVaultIntegrationResource === CONT TestAccHCVaultIntegrationResource --- PASS: TestAccHCVaultIntegrationResource (10.09s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/hcvault 12.109s === RUN TestAccIntegrationIdPSAMLDataSource === PAUSE TestAccIntegrationIdPSAMLDataSource === RUN TestAccIntegrationIdPSAMLResource === PAUSE TestAccIntegrationIdPSAMLResource === CONT TestAccIntegrationIdPSAMLDataSource === CONT TestAccIntegrationIdPSAMLResource --- PASS: TestAccIntegrationIdPSAMLDataSource (37.12s) --- PASS: TestAccIntegrationIdPSAMLResource (39.64s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/idpsaml 44.192s === RUN TestAccIntegrationIdPSAMLDraftResource === PAUSE TestAccIntegrationIdPSAMLDraftResource === CONT TestAccIntegrationIdPSAMLDraftResource --- PASS: TestAccIntegrationIdPSAMLDraftResource (16.19s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/idpsaml/draft 21.232s === RUN TestAccLoggingIntegrationDataSource === PAUSE TestAccLoggingIntegrationDataSource === RUN TestAccLogsIntegrationResourceCloudWatch === PAUSE TestAccLogsIntegrationResourceCloudWatch === RUN TestAccLogsIntegrationResourceDataDog === PAUSE TestAccLogsIntegrationResourceDataDog === RUN TestAccLogsIntegrationResourceElk === PAUSE TestAccLogsIntegrationResourceElk === RUN TestAccLogsIntegrationResourceElkEmptyEsCredentials === PAUSE TestAccLogsIntegrationResourceElkEmptyEsCredentials === RUN TestAccLogsIntegrationResourceSplunk === PAUSE TestAccLogsIntegrationResourceSplunk === RUN TestAccLogsIntegrationResourceSumologic === PAUSE TestAccLogsIntegrationResourceSumologic === RUN TestAccLogsIntegrationResourceFluentbit === PAUSE TestAccLogsIntegrationResourceFluentbit === CONT TestAccLoggingIntegrationDataSource === CONT TestAccLogsIntegrationResourceSplunk === CONT TestAccLogsIntegrationResourceElk === CONT TestAccLogsIntegrationResourceDataDog === CONT TestAccLogsIntegrationResourceFluentbit === CONT TestAccLogsIntegrationResourceSumologic === CONT TestAccLogsIntegrationResourceElkEmptyEsCredentials === CONT TestAccLogsIntegrationResourceCloudWatch --- PASS: TestAccLogsIntegrationResourceFluentbit (12.43s) --- PASS: TestAccLogsIntegrationResourceDataDog (12.61s) --- PASS: TestAccLogsIntegrationResourceSplunk (13.73s) --- PASS: TestAccLogsIntegrationResourceElk (13.84s) --- PASS: TestAccLogsIntegrationResourceSumologic (13.84s) --- PASS: TestAccLogsIntegrationResourceElkEmptyEsCredentials (14.05s) --- PASS: TestAccLogsIntegrationResourceCloudWatch (14.13s) --- PASS: TestAccLoggingIntegrationDataSource (17.27s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/logging 22.755s === RUN TestAccSlackAlertsIntegrationResource === PAUSE TestAccSlackAlertsIntegrationResource === CONT TestAccSlackAlertsIntegrationResource --- PASS: TestAccSlackAlertsIntegrationResource (8.04s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/slack 9.660s === RUN TestAccMsTeamsIntegrationResource === PAUSE TestAccMsTeamsIntegrationResource === CONT TestAccMsTeamsIntegrationResource --- PASS: TestAccMsTeamsIntegrationResource (10.16s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/integration/teams 11.741s === RUN TestAccPermissionDataSource === PAUSE TestAccPermissionDataSource === CONT TestAccPermissionDataSource --- PASS: TestAccPermissionDataSource (5.65s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/permission 7.248s === RUN TestAccPolicyRuleResource === PAUSE TestAccPolicyRuleResource === RUN TestPolicyRuleResourceUpgradeV0 --- PASS: TestPolicyRuleResourceUpgradeV0 (0.00s) === CONT TestAccPolicyRuleResource --- PASS: TestAccPolicyRuleResource (19.67s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/policy/rule 21.448s === RUN TestAccPolicyV2Resource --- PASS: TestAccPolicyV2Resource (5.43s) === RUN TestAccMinimalPolicyV2Resource --- PASS: TestAccMinimalPolicyV2Resource (4.30s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/policy/v2 11.299s === RUN TestAccRegoPolicyInstanceResource === PAUSE TestAccRegoPolicyInstanceResource === CONT TestAccRegoPolicyInstanceResource --- PASS: TestAccRegoPolicyInstanceResource (6.67s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/regopolicy 8.729s === RUN TestAccRepositoryDataSource === PAUSE TestAccRepositoryDataSource === RUN TestAccRepositoryResource === PAUSE TestAccRepositoryResource === CONT TestAccRepositoryDataSource === CONT TestAccRepositoryResource --- PASS: TestAccRepositoryDataSource (16.06s) --- PASS: TestAccRepositoryResource (23.50s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository 25.835s === RUN TestAccRepositoryAccessGatewayResource === PAUSE TestAccRepositoryAccessGatewayResource === CONT TestAccRepositoryAccessGatewayResource --- PASS: TestAccRepositoryAccessGatewayResource (21.29s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/accessgateway 22.862s === RUN TestAccRepositoryAccessRulesResource === PAUSE TestAccRepositoryAccessRulesResource === CONT TestAccRepositoryAccessRulesResource --- PASS: TestAccRepositoryAccessRulesResource (14.20s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/accessrules 15.763s === RUN TestAccRepositoryBindingResource === PAUSE TestAccRepositoryBindingResource === CONT TestAccRepositoryBindingResource --- PASS: TestAccRepositoryBindingResource (13.57s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/binding 15.136s === RUN TestAccRepositoryConfAnalysisResource === PAUSE TestAccRepositoryConfAnalysisResource === RUN TestRepositoryConfAnalysisResourceUpgradeV0 --- PASS: TestRepositoryConfAnalysisResourceUpgradeV0 (0.00s) === CONT TestAccRepositoryConfAnalysisResource --- PASS: TestAccRepositoryConfAnalysisResource (8.72s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/confanalysis 10.298s === RUN TestAccRepositoryConfAuthResource === PAUSE TestAccRepositoryConfAuthResource === RUN TestRepositoryConfAuthResourceUpgradeV0 --- PASS: TestRepositoryConfAuthResourceUpgradeV0 (0.00s) === CONT TestAccRepositoryConfAuthResource --- PASS: TestAccRepositoryConfAuthResource (15.24s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/confauth 16.804s === RUN TestAccRepositoryDatamapResource === PAUSE TestAccRepositoryDatamapResource === CONT TestAccRepositoryDatamapResource --- PASS: TestAccRepositoryDatamapResource (18.90s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/datamap 20.462s === RUN TestAccRepositoryNetworkAccessPolicyResource === PAUSE TestAccRepositoryNetworkAccessPolicyResource === CONT TestAccRepositoryNetworkAccessPolicyResource --- PASS: TestAccRepositoryNetworkAccessPolicyResource (18.55s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/network 20.128s === RUN TestAccRepositoryUserAccountResource === PAUSE TestAccRepositoryUserAccountResource === CONT TestAccRepositoryUserAccountResource --- PASS: TestAccRepositoryUserAccountResource (41.54s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/repository/useraccount 43.143s === RUN TestAccRoleDataSource === PAUSE TestAccRoleDataSource === RUN TestAccRoleResource === PAUSE TestAccRoleResource === CONT TestAccRoleResource === CONT TestAccRoleDataSource --- PASS: TestAccRoleResource (26.86s) --- PASS: TestAccRoleDataSource (83.98s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/role 85.574s === RUN TestAccRoleSSOGroupsResource === PAUSE TestAccRoleSSOGroupsResource === RUN TestRoleSSOGroupsResourceUpgradeV0 --- PASS: TestRoleSSOGroupsResourceUpgradeV0 (0.00s) === CONT TestAccRoleSSOGroupsResource --- PASS: TestAccRoleSSOGroupsResource (16.97s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/role/ssogroups 18.552s === RUN TestAccSAMLCertificateDataSource === PAUSE TestAccSAMLCertificateDataSource === CONT TestAccSAMLCertificateDataSource --- PASS: TestAccSAMLCertificateDataSource (4.02s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/samlcertificate 5.593s === RUN TestAccServiceAccountResource === PAUSE TestAccServiceAccountResource === CONT TestAccServiceAccountResource --- PASS: TestAccServiceAccountResource (24.13s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/serviceaccount 25.688s === RUN TestAccSidecarBoundPortsDataSource === PAUSE TestAccSidecarBoundPortsDataSource === RUN TestAccSidecarIDDataSource === PAUSE TestAccSidecarIDDataSource === RUN TestAccSidecarResource === PAUSE TestAccSidecarResource === CONT TestAccSidecarBoundPortsDataSource === CONT TestAccSidecarResource === CONT TestAccSidecarIDDataSource --- PASS: TestAccSidecarIDDataSource (10.78s) --- PASS: TestAccSidecarBoundPortsDataSource (15.90s) --- PASS: TestAccSidecarResource (25.58s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar 27.148s === RUN TestAccSidecarCredentialsResource === PAUSE TestAccSidecarCredentialsResource === CONT TestAccSidecarCredentialsResource --- PASS: TestAccSidecarCredentialsResource (11.54s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar/credentials 13.512s === RUN TestAccSidecarHealthDataSource === PAUSE TestAccSidecarHealthDataSource === CONT TestAccSidecarHealthDataSource --- PASS: TestAccSidecarHealthDataSource (10.25s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar/health 11.816s === RUN TestAccSidecarInstanceDataSource === PAUSE TestAccSidecarInstanceDataSource === CONT TestAccSidecarInstanceDataSource --- PASS: TestAccSidecarInstanceDataSource (9.98s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar/instance 11.559s === RUN TestAccSidecarInstanceStatsDataSource === PAUSE TestAccSidecarInstanceStatsDataSource === CONT TestAccSidecarInstanceStatsDataSource --- PASS: TestAccSidecarInstanceStatsDataSource (6.12s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar/instance/stats 7.692s === RUN TestAccSidecarListenerDataSource === PAUSE TestAccSidecarListenerDataSource === RUN TestSidecarListenerResource === PAUSE TestSidecarListenerResource === CONT TestSidecarListenerResource === CONT TestAccSidecarListenerDataSource --- PASS: TestAccSidecarListenerDataSource (14.81s) --- PASS: TestSidecarListenerResource (28.70s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sidecar/listener 30.285s testing: warning: no tests to run PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/sweep (cached) [no tests to run] === RUN TestAccSystemInfoDataSource === PAUSE TestAccSystemInfoDataSource === CONT TestAccSystemInfoDataSource --- PASS: TestAccSystemInfoDataSource (4.58s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/systeminfo 6.132s === RUN TestAccAccessTokenSettingsResource === PAUSE TestAccAccessTokenSettingsResource === CONT TestAccAccessTokenSettingsResource --- PASS: TestAccAccessTokenSettingsResource (12.02s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/internal/tokensettings 13.972s === RUN TestAccProvider --- PASS: TestAccProvider (0.00s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/provider (cached) === RUN TestElementsMatch --- PASS: TestElementsMatch (0.00s) PASS ok github.com/cyralinc/terraform-provider-cyral/cyral/utils (cached)
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots 0.0% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarCloud
Description of the change
Fix invalid repo TLS option check in
cyral_repository_conf_auth
.Type of change
Checklists
Development
Code review
Testing
All tests ran successfully in a
v4.16
CP: