Skip to content

Commit

Permalink
add Stack to api-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
heckenmann authored and vehagn committed May 13, 2024
1 parent 7aac90a commit 4bfb2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app-src/mock/api/mocks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dashboardh" : {"Services":[{"ID":"a7cagxq4egaugeo3tlecyzs8b","Name":"dsd_docker-swarm-dashboard"},{"ID":"nbae9ifjdk1295i84v28yhc9a","Name":"logger"}],"Nodes":[{"ID":"urmsoywy41bcncsw3kkpooii3","Name":"","Hostname":"manager1","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":true,"Availability":"active","IP":"192.168.0.25","Tasks":{"nbae9ifjdk1295i84v28yhc9a":[{"ID":"s70ba9zukqhqhgzkw2fg3m4gt","Version":{"Index":49},"CreatedAt":"2023-10-08T09:55:14.640751536Z","UpdatedAt":"2023-10-08T09:55:16.402014849Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"chentex/random-logger:latest@sha256:7cae589926ce903c65a853c22b4e2923211cc19966ac8f8cc533bbcff335ca39","Args":["50","200"],"Init":false,"DNSConfig":{},"Isolation":"default"},"Resources":{"Limits":{},"Reservations":{}},"Placement":{"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"arm64","OS":"linux"},{"Architecture":"386","OS":"linux"}]},"ForceUpdate":0},"ServiceID":"nbae9ifjdk1295i84v28yhc9a","Slot":1,"NodeID":"urmsoywy41bcncsw3kkpooii3","Status":{"Timestamp":"2023-10-08T09:55:16.332764103Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"ed33d9a7068969338b93b482f6d59482a8bb2b0e5bce9fd13dcc10194e6fc516","PID":466,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","Volumes":null}]}},{"ID":"kr8exfqym0wt5cqkn1tsrdfpi","Name":"","Hostname":"manager2","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.27","Tasks":{}},{"ID":"35bnwxb4nphfho9qu8vvkjkfo","Name":"","Hostname":"manager3","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.24","Tasks":{"a7cagxq4egaugeo3tlecyzs8b":[{"ID":"j07tx8xehiefe5pmla9hqgz2o","Version":{"Index":42},"CreatedAt":"2023-10-08T09:53:47.912291827Z","UpdatedAt":"2023-10-08T09:53:50.319324694Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"ghcr.io/heckenmann/docker-swarm-dashboard:master@sha256:9c867456f06a8c114f8561b16270a7ab9125c6e3a4d57fbfaef86b70facf5751","Labels":{"com.docker.stack.namespace":"dsd"},"Env":["DOCKER_API_VERSION=1.35"],"Privileges":{"CredentialSpec":null,"SELinuxContext":null},"Mounts":[{"Type":"bind","Source":"/var/run/docker.sock","Target":"/var/run/docker.sock"}],"Isolation":"default"},"Resources":{},"Placement":{"Constraints":["node.role == manager"],"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"unknown","OS":"unknown"}]},"Networks":[{"Target":"t1lb66d75xks9dge9ql16xe5k","Aliases":["docker-swarm-dashboard"]}],"ForceUpdate":0},"ServiceID":"a7cagxq4egaugeo3tlecyzs8b","Slot":1,"NodeID":"35bnwxb4nphfho9qu8vvkjkfo","Status":{"Timestamp":"2023-10-08T09:53:50.256300019Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"3f4ef7992745e1d45344d18a836762b6fdc565e1763eb75dc2cae920dc7c63f3","PID":351,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","NetworksAttachments":[{"Network":{"ID":"qbnic931iq44z470a76fklr61","Version":{"Index":6},"CreatedAt":"2023-10-08T09:53:16.595918491Z","UpdatedAt":"2023-10-08T09:53:16.617134353Z","Spec":{"Name":"ingress","Labels":{},"DriverConfiguration":{},"Ingress":true,"IPAMOptions":{"Driver":{}},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4096"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.0.0/24","Gateway":"10.0.0.1"}]}},"Addresses":["10.0.0.8/24"]},{"Network":{"ID":"t1lb66d75xks9dge9ql16xe5k","Version":{"Index":33},"CreatedAt":"2023-10-08T09:53:47.679318765Z","UpdatedAt":"2023-10-08T09:53:47.683442016Z","Spec":{"Name":"dsd_default","Labels":{"com.docker.stack.namespace":"dsd"},"DriverConfiguration":{"Name":"overlay"},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4097"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.1.0/24","Gateway":"10.0.1.1"}]}},"Addresses":["10.0.1.3/24"]}],"Volumes":null}]}},{"ID":"zi3s8pm8tqsljegjay613sk5l","Name":"","Hostname":"worker1","Role":"worker","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.26","Tasks":{}},{"ID":"owbi3xuxnrffzn1dbpwsnnvpy","Name":"","Hostname":"worker2","Role":"worker","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.28","Tasks":{}}]},
"dashboardh" : {"Services":[{"ID":"a7cagxq4egaugeo3tlecyzs8b","Name":"dsd_docker-swarm-dashboard", "Stack": "dsd"},{"ID":"nbae9ifjdk1295i84v28yhc9a","Name":"logger", "Stack": ""}],"Nodes":[{"ID":"urmsoywy41bcncsw3kkpooii3","Name":"","Hostname":"manager1","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":true,"Availability":"active","IP":"192.168.0.25","Tasks":{"nbae9ifjdk1295i84v28yhc9a":[{"ID":"s70ba9zukqhqhgzkw2fg3m4gt","Version":{"Index":49},"CreatedAt":"2023-10-08T09:55:14.640751536Z","UpdatedAt":"2023-10-08T09:55:16.402014849Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"chentex/random-logger:latest@sha256:7cae589926ce903c65a853c22b4e2923211cc19966ac8f8cc533bbcff335ca39","Args":["50","200"],"Init":false,"DNSConfig":{},"Isolation":"default"},"Resources":{"Limits":{},"Reservations":{}},"Placement":{"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"arm64","OS":"linux"},{"Architecture":"386","OS":"linux"}]},"ForceUpdate":0},"ServiceID":"nbae9ifjdk1295i84v28yhc9a","Slot":1,"NodeID":"urmsoywy41bcncsw3kkpooii3","Status":{"Timestamp":"2023-10-08T09:55:16.332764103Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"ed33d9a7068969338b93b482f6d59482a8bb2b0e5bce9fd13dcc10194e6fc516","PID":466,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","Volumes":null}]}},{"ID":"kr8exfqym0wt5cqkn1tsrdfpi","Name":"","Hostname":"manager2","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.27","Tasks":{}},{"ID":"35bnwxb4nphfho9qu8vvkjkfo","Name":"","Hostname":"manager3","Role":"manager","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.24","Tasks":{"a7cagxq4egaugeo3tlecyzs8b":[{"ID":"j07tx8xehiefe5pmla9hqgz2o","Version":{"Index":42},"CreatedAt":"2023-10-08T09:53:47.912291827Z","UpdatedAt":"2023-10-08T09:53:50.319324694Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"ghcr.io/heckenmann/docker-swarm-dashboard:master@sha256:9c867456f06a8c114f8561b16270a7ab9125c6e3a4d57fbfaef86b70facf5751","Labels":{"com.docker.stack.namespace":"dsd"},"Env":["DOCKER_API_VERSION=1.35"],"Privileges":{"CredentialSpec":null,"SELinuxContext":null},"Mounts":[{"Type":"bind","Source":"/var/run/docker.sock","Target":"/var/run/docker.sock"}],"Isolation":"default"},"Resources":{},"Placement":{"Constraints":["node.role == manager"],"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"unknown","OS":"unknown"}]},"Networks":[{"Target":"t1lb66d75xks9dge9ql16xe5k","Aliases":["docker-swarm-dashboard"]}],"ForceUpdate":0},"ServiceID":"a7cagxq4egaugeo3tlecyzs8b","Slot":1,"NodeID":"35bnwxb4nphfho9qu8vvkjkfo","Status":{"Timestamp":"2023-10-08T09:53:50.256300019Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"3f4ef7992745e1d45344d18a836762b6fdc565e1763eb75dc2cae920dc7c63f3","PID":351,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","NetworksAttachments":[{"Network":{"ID":"qbnic931iq44z470a76fklr61","Version":{"Index":6},"CreatedAt":"2023-10-08T09:53:16.595918491Z","UpdatedAt":"2023-10-08T09:53:16.617134353Z","Spec":{"Name":"ingress","Labels":{},"DriverConfiguration":{},"Ingress":true,"IPAMOptions":{"Driver":{}},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4096"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.0.0/24","Gateway":"10.0.0.1"}]}},"Addresses":["10.0.0.8/24"]},{"Network":{"ID":"t1lb66d75xks9dge9ql16xe5k","Version":{"Index":33},"CreatedAt":"2023-10-08T09:53:47.679318765Z","UpdatedAt":"2023-10-08T09:53:47.683442016Z","Spec":{"Name":"dsd_default","Labels":{"com.docker.stack.namespace":"dsd"},"DriverConfiguration":{"Name":"overlay"},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4097"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.1.0/24","Gateway":"10.0.1.1"}]}},"Addresses":["10.0.1.3/24"]}],"Volumes":null}]}},{"ID":"zi3s8pm8tqsljegjay613sk5l","Name":"","Hostname":"worker1","Role":"worker","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.26","Tasks":{}},{"ID":"owbi3xuxnrffzn1dbpwsnnvpy","Name":"","Hostname":"worker2","Role":"worker","StatusMessage":"","StatusState":"ready","Leader":false,"Availability":"active","IP":"192.168.0.28","Tasks":{}}]},
"dashboardv" : {"Nodes":[{"ID":"urmsoywy41bcncsw3kkpooii3","Hostname":"manager1","IP":"192.168.0.25"},{"ID":"kr8exfqym0wt5cqkn1tsrdfpi","Hostname":"manager2","IP":"192.168.0.27"},{"ID":"35bnwxb4nphfho9qu8vvkjkfo","Hostname":"manager3","IP":"192.168.0.24"},{"ID":"zi3s8pm8tqsljegjay613sk5l","Hostname":"worker1","IP":"192.168.0.26"},{"ID":"owbi3xuxnrffzn1dbpwsnnvpy","Hostname":"worker2","IP":"192.168.0.28"}],"Services":[{"ID":"a7cagxq4egaugeo3tlecyzs8b","Name":"dsd_docker-swarm-dashboard","Stack":"dsd","Replication":"1","Tasks":{"35bnwxb4nphfho9qu8vvkjkfo":[{"ID":"j07tx8xehiefe5pmla9hqgz2o","Version":{"Index":42},"CreatedAt":"2023-10-08T09:53:47.912291827Z","UpdatedAt":"2023-10-08T09:53:50.319324694Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"ghcr.io/heckenmann/docker-swarm-dashboard:master@sha256:9c867456f06a8c114f8561b16270a7ab9125c6e3a4d57fbfaef86b70facf5751","Labels":{"com.docker.stack.namespace":"dsd"},"Env":["DOCKER_API_VERSION=1.35"],"Privileges":{"CredentialSpec":null,"SELinuxContext":null},"Mounts":[{"Type":"bind","Source":"/var/run/docker.sock","Target":"/var/run/docker.sock"}],"Isolation":"default"},"Resources":{},"Placement":{"Constraints":["node.role == manager"],"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"unknown","OS":"unknown"}]},"Networks":[{"Target":"t1lb66d75xks9dge9ql16xe5k","Aliases":["docker-swarm-dashboard"]}],"ForceUpdate":0},"ServiceID":"a7cagxq4egaugeo3tlecyzs8b","Slot":1,"NodeID":"35bnwxb4nphfho9qu8vvkjkfo","Status":{"Timestamp":"2023-10-08T09:53:50.256300019Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"3f4ef7992745e1d45344d18a836762b6fdc565e1763eb75dc2cae920dc7c63f3","PID":351,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","NetworksAttachments":[{"Network":{"ID":"qbnic931iq44z470a76fklr61","Version":{"Index":6},"CreatedAt":"2023-10-08T09:53:16.595918491Z","UpdatedAt":"2023-10-08T09:53:16.617134353Z","Spec":{"Name":"ingress","Labels":{},"DriverConfiguration":{},"Ingress":true,"IPAMOptions":{"Driver":{}},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4096"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.0.0/24","Gateway":"10.0.0.1"}]}},"Addresses":["10.0.0.8/24"]},{"Network":{"ID":"t1lb66d75xks9dge9ql16xe5k","Version":{"Index":33},"CreatedAt":"2023-10-08T09:53:47.679318765Z","UpdatedAt":"2023-10-08T09:53:47.683442016Z","Spec":{"Name":"dsd_default","Labels":{"com.docker.stack.namespace":"dsd"},"DriverConfiguration":{"Name":"overlay"},"Scope":"swarm"},"DriverState":{"Name":"overlay","Options":{"com.docker.network.driver.overlay.vxlanid_list":"4097"}},"IPAMOptions":{"Driver":{"Name":"default"},"Configs":[{"Subnet":"10.0.1.0/24","Gateway":"10.0.1.1"}]}},"Addresses":["10.0.1.3/24"]}],"Volumes":null}]}},{"ID":"nbae9ifjdk1295i84v28yhc9a","Name":"logger","Stack":"","Replication":"1","Tasks":{"urmsoywy41bcncsw3kkpooii3":[{"ID":"s70ba9zukqhqhgzkw2fg3m4gt","Version":{"Index":49},"CreatedAt":"2023-10-08T09:55:14.640751536Z","UpdatedAt":"2023-10-08T09:55:16.402014849Z","Labels":{},"Spec":{"ContainerSpec":{"Image":"chentex/random-logger:latest@sha256:7cae589926ce903c65a853c22b4e2923211cc19966ac8f8cc533bbcff335ca39","Args":["50","200"],"Init":false,"DNSConfig":{},"Isolation":"default"},"Resources":{"Limits":{},"Reservations":{}},"Placement":{"Platforms":[{"Architecture":"amd64","OS":"linux"},{"Architecture":"arm64","OS":"linux"},{"Architecture":"386","OS":"linux"}]},"ForceUpdate":0},"ServiceID":"nbae9ifjdk1295i84v28yhc9a","Slot":1,"NodeID":"urmsoywy41bcncsw3kkpooii3","Status":{"Timestamp":"2023-10-08T09:55:16.332764103Z","State":"running","Message":"started","ContainerStatus":{"ContainerID":"ed33d9a7068969338b93b482f6d59482a8bb2b0e5bce9fd13dcc10194e6fc516","PID":466,"ExitCode":0},"PortStatus":{}},"DesiredState":"running","Volumes":null}]}}]},
"stacks" : [{"Name":"(without stack)","Services":[{"ID":"nbae9ifjdk1295i84v28yhc9a","ServiceName":"logger","ShortName":"","Replication":"1","Created":"2023-10-08 09:55:14.637541897 +0000 UTC","Updated":"2023-10-08 09:55:14.637541897 +0000 UTC"}]},{"Name":"dsd","Services":[{"ID":"a7cagxq4egaugeo3tlecyzs8b","ServiceName":"dsd_docker-swarm-dashboard","ShortName":"docker-swarm-dashboard","Replication":"1","Created":"2023-10-08 09:53:47.905624345 +0000 UTC","Updated":"2023-10-08 09:53:47.909325291 +0000 UTC"}]}],
"nodes" : [{"ID":"urmsoywy41bcncsw3kkpooii3","Hostname":"manager1","Leader":true,"Role":"manager","State":"ready","Availability":"active","Reachability":"reachable","StatusAddr":"192.168.0.25","ManagerStatusAddr":"192.168.0.25:2377","Message":""},{"ID":"kr8exfqym0wt5cqkn1tsrdfpi","Hostname":"manager2","Leader":false,"Role":"manager","State":"ready","Availability":"active","Reachability":"reachable","StatusAddr":"192.168.0.27","ManagerStatusAddr":"192.168.0.27:2377","Message":""},{"ID":"35bnwxb4nphfho9qu8vvkjkfo","Hostname":"manager3","Leader":false,"Role":"manager","State":"ready","Availability":"active","Reachability":"reachable","StatusAddr":"192.168.0.24","ManagerStatusAddr":"192.168.0.24:2377","Message":""},{"ID":"zi3s8pm8tqsljegjay613sk5l","Hostname":"worker1","Leader":false,"Role":"worker","State":"ready","Availability":"active","Reachability":"","StatusAddr":"192.168.0.26","ManagerStatusAddr":"","Message":""},{"ID":"owbi3xuxnrffzn1dbpwsnnvpy","Hostname":"worker2","Leader":false,"Role":"worker","State":"ready","Availability":"active","Reachability":"","StatusAddr":"192.168.0.28","ManagerStatusAddr":"","Message":""}],
Expand Down

0 comments on commit 4bfb2d7

Please sign in to comment.