Skip to content

Commit

Permalink
Move test files so they are not on .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Bruijnzeels committed Oct 23, 2023
1 parent 25a777f commit 0cf0b38
Show file tree
Hide file tree
Showing 202 changed files with 5,897 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/upgrades/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ mod tests {
#[test]
fn prepare_then_upgrade_0_9_6() {
test_upgrade(
"test-resources/migrations/v0_9_6/data/",
"test-resources/migrations/v0_9_6/",
&["ca_objects", "cas", "pubd", "pubd_objects"],
);
}
Expand All @@ -1087,15 +1087,15 @@ mod tests {
#[test]
fn prepare_then_upgrade_0_10_3() {
test_upgrade(
"test-resources/migrations/v0_10_3/data/",
"test-resources/migrations/v0_10_3/",
&["ca_objects", "cas", "pubd", "pubd_objects"],
);
}

#[test]
fn prepare_then_upgrade_0_11_0() {
test_upgrade(
"test-resources/migrations/v0_11_0/data/",
"test-resources/migrations/v0_11_0/",
&["ca_objects", "cas", "pubd", "pubd_objects"],
);
}
Expand All @@ -1111,15 +1111,15 @@ mod tests {
#[test]
fn prepare_then_upgrade_0_12_3() {
test_upgrade(
"test-resources/migrations/v0_12_3/data/",
"test-resources/migrations/v0_12_3/",
&["ca_objects", "cas", "pubd", "pubd_objects"],
);
}

#[test]
fn prepare_then_upgrade_0_13_1() {
test_upgrade(
"test-resources/migrations/v0_13_1/data/",
"test-resources/migrations/v0_13_1/",
&["ca_objects", "cas", "keys", "pubd", "pubd_objects", "signers", "status"],
);
}
Expand Down
155 changes: 155 additions & 0 deletions test-resources/migrations/v0_10_3/ca_objects/testbed-client.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test-resources/migrations/v0_10_3/ca_objects/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"0.10.3"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:19:47.707453175Z",
"handle": "testbed-client",
"version": 1,
"sequence": 1,
"details": {
"type": "add_parent",
"parent": "testbed",
"contact": "rfc6492"
},
"effect": {
"result": "success",
"events": [
1
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:20:03.545594564Z",
"handle": "testbed-client",
"version": 2,
"sequence": 2,
"details": {
"type": "repo_update",
"service_uri": "https://testbed.krill.cloud/rfc8181/testbed-client/"
},
"effect": {
"result": "success",
"events": [
2
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"actor": "krill",
"time": "2023-10-19T08:20:04.680568334Z",
"handle": "testbed-client",
"version": 3,
"sequence": 3,
"details": {
"type": "update_resource_entitlements",
"parent": "testbed",
"entitlements": [
{
"resource_class_name": "0",
"resources": {
"asn": "AS204325, AS211321",
"ipv4": "185.49.140.0/22",
"ipv6": "2a04:b900::/29"
}
}
]
},
"effect": {
"result": "success",
"events": [
3,
4
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"actor": "krill",
"time": "2023-10-19T08:20:06.717504859Z",
"handle": "testbed-client",
"version": 5,
"sequence": 4,
"details": {
"type": "update_rcvd_cert",
"resource_class_name": "0",
"resources": {
"asn": "AS204325, AS211321",
"ipv4": "185.49.140.0/22",
"ipv6": "2a04:b900::/29"
}
},
"effect": {
"result": "success",
"events": [
5
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:20:18.082521404Z",
"handle": "testbed-client",
"version": 6,
"sequence": 5,
"details": {
"type": "roa_definition_updates",
"updates": {
"added": [
{
"asn": 8587,
"prefix": "2a04:b900::/30",
"max_length": 30
},
{
"asn": 211321,
"prefix": "2a04:b904::/48",
"max_length": 48
},
{
"asn": 211321,
"prefix": "2a04:b906::/48",
"max_length": 48
},
{
"asn": 211321,
"prefix": "2a04:b907::/47",
"max_length": 47
},
{
"asn": 211321,
"prefix": "2a04:b907::/48",
"max_length": 48
},
{
"asn": 8587,
"prefix": "185.49.140.0/23",
"max_length": 23
},
{
"asn": 211321,
"prefix": "185.49.142.0/23",
"max_length": 23
},
{
"asn": 211321,
"prefix": "185.49.142.0/24",
"max_length": 24
},
{
"asn": 211321,
"prefix": "185.49.143.0/24",
"max_length": 24
}
],
"removed": []
}
},
"effect": {
"result": "success",
"events": [
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:28:19.078095128Z",
"handle": "testbed-client",
"version": 16,
"sequence": 6,
"details": {
"type": "aspas_update_existing",
"customer": 204325,
"update": {
"added": [
"AS65005",
"AS65006"
],
"removed": []
}
},
"effect": {
"result": "error",
"msg": "No current ASPA exists for customer AS 'AS204325'"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:31:21.961752867Z",
"handle": "testbed-client",
"version": 16,
"sequence": 7,
"details": {
"type": "aspas_update",
"updates": {
"add_or_replace": [
{
"customer": 204325,
"providers": [
"AS65000",
"AS65001"
]
}
],
"remove": []
}
},
"effect": {
"result": "success",
"events": [
16,
17
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:34:52.214194343Z",
"handle": "testbed-client",
"version": 18,
"sequence": 8,
"details": {
"type": "aspas_update_existing",
"customer": 204325,
"update": {
"added": [
"AS65002(v4)",
"AS65003(v6)"
],
"removed": [
"AS65001",
"AS65000(v4)"
]
}
},
"effect": {
"result": "error",
"msg": "ASPA delta rejected:\n\n'Cannot remove the following unknown provider(s): \n AS65000(v4)\n'"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"actor": "admin-token",
"time": "2023-10-19T08:35:28.666963249Z",
"handle": "testbed-client",
"version": 18,
"sequence": 9,
"details": {
"type": "aspas_update_existing",
"customer": 204325,
"update": {
"added": [
"AS65002(v4)",
"AS65003(v6)"
],
"removed": [
"AS65001"
]
}
},
"effect": {
"result": "success",
"events": [
18,
19
]
}
}
13 changes: 13 additions & 0 deletions test-resources/migrations/v0_10_3/cas/testbed-client/delta-0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "testbed-client",
"version": 0,
"details": {
"id": {
"cert": {
"public_key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsPRviOjJtpjDicev6VqRPAFcf0jRhhZgecjKheNkab2rjL7LQUB34QfiC9ICQ30wRx77K1p+pszFrfKESoyMY+Z323G7+RY3pBwHEQyvaTaPAqCGCCsnunffCsMgRjQkS1c2Oft9U3MwDu88aweEptBmFpfdO5e1HRYlQPwSUZkS2ZgXoggOZ3+ePFYczot+Je3GuLpaytiV7lD4n15veMrUPSm8OUBwfOrh7xgRHAFI5AVQQLw99oMOkS+EqyLfXy/dS3Y35n2lUvjYyAwY3mrwl+epRq34ugP/71Nn0BJ/ug3Apzt1w113iFv42tUQXnLfWajPTKry+s3rdWCVRwIDAQAB",
"base64": "MIIDNDCCAhygAwIBAgIBATANBgkqhkiG9w0BAQsFADAzMTEwLwYDVQQDEyg5OEEwNUQ2Mzc3MENFQ0FCRjRCNDk5QURBODgyRjgyNTYwNTdGREY3MB4XDTIzMTAxOTA4MDYyNloXDTM4MTAxOTA4MTEyNlowMzExMC8GA1UEAxMoOThBMDVENjM3NzBDRUNBQkY0QjQ5OUFEQTg4MkY4MjU2MDU3RkRGNzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALD0b4joybaYw4nHr+lakTwBXH9I0YYWYHnIyoXjZGm9q4y+y0FAd+EH4gvSAkN9MEce+ytafqbMxa3yhEqMjGPmd9txu/kWN6QcBxEMr2k2jwKghggrJ7p33wrDIEY0JEtXNjn7fVNzMA7vPGsHhKbQZhaX3TuXtR0WJUD8ElGZEtmYF6IIDmd/njxWHM6LfiXtxri6WsrYle5Q+J9eb3jK1D0pvDlAcHzq4e8YERwBSOQFUEC8PfaDDpEvhKsi318v3Ut2N+Z9pVL42MgMGN5q8JfnqUat+LoD/+9TZ9ASf7oNwKc7dcNdd4hb+NrVEF5y31moz0yq8vrN63VglUcCAwEAAaNTMFEwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUmKBdY3cM7Kv0tJmtqIL4JWBX/fcwHwYDVR0jBBgwFoAUmKBdY3cM7Kv0tJmtqIL4JWBX/fcwDQYJKoZIhvcNAQELBQADggEBAKAcxeZbckWD4MVKjHDrgGyiDyDqRfDotPt86D2tacf/kxv9zvPg0/fLKcRfobJqHB1OuCDQWYxXuARFOkwNr+R/AdhmoFbL7DeqT54VL4UJFFic5HwHzo3FXFrUgjKlh7vnQMiHqDjTcjS7V2tdzb/6uIOMR75A41VGUQ3PGhEbhPf3AQ7pUgi/T9cs0EO2Eo6g1IkD1izhgV3QKz4S1fozWYNqm+YzxqGU/b4s2IVCCE3pmIDTSu8qKvRYVepDJtaavBVtf1A4VTKo0YFPPw8dLeE0dabmK1y+ftlktgraPsQ3B8WbOf7BD+DRpkzj7TEsSSxhPuBIc8AUS1qsiKA=",
"hash": "8db69f3830f42e89fbe8615fabd3501ddaa15d74df831a74d773c11716943e3a"
}
}
}
}
19 changes: 19 additions & 0 deletions test-resources/migrations/v0_10_3/cas/testbed-client/delta-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "testbed-client",
"version": 1,
"details": {
"type": "parent_added",
"parent": "testbed",
"contact": {
"type": "rfc6492",
"service_uri": "https://testbed.krill.cloud/rfc6492/testbed",
"parent_handle": "testbed",
"child_handle": "testbed-client",
"id_cert": {
"public_key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6mEUKjDWRgHlqzrCR0Oqg9IEWEB75yzPyEZDVIIiDwi91DY6FQU7Ep9DwSGgIAF8OPTw77UlJhFPgkdH0jt8uaU33Q8mZ2TNU3Wtq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/YFXAxuqhroJUm3j6pre/K/7BIhMwbcl/ckNL/7h/fQI5rQs2nt1sKB6CxTIhYPNTUF2JO9Gs5PBGJSyiVXm0E28SQ7nzMfUDqa+kAd/+0y0z6OJwpg3k2K9OVkx3PZxZ6wxkboNbqsSvEKaf2kAKNOpBnPw/MN98rRy5Jfi2e/fx0J1MpD2LkaoZZC23DlNwdu6jXkqWnbNLBxtRqlU2NbaAbhnYTEkOX9dIwlh+Ld+72S7wfGk=",
"hash": "337e6a3f6aa0aa95a5e52a321e19a384ca9fcfb7f9c84a8f0e147da29e53d7e9"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "testbed-client",
"version": 10,
"details": {
"type": "route_authorization_added",
"auth": "2a04:b907::/48-48 => 211321"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "testbed-client",
"version": 11,
"details": {
"type": "route_authorization_added",
"auth": "185.49.140.0/23-23 => 8587"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "testbed-client",
"version": 12,
"details": {
"type": "route_authorization_added",
"auth": "185.49.142.0/23-23 => 211321"
}
}
Loading

0 comments on commit 0cf0b38

Please sign in to comment.