Skip to content

Commit

Permalink
Merge pull request #2592 from dcos/orlandohohmeier/fix/add-missing-fr…
Browse files Browse the repository at this point in the history
…amework-mocks

fix(Networks): add mock framework data to fix failing test
  • Loading branch information
Philipp Hinrichsen authored Jan 2, 2018
2 parents 030135d + 7cd77b1 commit 4151f5f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion tests/_fixtures/mesos/overlay-master.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,29 @@
],
"vtep_mac_oui": "70:B3:D5:00:00:00",
"vtep_subnet": "198.15.0.0\/20"
}
},
"frameworks": [
{
"tasks": [
{
"id": "sleep.7084272b-6b76-11e5-a953-08002719334a",
"statuses": [
{
"container_status": {
"network_infos": [
{
"ip_addresses": [
{
"ip_address": "9.0.2.34"
}
]
}
]
}
}
]
}
]
}
]
}
2 changes: 1 addition & 1 deletion tests/pages/networking/Networks-cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe("Networks", function() {
});

it("displays all columns for each network", function() {
cy.getAPIResponse("/mesos/master/state", function(fixture) {
cy.getAPIResponse("/mesos/overlay-master/state", function(fixture) {
cy.get("tbody tr").should(function($tableRows) {
getVisibleTableRows($tableRows).forEach(function(tableRow) {
const tableCells = tableRow.querySelectorAll("td");
Expand Down

0 comments on commit 4151f5f

Please sign in to comment.