Skip to content

Commit ade2ccb

Browse files
Merge branch 'master' into feat/create-cli-doc-website-poc
2 parents 25e4721 + 66158dd commit ade2ccb

File tree

82 files changed

+29989
-28596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+29989
-28596
lines changed

.github/workflows/nightly.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Nightly Acceptance Tests
2+
3+
on:
4+
schedule:
5+
# Will run at 00:00 every day
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
nightly:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
products:
14+
- account
15+
- applesilicon
16+
- baremetal
17+
- billing
18+
- block
19+
- cockpit
20+
- container
21+
- dedibox
22+
- documentdb
23+
- domain
24+
- edge_services
25+
- flexibleip
26+
- function
27+
- iam
28+
- inference
29+
- init
30+
- instance
31+
- iot
32+
- ipam
33+
- jobs
34+
- k8s
35+
- key_manager
36+
- lb
37+
- login
38+
- marketplace
39+
- mnq
40+
- mongodb
41+
- object
42+
- rdb
43+
- redis
44+
- registry
45+
- sdb
46+
- secret
47+
- tem
48+
- vpc
49+
- vpcgw
50+
- webhosting
51+
runs-on: ubuntu-latest
52+
steps:
53+
# Checkout should always be before setup-go to ensure caching is working
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
- name: Install Go
57+
uses: actions/setup-go@v5
58+
with:
59+
go-version: 1.22
60+
- name: Run Acceptance Tests
61+
run: go test -v ./internal/namespaces/${{ matrix.products }}/... -timeout=4h
62+
env:
63+
CLI_UPDATE_CASSETTES: true
64+
CLI_UPDATE_GOLDENS: true
65+
SCW_DEBUG: 1
66+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
67+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
68+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
69+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
70+
- name: Ping on failure
71+
if: ${{ failure() }}
72+
run: |
73+
curl -X POST -H 'Content-type: application/json' \
74+
--data '{
75+
"blocks": [
76+
{
77+
"type": "section",
78+
"text": {
79+
"type": "mrkdwn",
80+
"text": "'"Scaleway CLI Nightly workflow failed: <https://github.com/scaleway/scaleway-cli/actions/runs/${GITHUB_RUN_ID}|${FAILED_PRODUCT}>"'"
81+
}
82+
}
83+
]
84+
}' \
85+
${SLACK_WEBHOOK_NIGHTLY};
86+
env:
87+
SLACK_WEBHOOK_NIGHTLY: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
88+
FAILED_PRODUCT: ${{ matrix.products }}

cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ ARGS:
1414
[vpc-id] VPC ID to filter for.
1515
[attached] Defines whether to filter only for IPs which are attached to a resource
1616
[resource-id] Resource ID to filter for. Only IPs attached to this resource will be returned
17-
[resource-type] Resource type to filter for. Only IPs attached to this type of resource will be returned (unknown_type | custom | instance_server | instance_ip | instance_private_nic | lb_server | fip_ip | vpc_gateway | vpc_gateway_network | k8s_node | k8s_cluster | rdb_instance | redis_cluster | baremetal_server | baremetal_private_nic | llm_deployment | mgdb_instance)
17+
[resource-type] Resource type to filter for. Only IPs attached to this type of resource will be returned (unknown_type | custom | instance_server | instance_ip | instance_private_nic | lb_server | fip_ip | vpc_gateway | vpc_gateway_network | k8s_node | k8s_cluster | rdb_instance | redis_cluster | baremetal_server | baremetal_private_nic | llm_deployment | mgdb_instance | apple_silicon_server | apple_silicon_private_nic)
1818
[mac-address] MAC address to filter for. Only IPs attached to a resource with this MAC address will be returned
1919
[tags.{index}] Tags to filter for, only IPs with one or more matching tags will be returned
2020
[is-ipv6] Defines whether to filter only for IPv4s or IPv6s
2121
[resource-name] Attached resource name to filter for, only IPs attached to a resource with this string within their name will be returned.
22-
[resource-types.{index}] Resource types to filter for. Only IPs attached to these types of resources will be returned (unknown_type | custom | instance_server | instance_ip | instance_private_nic | lb_server | fip_ip | vpc_gateway | vpc_gateway_network | k8s_node | k8s_cluster | rdb_instance | redis_cluster | baremetal_server | baremetal_private_nic | llm_deployment | mgdb_instance)
22+
[resource-types.{index}] Resource types to filter for. Only IPs attached to these types of resources will be returned (unknown_type | custom | instance_server | instance_ip | instance_private_nic | lb_server | fip_ip | vpc_gateway | vpc_gateway_network | k8s_node | k8s_cluster | rdb_instance | redis_cluster | baremetal_server | baremetal_private_nic | llm_deployment | mgdb_instance | apple_silicon_server | apple_silicon_private_nic)
2323
[organization-id] Organization ID to filter for. Only IPs belonging to this Organization will be returned
2424
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
2525

cmd/scw/testdata/test-all-usage-ipfs-name-usage.golden

Lines changed: 0 additions & 15 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-create-by-cid-usage.golden

Lines changed: 0 additions & 26 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-create-by-url-usage.golden

Lines changed: 0 additions & 25 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-delete-usage.cassette.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-delete-usage.golden

Lines changed: 0 additions & 21 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-get-usage.cassette.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-get-usage.golden

Lines changed: 0 additions & 20 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-ipfs-pin-list-usage.golden

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)