diff --git a/cypress/e2e/blueprints/gcp__wordpress__draft.cy.js b/cypress/e2e/blueprints/gcp__wordpress__draft.cy.js new file mode 100644 index 00000000..ff7bd09c --- /dev/null +++ b/cypress/e2e/blueprints/gcp__wordpress__draft.cy.js @@ -0,0 +1 @@ +// placeholder diff --git a/cypress/fixtures/generated/deployments/v1/k8s__wordpress__wordpress.json b/cypress/fixtures/generated/deployments/v1/k8s__wordpress__wordpress.json new file mode 100644 index 00000000..75d73ec4 --- /dev/null +++ b/cypress/fixtures/generated/deployments/v1/k8s__wordpress__wordpress.json @@ -0,0 +1 @@ +{"DeploymentTemplate":{"wordpress":{"name":"wordpress","title":"wordpress","cloud":"unfurl.relationships.ConnectsTo.K8sCluster","description":"Deploy into a Kubernetes cluster","__typename":"DeploymentTemplate","slug":"wordpress","blueprint":"wordpress","primary":"the_app","resourceTemplates":["db-dockerhost","the_app","container_service","dockerhost","redis-dockerhost","configurator-artifacts","dockerhost-aws-bootimage","aws_metadata","gcp_artifacts","dockerhost-gcp-bootimage","gcp_metadata","unfurl_service_account","__typename","self-hosted-mariadb","__route53dnszone"],"ResourceTemplate":{"db-dockerhost":{"type":"unfurl.nodes.K8sContainerHost","name":"db-dockerhost","title":"db-dockerhost","description":"","directives":[],"properties":[],"dependencies":[],"computedProperties":[],"visibility":"inherit","__typename":"ResourceTemplate"}},"environmentVariableNames":["APP_USERNAME","APP_PASSWORD","APP_EMAIL","APP_WP_VERSION","APP_BLOG_TITLE","APP_DATABASE_NAME","APP_DATABASE_USER","APP_DATABASE_PASSWORD","APP_SUBDOMAIN","APP_DB_TYPE","APP_DATABASE_VERSION","APP_ADMIN_EMAIL","APP_URL","DB_ROOT_USER","DB_ROOT_PASSWORD","DB_DATABASE_NAME","DB_DATABASE_TYPE","DB_SOFTWARE_VERSION","CONTAINER_CONTAINER_IMAGE","CONTAINER_PROTOCOL","CONTAINER_HOST","CONTAINER_PORT","CONTAINER_URL","MAIL_HOST","MAIL_PORT","MAIL_USER_NAME","MAIL_AUTHENTICATION","MAIL_PASSWORD","MAIL_PROTOCOL","MAIL_STARTTLS_AUTO"],"projectPath":"onecommons/blueprints/wordpress","source":"kubernetes"}},"ApplicationBlueprint":{"wordpress":{"name":"wordpress","__typename":"ApplicationBlueprint","title":"WordPress","primary":"WordPress","deploymentTemplates":["gcp-example","gcp","aws","digitalocean","selfhosted","kubernetes","wordpress"],"description":"WordPress is an powerful open-source website creation tool written in PHP and makes setting up a blog or website extremely simple.","livePreview":null,"sourceCodeUrl":null,"image":null,"primaryDeploymentBlueprint":"gcp"}},"DefaultTemplate":{"redis-dockerhost":{"name":"redis-dockerhost","type":"unfurl.nodes.DockerHost","title":"redis-dockerhost","description":"This is an incomplete, placeholder template that needs to be defined in your blueprint","directives":["default"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"aws_metadata":{"name":"aws_metadata","type":"unfurl.nodes.AWSMetadata","title":"aws_metadata","description":"","directives":["default"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"gcp_artifacts":{"name":"gcp_artifacts","type":"unfurl.nodes.LocalRepository","title":"gcp_artifacts","description":"","directives":["default"],"properties":[{"name":"repository","value":null},{"name":"url","value":null},{"name":"credential","value":null}],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"gcp_metadata":{"name":"gcp_metadata","type":"unfurl.nodes.GCPMetadata","title":"gcp_metadata","description":"","directives":["default"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"db-dockerhost":{"name":"db-dockerhost","type":"unfurl.nodes.DockerHost","title":"db-dockerhost","description":"This is an incomplete, placeholder template that needs to be defined in your blueprint","directives":["default"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"configurator-artifacts":{"name":"configurator-artifacts","type":"unfurl.nodes.LocalRepository","title":"configurator-artifacts","description":"","directives":["default"],"properties":[{"name":"repository","value":null},{"name":"url","value":null},{"name":"credential","value":null}],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"dockerhost-gcp-bootimage":{"name":"dockerhost-gcp-bootimage","type":"unfurl.nodes.GCPBootImage","title":"dockerhost-gcp-bootimage","description":"","directives":["default"],"properties":[{"name":"project","value":"ubuntu-os-cloud"},{"name":"family","value":"ubuntu-2204-lts"}],"dependencies":[{"constraint":{"name":"configures","title":"configures","description":"","min":0,"max":1,"match":null,"resourceType":"tosca.nodes.Root","visibility":"visible"},"name":"configures","__typename":"Requirement"}],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"dockerhost":{"name":"dockerhost","type":"unfurl.nodes.DockerHost","title":"dockerhost","description":"This is an incomplete, placeholder template that needs to be defined in your blueprint","directives":["default"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"dockerhost-aws-bootimage":{"name":"dockerhost-aws-bootimage","type":"unfurl.nodes.AMIBootImage","title":"dockerhost-aws-bootimage","description":"","directives":["default"],"properties":[{"name":"owner","value":"099720109477"},{"name":"name_regex","value":"jammy"}],"dependencies":[{"constraint":{"name":"configures","title":"configures","description":"","min":0,"max":1,"match":null,"resourceType":"tosca.nodes.Root","visibility":"visible"},"name":"configures","__typename":"Requirement"}],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]},"unfurl_service_account":{"name":"unfurl_service_account","type":"UnfurlGoogleCloudServiceAccount","title":"unfurl_service_account","description":"","directives":["default","dependent"],"properties":[],"dependencies":[],"visibility":"hidden","__typename":"DefaultTemplate","computedProperties":[]}},"ResourceTemplate":{"container_service":{"name":"container_service","type":"unfurl.nodes.ContainerService","title":"container_service","description":"","directives":[],"properties":[{"name":"container","value":{"user":"0:0","image":"bitnami/wordpress","ports":["8080:8080","8443:8443"],"volumes":["/var/www/wordpress:/bitnami/wordpress"],"environment":{"eval":{"to_env":{"BITNAMI_DEBUG":"true","WORDPRESS_USERNAME":{"eval":".configured_by::username"},"WORDPRESS_PASSWORD":{"eval":".configured_by::password"},"WORDPRESS_EMAIL":{"eval":".configured_by::email"},"WORDPRESS_BLOG_TITLE":{"eval":".configured_by::blog_title"},"WORDPRESS_HOST":{"eval":"host"},"WORDPRESS_DATABASE_NAME":{"eval":".configured_by::database_name"},"WORDPRESS_DATABASE_USER":{"eval":".configured_by::database_user"},"WORDPRESS_DATABASE_PASSWORD":{"eval":".configured_by::database_password"},"WORDPRESS_DATABASE_HOST":{"eval":".configured_by::.targets::db::host"},"WORDPRESS_DATABASE_PORT_NUMBER":{"eval":".configured_by::.targets::db::port"},"MYSQL_CLIENT_FLAVOR":"{{ '.configured_by::.targets::db::database_type' | eval | lower }}","MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES":"SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, CREATE VIEW, EVENT, TRIGGER, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EXECUTE","MYSQL_CLIENT_DATABASE_HOST":{"eval":".configured_by::.targets::db::host"},"MYSQL_CLIENT_DATABASE_ROOT_USER":{"eval":".configured_by::.targets::db::root_user"},"MYSQL_CLIENT_DATABASE_ROOT_PASSWORD":{"eval":".configured_by::.targets::db::root_password"},"MYSQL_CLIENT_DATABASE_PORT_NUMBER":{"eval":".configured_by::.targets::db:port"},"MYSQL_CLIENT_CREATE_DATABASE_NAME":{"eval":".configured_by::database_name"},"MYSQL_CLIENT_CREATE_DATABASE_USER":{"eval":".configured_by::database_user"},"MYSQL_CLIENT_CREATE_DATABASE_PASSWORD":{"eval":".configured_by::database_password"},"WORDPRESS_SMTP_HOST":{"eval":".configured_by::.targets::mail::host"},"WORDPRESS_SMTP_PORT":{"eval":".configured_by::.targets::mail::port"},"WORDPRESS_SMTP_USER":{"eval":".configured_by::.targets::mail::user_name"},"WORDPRESS_SMTP_PASSWORD":{"eval":".configured_by::.targets::mail::password"}}}}}}],"dependencies":[{"constraint":{"name":"host","title":"host","description":"","min":0,"max":1,"match":null,"resourceType":"unfurl.nodes.DockerHost","visibility":"hidden"},"name":"host","__typename":"Requirement","match":"dockerhost"}],"__typename":"ResourceTemplate","computedProperties":[]},"the_app":{"name":"the_app","type":"WordPress","title":"the_app","description":"","directives":[],"properties":[{"name":"username","value":"wordpress"},{"name":"password","value":{"get_env":"wordpress__the_app__password"}},{"name":"email","value":"admin@mailu.untrusted.me"},{"name":"wp_version","value":"5.9.3"},{"name":"database_password","value":{"get_env":"wordpress__the_app__database_password"}},{"name":"subdomain","value":"oct122247"}],"dependencies":[{"constraint":{"name":"db","title":"Database","description":"MySQL database instance","min":1,"max":1,"match":null,"resourceType":"MySQLDB","visibility":"visible"},"name":"db","__typename":"Requirement","completionStatus":"created","valid":true,"match":"self-hosted-mariadb"},{"constraint":{"name":"container","title":"container","description":"","visibility":"hidden","min":1,"max":1,"match":"container_service","resourceType":"unfurl.nodes.ContainerService"},"name":"container","__typename":"Requirement","match":"container_service"}],"__typename":"ResourceTemplate","computedProperties":[]},"dockerhost":{"name":"dockerhost","type":"unfurl.nodes.PublicK8sContainerHost","title":"dockerhost","description":"","directives":[],"properties":[],"dependencies":[{"constraint":{"name":"dns","title":"DNS","description":"DNS provider for domain name configuration","min":1,"max":1,"match":null,"resourceType":"unfurl.nodes.DNSZone","visibility":"visible"},"name":"dns","__typename":"Requirement","completionStatus":"connected","valid":true,"match":"__route53dnszone"}],"computedProperties":[],"__typename":"ResourceTemplate"},"self-hosted-mariadb":{"name":"self-hosted-mariadb","type":"MariaDBInstance","title":"Self-hosted MariaDB","__typename":"ResourceTemplate","properties":[{"name":"root_user","value":"root"},{"name":"root_password","value":{"get_env":"wordpress__self_hosted_mariadb__root_password"}}],"dependencies":[{"constraint":{"name":"host","title":"host","description":"","visibility":"hidden","min":0,"max":1,"match":"db-dockerhost","resourceType":"unfurl.nodes.DockerHost"},"name":"host","match":"db-dockerhost","target":null}]},"__route53dnszone":{"name":"__route53dnszone","type":"Route53DNSZone","title":"Route53DNSZone","__typename":"ResourceTemplate","properties":[{"name":"access_key_id","value":"AKIAVISQV7JAHDNJVS4B"},{"name":"secret_access_key","value":{"get_env":"route53dnszone__secret_access_key"}},{"name":"name","value":"opencloudservices.net"}],"dependencies":[]}},"DeploymentPath":{"environments/k8s-20221012t165758423z/onecommons/blueprints/wordpress/wordpress":{"name":"environments/k8s-20221012t165758423z/onecommons/blueprints/wordpress/wordpress","__typename":"DeploymentPath","environment":"k8s-20221012t165758423z","project_id":655,"pipelines":[{"id":3524,"flags":{"stuck":false,"auto_devops":false,"merge_request":false,"yaml_errors":false,"retryable":false,"cancelable":true,"failure_reason":false,"detached_merge_request_pipeline":false,"merge_request_pipeline":false,"latest":true},"commit_id":"b0e0c0636e8cc3ee712b3af4d9c9531ec59c89c4","variables":{"WORKFLOW":"deploy","DEPLOY_ENVIRONMENT":"k8s-20221012t165758423z","BLUEPRINT_PROJECT_URL":"https://app.dev.unfurl.cloud/onecommons/blueprints/wordpress.git","DEPLOY_PATH":"environments/k8s-20221012t165758423z/onecommons/blueprints/wordpress/wordpress","DEPLOYMENT":"wordpress","DEPLOYMENT_BLUEPRINT":"kubernetes"},"upstream_commit_id":null,"upstream_pipeline_id":null,"upstream_project_id":null}],"incremental_deploy":true}}} \ No newline at end of file