Skip to content

Commit

Permalink
Update/a2p Consolidate country data in api-core-tests (woocommerce#35557
Browse files Browse the repository at this point in the history
)

* Consolidate country data

* update test data

* remove upper case files

* remove upper case files

* remove upper case files

* update country data tests

* countries states updates for local

* revert settings-crud.test
  • Loading branch information
nigeljamesstevenson authored Nov 23, 2022
1 parent fd7c728 commit c35d624
Show file tree
Hide file tree
Showing 252 changed files with 12,070 additions and 20,706 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Update country data in api-core-tests to prevent numerous test data updates
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/ad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AD",
"name": "Andorra",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ad"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/ae.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AE",
"name": "United Arab Emirates",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ae"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/af.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AF",
"name": "Afghanistan",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/af"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/ag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AG",
"name": "Antigua and Barbuda",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ag"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/ai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AI",
"name": "Anguilla",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ai"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
66 changes: 66 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/al.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"code": "AL",
"name": "Albania",
"states": [
{
"code": "AL-01",
"name": "Berat"
},
{
"code": "AL-09",
"name": "Dibër"
},
{
"code": "AL-02",
"name": "Durrës"
},
{
"code": "AL-03",
"name": "Elbasan"
},
{
"code": "AL-04",
"name": "Fier"
},
{
"code": "AL-05",
"name": "Gjirokastër"
},
{
"code": "AL-06",
"name": "Korçë"
},
{
"code": "AL-07",
"name": "Kukës"
},
{
"code": "AL-08",
"name": "Lezhë"
},
{
"code": "AL-10",
"name": "Shkodër"
},
{
"code": "AL-11",
"name": "Tirana"
},
{
"code": "AL-12",
"name": "Vlorë"
}
],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/al"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/am.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AM",
"name": "Armenia",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/am"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
90 changes: 90 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/ao.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"code": "AO",
"name": "Angola",
"states": [
{
"code": "BGO",
"name": "Bengo"
},
{
"code": "BLU",
"name": "Benguela"
},
{
"code": "BIE",
"name": "Bié"
},
{
"code": "CAB",
"name": "Cabinda"
},
{
"code": "CNN",
"name": "Cunene"
},
{
"code": "HUA",
"name": "Huambo"
},
{
"code": "HUI",
"name": "Huíla"
},
{
"code": "CCU",
"name": "Kuando Kubango"
},
{
"code": "CNO",
"name": "Kwanza-Norte"
},
{
"code": "CUS",
"name": "Kwanza-Sul"
},
{
"code": "LUA",
"name": "Luanda"
},
{
"code": "LNO",
"name": "Lunda-Norte"
},
{
"code": "LSU",
"name": "Lunda-Sul"
},
{
"code": "MAL",
"name": "Malanje"
},
{
"code": "MOX",
"name": "Moxico"
},
{
"code": "NAM",
"name": "Namibe"
},
{
"code": "UIG",
"name": "Uíge"
},
{
"code": "ZAI",
"name": "Zaire"
}
],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ao"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
17 changes: 17 additions & 0 deletions plugins/woocommerce/tests/api-core-tests/data/countries/aq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"code": "AQ",
"name": "Antarctica",
"states": [],
"_links": {
"self": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/aq"
}
],
"collection": [
{
"href": "http://localhost:8086/wp-json/wc/v3/data/countries"
}
]
}
}
Loading

0 comments on commit c35d624

Please sign in to comment.