// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ApplicationDefintionReducer should activate edit service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "editMode": true, "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "backup": Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should add a service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "editMode": true, "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, Object { "ansibleGroup": "", "ansibleParameters": Array [], "backup": Object { "ansibleGroup": "", "ansibleParameters": Array [], "description": "", "foremanParameters": Array [], "hostgroup": "", "id": 3, "maxCount": "", "minCount": "", "name": "", "newEntry": true, }, "description": "", "foremanParameters": Array [], "hostgroup": "", "id": 3, "maxCount": "", "minCount": "", "name": "", "newEntry": true, }, ], } `; exports[`ApplicationDefintionReducer should cancel edit service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "editMode": false, "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should change edit service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "backup": Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "helloworld", }, ], } `; exports[`ApplicationDefintionReducer should confirm edit service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "editMode": false, "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should delete a service 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, ], } `; exports[`ApplicationDefintionReducer should initialize component 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "backup": Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should load param data be erroneous 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": "Something really bad happend", "loading": false, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should load param data be successful 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should request load param data 1`] = ` Object { "ansiblePlaybook": Object { "groups": Object { "all": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "dbservers": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "webservers": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], }, "id": 2, "name": "LAMP", }, "ansibleVarsAll": Array [ Object { "id": 0, "name": "repository", "value": "https://github.com/bennojoy/mywebapp.git", }, ], "columns": Array [ Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Name", "props": Object { "index": 0, "style": Object { "width": "15%", }, }, }, "property": "name", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Description", "props": Object { "index": 1, "style": Object { "width": "10%", }, }, }, "property": "description", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Hostgroup", "props": Object { "index": 2, "style": Object { "width": "20%", }, }, }, "property": "hostgroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Ansible Group", "props": Object { "index": 3, "style": Object { "width": "20%", }, }, }, "property": "ansibleGroup", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "min count", "props": Object { "index": 4, "style": Object { "width": "10%", }, }, }, "property": "minCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "max count", "props": Object { "index": 5, "style": Object { "width": "10%", }, }, }, "property": "maxCount", }, Object { "cell": Object { "formatters": Array [ null, ], }, "header": Object { "formatters": Array [ null, ], "label": "Actions", "props": Object { "index": 6, "style": Object { "width": "15%", }, }, }, "property": "actions", }, ], "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "loading": true, "name": false, "services": Array [ Object { "ansibleGroup": "webservers", "ansibleParameters": Array [ Object { "id": 0, "name": "dummy_var", "value": "0", }, ], "description": "", "foremanParameters": Array [ Object { "description": "", "id": 1, "locked": false, "name": "CP", "type": "computeprofile", "value": "1", }, Object { "description": "", "id": 2, "locked": true, "name": "LE", "type": "lifecycleenv", "value": "1", }, ], "hostgroup": "1", "id": 1, "maxCount": "", "minCount": "2", "name": "web", }, Object { "ansibleGroup": "dbservers", "ansibleParameters": Array [ Object { "id": 0, "name": "mysqlservice", "value": "mysqld", }, Object { "id": 1, "locked": true, "name": "mysql_port", "value": "3306", }, Object { "id": 2, "name": "dbuser", "value": "webapp", }, Object { "id": 3, "name": "dbname", "value": "ANSAP01", }, Object { "id": 4, "name": "upassword", "value": "Bond@007", }, Object { "id": 5, "name": "masterpassword", "value": "MySQL@007", }, ], "description": "", "foremanParameters": Array [], "hostgroup": "1", "id": 2, "maxCount": "", "minCount": "1", "name": "db", }, ], } `; exports[`ApplicationDefintionReducer should return initial state 1`] = ` Object { "error": Object { "errorMsg": "", "status": "", "statusText": "", }, "name": false, } `;