Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOTE-970: update URIs as preparation for launch #892

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ List of development environments and their equivalent git branches.
|---------------------|--------------------|----------------------------|----------------|----------------------------------------------------------|
| ssg-dev.vote.gov | cms-dev.vote.gov | vote-drupal-dev | dev | App work that is ready for testing in cloud.gov |
| ssg-test.vote.gov | cms-test.vote.gov | vote-drupal-test | test | Pipeline development work ready for testing in cloud.gov |
| ssg-stage.vote.gov | cms-stage.vote.gov | vote-drupal-stage | stage | All work that is ready for release/UAT testing |
| ssg.vote.gov | cms.vote.gov | vote-drupal-prod | prod | All work that is approved and released |
| staging.vote.gov | cms-stage.vote.gov | vote-drupal-stage | stage | All work that is ready for release/UAT testing |
| vote.gov | cms.vote.gov | vote-drupal-prod | prod | All work that is approved and released |

## Table of Contents
- [Git standards](standards.md)
Expand Down
9 changes: 4 additions & 5 deletions scripts/upkeep
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ export bucket=$(echo $VCAP_SERVICES | jq -r '.s3[] | select(.name | strings | te
export bucket_endpoint=$(echo $VCAP_SERVICES | jq -r '.s3[] | select(.name | strings | test("static")).credentials.endpoint')

export ssg_endpoint="https://ssg-${environment}.vote.gov"
[ "${environment}" = "prod" ] && export ssg_endpoint="https://beta.vote.gov"

[ "${environment}" = "stage" ] && export ssg_endpoint="https://staging.vote.gov"
[ "${environment}" = "prod" ] && export ssg_endpoint="https://vote.gov"
export ssg_sitemap_endpoint=ssg_endpoint
[ "${environment}" = "prod" ] && export ssg_sitemap_endpoint="https://vote.gov"

cd ${app_path}
echo "**************************************************"
Expand All @@ -37,8 +36,8 @@ echo ""
echo "**************************************************"
echo "Running 'drush tome:static' in '${environment}'..."
echo "**************************************************"
drush tome:static --uri=${ssg_endpoint} --path-count=1 --retry-count=0 -y
drush tome:static-export-path '/sitemap.xml,/sitemap_generator/default/sitemap.xsl' --uri=${ssg_sitemap_endpoint} --retry-count=0 -y
drush tome:static --uri=${ssg_endpoint} --path-count=1 --retry-count=3 -y
drush tome:static-export-path '/sitemap.xml,/sitemap_generator/default/sitemap.xsl' --uri=${ssg_sitemap_endpoint} --retry-count=3 -y
drush cr
echo "'drush tome:static' task...completed!"
echo ""
Expand Down
10 changes: 5 additions & 5 deletions testing/pipeline.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const { defineConfig } = require("cypress");
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter',
e2e: {
baseUrl: 'https://ssg-stage.vote.gov/',
baseUrl: 'https://staging.vote.gov/',
redirectionLimit: 100,
video: false,
viewportHeight: 800,
viewportWidth: 1530,
chromeWebSecurity: false,
chromeWebSecurity: false,
"retries": {
"runMode": 2,
},
Expand All @@ -31,7 +31,7 @@ reporter: 'cypress-mochawesome-reporter',
"username": "editor_test",
"role": "content_editor"
},
// info for content mananger role
// info for content mananger role
"content_manager": {
"username": "manager_test",
"role": "content_manager"
Expand All @@ -45,12 +45,12 @@ reporter: 'cypress-mochawesome-reporter',
on('task', {
log(message) {
console.log(message)

return null
},
table(message) {
console.table(message)

return null
}
})
Expand Down