Skip to content

Gaap test fix #2642

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

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tencentcloud/acctest/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ const (
DefaultDayuBgpIp = "bgpip-00000294"
DefaultDayuNet = "net-0000007e"

DefaultGaapProxyId = "link-ljb08m2l"
DefaultGaapProxyId2 = "link-8lpyo88p"
DefaultGaapSecurityPolicyId = "sp-5lqp4l77"
DefaultGaapRealserverDomainId1 = "rs-qs0h6wxp"
DefaultGaapProxyId = "link-m9t4yho9"
DefaultGaapProxyId2 = "link-2rk61jn5"
DefaultGaapSecurityPolicyId = "sp-b0kh9zml"
DefaultGaapRealserverDomainId1 = "rs-620u0ahd"
DefaultGaapRealserverDomain1 = "github.com"
DefaultGaapRealserverDomainId2 = "rs-qcygnwpd"
DefaultGaapRealserverDomainId2 = "rs-9vkyi1av"
DefaultGaapRealserverDomain2 = "www.github.com"
DefaultGaapRealserverIpId1 = "rs-24e1ol23"
DefaultGaapRealserverIpId1 = "rs-4j6rtzqv"
DefaultGaapRealserverIp1 = "119.29.29.35"
DefaultGaapRealserverIpId2 = "rs-70qzt26p"
DefaultGaapRealserverIpId2 = "rs-3mlpbuut"
DefaultGaapRealserverIp2 = "1.1.1.5"
DefaultHttpsDomainCertificateId = "cert-crg2aynt"
DefaultHttpsDomainCertificateId = "cert-7su3evtr"

DefaultSecurityGroup = "sg-ijato2x1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Example Usage

```hcl
data "tencentcloud_gaap_custom_header" "custom_header" {
rule_id = "rule-9sdhv655"
rule_id = "rule-hddrxgpd"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func TestAccTencentCloudGaapCustomHeaderDataSource_basic(t *testing.T) {

const testAccGaapCustomHeaderDataSource = `
data "tencentcloud_gaap_custom_header" "custom_header" {
rule_id = "rule-9sdhv655"
rule_id = "rule-hddrxgpd"
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func TestAccTencentCloudGaapDomainErrorPageInfosDataSource_basic(t *testing.T) {

const testAccGaapDomainErrorPageInfosDataSource = `
data "tencentcloud_gaap_domain_error_page_infos" "domain_error_page_infos" {
error_page_ids = ["errorPage-mh4k07v5"]
error_page_ids = ["errorPage-ogeq0we1"]
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func TestAccTencentCloudGaapListenerRealServersDataSource_basic(t *testing.T) {

const testAccGaapListenerRealServersDataSource = `
data "tencentcloud_gaap_listener_real_servers" "listener_real_servers" {
listener_id = "listener-4yrzte61"
listener_id = "listener-2zfpeb8f"
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func TestAccTencentCloudGaapListenerStatisticsDataSource_basic(t *testing.T) {

const testAccGaapListenerStatisticsDataSource = `
data "tencentcloud_gaap_listener_statistics" "listener_statistics" {
listener_id = "listener-2s3lghkv"
start_time = "2023-10-19 00:00:00"
end_time = "2023-10-19 23:59:59"
listener_id = "listener-5xjxv77h"
start_time = "2024-05-20 00:00:00"
end_time = "2024-05-20 23:59:59"
metric_names = ["InBandwidth", "OutBandwidth", "InPackets", "OutPackets", "Concurrent"]
granularity = 300
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func TestAccTencentCloudGaapProxiesStatusDataSource_basic(t *testing.T) {

const testAccGaapProxiesStatusDataSource = `
data "tencentcloud_gaap_proxies_status" "proxies_status" {
proxy_ids = ["link-8lpyo88p"]
proxy_ids = ["link-m9t4yho9"]
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Example Usage

```hcl
data "tencentcloud_gaap_proxy_detail" "proxy_detail" {
proxy_id = "link-8lpyo88p"
proxy_id = "link-m9t4yho9"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ func TestAccTencentCloudGaapProxyDetailDataSource_basic(t *testing.T) {

const testAccGaapProxyDetailDataSource = `
data "tencentcloud_gaap_proxy_detail" "proxy_detail" {
proxy_id = "link-8lpyo88p"
proxy_id = "link-m9t4yho9"
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Example Usage

```hcl
data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" {
group_id = "link-8lpyo88p"
group_id = "link-m9t4yho9"
start_time = "2023-10-09 00:00:00"
end_time = "2023-10-09 23:59:59"
metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func TestAccTencentCloudGaapProxyGroupStatisticsDataSource_basic(t *testing.T) {
const testAccGaapProxyGroupStatisticsDataSource = `
data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" {
group_id = "link-8lpyo88p"
start_time = "2023-10-09 00:00:00"
end_time = "2023-10-09 23:59:59"
start_time = "2024-05-20 00:00:00"
end_time = "2024-05-20 23:59:59"
metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"]
granularity = 300
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data "tencentcloud_gaap_proxy_groups" "proxy_groups" {
project_id = 0
filters {
name = "GroupId"
values = ["lg-5anbbou5"]
values = ["lg-8h33uhwd"]
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAccTencentCloudGaapProxyGroupsDataSource_basic(t *testing.T) {
Config: testAccGaapProxyGroupsDataSource,
Check: resource.ComposeTestCheckFunc(
tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_proxy_groups.proxy_groups"),
resource.TestCheckResourceAttr("data.tencentcloud_gaap_proxy_groups.proxy_groups", "proxy_group_list.0.group_id", "lg-5anbbou5"),
resource.TestCheckResourceAttr("data.tencentcloud_gaap_proxy_groups.proxy_groups", "proxy_group_list.0.group_id", "lg-8h33uhwd"),
),
},
},
Expand All @@ -30,7 +30,7 @@ data "tencentcloud_gaap_proxy_groups" "proxy_groups" {
project_id = 0
filters {
name = "GroupId"
values = ["lg-5anbbou5"]
values = ["lg-8h33uhwd"]
}
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Example Usage

```hcl
data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" {
proxy_id = "link-8lpyo88p"
start_time = "2023-10-09 00:00:00"
end_time = "2023-10-09 23:59:59"
proxy_id = "link-m9t4yho9"
start_time = "2024-05-20 00:00:00"
end_time = "2024-05-20 23:59:59"
metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"]
granularity = 300
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func TestAccTencentCloudGaapProxyStatisticsDataSource_basic(t *testing.T) {

const testAccGaapProxyStatisticsDataSource = `
data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" {
proxy_id = "link-8lpyo88p"
start_time = "2023-10-09 00:00:00"
end_time = "2023-10-09 23:59:59"
proxy_id = "link-m9t4yho9"
start_time = "2024-05-20 00:00:00"
end_time = "2024-05-20 23:59:59"
metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"]
granularity = 300
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func TestAccTencentCloudGaapRuleRealServersDataSource_basic(t *testing.T) {

const testAccGaapRuleRealServersDataSource = `
data "tencentcloud_gaap_rule_real_servers" "rule_real_servers" {
rule_id = "rule-9sdhv655"
rule_id = "rule-hddrxgpd"
}
`
Loading