Skip to content
Open
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
4 changes: 4 additions & 0 deletions test/integration/account_events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package integration
import (
"context"
"testing"
"time"

"github.com/linode/linodego/v2"
)
Expand All @@ -21,6 +22,9 @@ func TestAccountEvents_List_smoke(t *testing.T) {
t.Error(err)
}

// Sometimes it takes a bit longer to create a config
time.Sleep(time.Second * 3)

Comment thread
mawilk90 marked this conversation as resolved.
f := linodego.Filter{}
f.AddField(linodego.Eq, "entity.id", instance.ID)
f.AddField(linodego.Eq, "entity.type", "linode")
Expand Down
2 changes: 1 addition & 1 deletion test/integration/domains_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func setupDomain(t *testing.T, fixturesYaml string) (*linodego.Client, *linodego
client, fixtureTeardown := createTestClient(t, fixturesYaml)

createOpts := testDomainCreateOpts
createOpts.Domain = "linodego-blue-test.com"
createOpts.Domain = "linodego-blue-" + randString(6, digits) + "-test.com"

domain, err := client.CreateDomain(context.Background(), createOpts)
if err != nil {
Expand Down
642 changes: 358 additions & 284 deletions test/integration/fixtures/TestAccountEvents_List.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ interactions:
url: https://api.linode.com/v4beta/lke/tiers/enterprise/versions?page=1
method: GET
response:
body: '{"data": [{"id": "v1.31.8+lke5", "tier": "enterprise"}], "page": 1, "pages":
1, "results": 1}'
body: '{"data": [{"id": "v1.32.9+lke2", "tier": "enterprise"}, {"id": "v1.31.9+lke7",
"tier": "enterprise"}], "page": 1, "pages": 1, "results": 2}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand All @@ -34,13 +34,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "93"
- "139"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Tue, 19 Aug 2025 16:56:21 GMT
- Tue, 26 May 2026 11:44:56 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand All @@ -63,7 +63,7 @@ interactions:
code: 200
duration: ""
- request:
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"],"labels":null,"taints":null}],"label":"go-test-def","region":"no-osl-1","k8s_version":"v1.31.8+lke5","tags":["testing"],"tier":"enterprise","vpc_id":224219,"stack_type":"ipv4-ipv6"}'
body: '{"node_pools":[{"count":1,"type":"g6-standard-2","disks":null,"tags":["test"],"labels":null,"taints":null}],"label":"go-test-def","region":"gb-lon","k8s_version":"v1.32.9+lke2","tags":["testing"],"tier":"enterprise","vpc_id":498061,"stack_type":"ipv4-ipv6"}'
form: {}
headers:
Accept:
Expand All @@ -75,11 +75,11 @@ interactions:
url: https://api.linode.com/v4beta/lke/clusters
method: POST
response:
body: '{"id": 508689, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-test-def", "region": "no-osl-1", "k8s_version":
"v1.31.8+lke5", "tier": "enterprise", "control_plane": {"high_availability":
true, "audit_logs_enabled": false}, "apl_enabled": false, "vpc_id": 224219,
"subnet_id": null, "tags": ["testing"], "stack_type": "ipv4-ipv6"}'
body: '{"id": 607988, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-test-def", "region": "gb-lon", "k8s_version":
"v1.32.9+lke2", "tier": "enterprise", "control_plane": {"high_availability":
true}, "apl_enabled": false, "vpc_id": 498061, "subnet_id": null, "tags": ["testing"],
"stack_type": "ipv4-ipv6", "locks": []}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand All @@ -98,13 +98,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "382"
- "364"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Tue, 19 Aug 2025 16:56:27 GMT
- Tue, 26 May 2026 11:45:01 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -137,14 +137,14 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/508689
url: https://api.linode.com/v4beta/lke/clusters/607988
method: GET
response:
body: '{"id": 508689, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-test-def", "region": "no-osl-1", "k8s_version":
"v1.31.8+lke5", "tier": "enterprise", "control_plane": {"high_availability":
true, "audit_logs_enabled": false}, "apl_enabled": false, "vpc_id": 224219,
"subnet_id": null, "tags": ["testing"], "stack_type": "ipv4-ipv6"}'
body: '{"id": 607988, "status": "ready", "created": "2018-01-02T03:04:05", "updated":
"2018-01-02T03:04:05", "label": "go-test-def", "region": "gb-lon", "k8s_version":
"v1.32.9+lke2", "tier": "enterprise", "control_plane": {"high_availability":
true}, "apl_enabled": false, "vpc_id": 498061, "subnet_id": null, "tags": ["testing"],
"stack_type": "ipv4-ipv6", "locks": []}'
headers:
Access-Control-Allow-Credentials:
- "true"
Expand All @@ -163,13 +163,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- "382"
- "364"
Content-Security-Policy:
- default-src 'none'
Content-Type:
- application/json
Expires:
- Tue, 19 Aug 2025 16:56:27 GMT
- Tue, 26 May 2026 11:45:01 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down Expand Up @@ -203,7 +203,7 @@ interactions:
- application/json
User-Agent:
- linodego/dev https://github.com/linode/linodego
url: https://api.linode.com/v4beta/lke/clusters/508689
url: https://api.linode.com/v4beta/lke/clusters/607988
method: DELETE
response:
body: '{}'
Expand Down Expand Up @@ -231,7 +231,7 @@ interactions:
Content-Type:
- application/json
Expires:
- Tue, 19 Aug 2025 16:56:29 GMT
- Tue, 26 May 2026 11:45:04 GMT
Pragma:
- no-cache
Strict-Transport-Security:
Expand Down
Loading
Loading