Skip to content

Commit 5f7eba0

Browse files
author
Quentin Brosse
committed
test
1 parent a509153 commit 5f7eba0

20 files changed

Lines changed: 39 additions & 19 deletions

internal/core/testing.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ func createTestClient(t *testing.T, testConfig *TestConfig, httpClient *http.Cli
218218
scw.WithDefaultZone(scw.ZoneFrPar1),
219219
scw.WithAuth("SCWXXXXXXXXXXXXXXXXX", "11111111-1111-1111-1111-111111111111"),
220220
scw.WithDefaultOrganizationID("11111111-1111-1111-1111-111111111111"),
221+
scw.WithDefaultProjectID("11111111-1111-1111-1111-111111111111"),
221222
scw.WithUserAgent("cli-e2e-test"),
222223
scw.WithHTTPClient(&http.Client{
223224
Transport: &retryableHTTPTransport{transport: http.DefaultTransport},

internal/namespaces/init/testdata/test-init-autocomplete-darwin-bash.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-darwin-fish.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-darwin-without.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-darwin-zsh.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-linux-bash.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-linux-fish.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-linux-without.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-linux-zsh.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

internal/namespaces/init/testdata/test-init-autocomplete-windows-bash.cassette.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interactions:
1212
"expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
1313
"195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
1414
true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
15-
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
15+
"organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
16+
"use_role_key": false}}'
1617
headers:
1718
Connection:
1819
- keep-alive

0 commit comments

Comments
 (0)