Skip to content

Commit

Permalink
VACMS-2313: Set permissions for Q&A Entity Browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-c committed Aug 17, 2020
1 parent fc034fa commit cea54a9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/sync/user.role.content_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ permissions:
- 'access media entity browser pages'
- 'access media overview'
- 'access media_browser entity browser pages'
- 'access q_a_browser entity browser pages'
- 'access toolbar'
- 'access user profiles'
- 'access vamc_operating_statuses entity browser pages'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_creator_benefits_hubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
- 'access alert_blocks entity browser pages'
- 'access files overview'
- 'access media entity browser pages'
- 'access q_a_browser entity browser pages'
- 'clone block entity'
- 'clone block_content entity'
- 'clone field_config entity'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions:
- 'access media entity browser pages'
- 'access media overview'
- 'access media_browser entity browser pages'
- 'access q_a_browser entity browser pages'
- 'access shortcuts'
- 'access toolbar'
- 'access user profiles'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions:
- 'access media entity browser pages'
- 'access media overview'
- 'access media_browser entity browser pages'
- 'access q_a_browser entity browser pages'
- 'access shortcuts'
- 'access toolbar'
- 'access user profiles'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.content_reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions:
- 'access media entity browser pages'
- 'access media overview'
- 'access media_browser entity browser pages'
- 'access q_a_browser entity browser pages'
- 'access shortcuts'
- 'access toolbar'
- 'access user profiles'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.vamc_content_creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
- 'access alert_blocks entity browser pages'
- 'access files overview'
- 'access media entity browser pages'
- 'access q_a_browser entity browser pages'
- 'clone block entity'
- 'clone block_content entity'
- 'clone field_config entity'
Expand Down

2 comments on commit cea54a9

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Test Failed: va/tests/phpunit
phpunit --exclude-group disabled tests/phpunit --colors=always
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 17:
  - Element 'php': Character content other than whitespace is not allowed because the content type is 'element-only'.

  Test results may not be as expected.


Testing tests/phpunit
........................F.FFF..                                   31 / 31 (100%)

Time: 31.69 seconds, Memory: 384.00 MB

There were 4 failures:

1) tests\phpunit\SecurityRolesPermissions::testSecurityRolesPermissions with data set #2 ('content_admin', array('access administration pages', 'access alert_blocks entity br... pages', 'access files overview', 'access image_browser entity b... pages', 'access media entity browser pages', 'access media overview', 'access media_browser entity b... pages', 'access toolbar', 'access user profiles', 'access vamc_operating_statuse... pages', 'administer menu', 'administer nodes', 'administer taxonomy', 'break content lock', 'bypass node access', 'bypass workbench access', 'clone block entity', 'clone block_content entity', 'clone field_config entity', 'clone file entity', 'clone media entity', 'clone menu entity', 'clone node entity', 'clone paragraph entity', 'create alert block content', 'create document media', 'create image media', 'create media', 'create promo block content', 'create url aliases', 'create video media', 'delete any alert block content', 'delete any document media', 'delete any image media', 'delete any media', 'delete any promo block content', 'delete any video media', 'delete media', 'delete own document media', 'delete own image media', 'delete own video media', 'edit any document media', 'edit any image media', 'edit any video media', 'edit own document media', 'edit own image media', 'edit own video media', 'execute entity:break_lock node', 'execute publish_latest_revisi...n node', 'execute views_bulk_edit all', 'export tablefield', 'import tablefield', 'link to any page', 'manipulate all entityqueues', 'manipulate entityqueues', 'notify of path changes', 'override all authored by option', 'rebuild tablefield', 'update any alert block content', 'update any media', 'update any promo block content', 'update media', 'use editorial transition archive', 'use editorial transition arch...lished', 'use editorial transition crea..._draft', 'use editorial transition publish', 'use editorial transition review', 'use editorial transition stag...ishing', 'use moderation sidebar', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', 'va gov deploy content build', 'view all media revisions', 'view any unpublished content', 'view latest version', 'view node link report', 'view sections in toolbar', 'view the administration theme', 'view unpublished paragraphs', 'view workbench access information'))
The permissions for the content_admin do not match the expected permissions.  Make the expected look like this, to get the test passing: 
 'access administration pages',
 'access alert_blocks entity browser pages',
 'access files overview',
 'access image_browser entity browser pages',
 'access media entity browser pages',
 'access media overview',
 'access media_browser entity browser pages',
 'access q_a_browser entity browser pages',
 'access toolbar',
 'access user profiles',
 'access vamc_operating_statuses entity browser pages',
 'administer menu',
 'administer nodes',
 'administer taxonomy',
 'break content lock',
 'bypass node access',
 'bypass workbench access',
 'clone block entity',
 'clone block_content entity',
 'clone field_config entity',
 'clone file entity',
 'clone media entity',
 'clone menu entity',
 'clone node entity',
 'clone paragraph entity',
 'create alert block content',
 'create document media',
 'create image media',
 'create media',
 'create promo block content',
 'create url aliases',
 'create video media',
 'delete any alert block content',
 'delete any document media',
 'delete any image media',
 'delete any media',
 'delete any promo block content',
 'delete any video media',
 'delete media',
 'delete own document media',
 'delete own image media',
 'delete own video media',
 'edit any document media',
 'edit any image media',
 'edit any video media',
 'edit own document media',
 'edit own image media',
 'edit own video media',
 'execute entity:break_lock node',
 'execute publish_latest_revision_action node',
 'execute views_bulk_edit all',
 'export tablefield',
 'import tablefield',
 'link to any page',
 'manipulate all entityqueues',
 'manipulate entityqueues',
 'notify of path changes',
 'override all authored by option',
 'rebuild tablefield',
 'update any alert block content',
 'update any media',
 'update any promo block content',
 'update media',
 'use editorial transition archive',
 'use editorial transition archived_published',
 'use editorial transition create_new_draft',
 'use editorial transition publish',
 'use editorial transition review',
 'use editorial transition stage_for_publishing',
 'use moderation sidebar',
 'use text format rich_text',
 'use text format rich_text_limited',
 'use workbench access',
 'va gov deploy content build',
 'view all media revisions',
 'view any unpublished content',
 'view latest version',
 'view node link report',
 'view sections in toolbar',
 'view the administration theme',
 'view unpublished paragraphs',
 'view workbench access information'

Failed asserting that false is true.

/var/aegir/projects/cms/pr2685/tests/phpunit/SecurityRolesPermissionsTest.php:36

2) tests\phpunit\SecurityRolesPermissions::testSecurityRolesPermissions with data set #4 ('content_editor', array('access administration pages', 'access alert_blocks entity br... pages', 'access content overview', 'access files overview', 'access image_browser entity b... pages', 'access media entity browser pages', 'access media overview', 'access media_browser entity b... pages', 'access shortcuts', 'access toolbar', 'access user profiles', 'access vamc_operating_statuse... pages', 'administer menu', 'break content lock', 'create alert block content', 'create document media', 'create image media', 'create media', 'create promo block content', 'create va_form content', 'create video media', 'delete media', 'edit any document media', 'edit any documentation_page content', 'edit any event content', 'edit any event_listing content', 'edit any full_width_banner_al...ontent', 'edit any health_care_local_fa...ontent', 'edit any health_care_local_he...ontent', 'edit any health_care_region_d...ontent', 'edit any health_care_region_p...ontent', 'edit any health_services_list...ontent', 'edit any image media', 'edit any landing_page content', 'edit any leadership_listing content', 'edit any locations_listing content', 'edit any news_story content', 'edit any office content', 'edit any outreach_asset content', 'edit any page content', 'edit any person_profile content', 'edit any press_release content', 'edit any press_releases_listi...ontent', 'edit any publication_listing content', 'edit any regional_health_care...ontent', 'edit any story_listing content', 'edit any support_service content', 'edit any va_form content', 'edit any vamc_operating_statu...ontent', 'edit any video media', 'edit own documentation_page content', 'edit own event content', 'edit own event_listing content', 'edit own full_width_banner_al...ontent', 'edit own health_care_local_fa...ontent', 'edit own health_care_local_he...ontent', 'edit own health_care_region_d...ontent', 'edit own health_care_region_p...ontent', 'edit own health_services_list...ontent', 'edit own landing_page content', 'edit own locations_listing content', 'edit own news_story content', 'edit own office content', 'edit own outreach_asset content', 'edit own page content', 'edit own person_profile content', 'edit own press_release content', 'edit own press_releases_listi...ontent', 'edit own publication_listing content', 'edit own regional_health_care...ontent', 'edit own story_listing content', 'edit own support_service content', 'edit own va_form content', 'edit own vamc_operating_statu...ontent', 'execute entity:break_lock node', 'notify of path changes', 'rebuild tablefield', 'schedule editorial transition..._draft', 'update any alert block content', 'update any media', 'update any promo block content', 'update media', 'use editorial transition arch...lished', 'use editorial transition crea..._draft', 'use editorial transition review', 'use moderation sidebar', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', 'view all media revisions', 'view all revisions', 'view any unpublished content', 'view event revisions', 'view event_listing revisions', 'view full_width_banner_alert revisions', 'view health_care_local_facili...isions', 'view health_care_local_health...isions', 'view health_care_region_detai...isions', 'view health_care_region_page revisions', 'view landing_page revisions', 'view latest version', 'view news_story revisions', 'view node link report', 'view office revisions', 'view outreach_asset revisions', 'view own unpublished content', 'view page revisions', 'view person_profile revisions', 'view press_release revisions', 'view publication_listing revisions', 'view regional_health_care_ser...isions', 'view sections in toolbar', 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', 'view va_form revisions', 'view vamc_operating_status_an...isions', 'view workbench access information'))
The permissions for the content_editor do not match the expected permissions.  Make the expected look like this, to get the test passing: 
 'access administration pages',
 'access alert_blocks entity browser pages',
 'access content overview',
 'access files overview',
 'access image_browser entity browser pages',
 'access media entity browser pages',
 'access media overview',
 'access media_browser entity browser pages',
 'access q_a_browser entity browser pages',
 'access shortcuts',
 'access toolbar',
 'access user profiles',
 'access vamc_operating_statuses entity browser pages',
 'administer menu',
 'break content lock',
 'create alert block content',
 'create document media',
 'create image media',
 'create media',
 'create promo block content',
 'create va_form content',
 'create video media',
 'delete media',
 'edit any document media',
 'edit any documentation_page content',
 'edit any event content',
 'edit any event_listing content',
 'edit any full_width_banner_alert content',
 'edit any health_care_local_facility content',
 'edit any health_care_local_health_service content',
 'edit any health_care_region_detail_page content',
 'edit any health_care_region_page content',
 'edit any health_services_listing content',
 'edit any image media',
 'edit any landing_page content',
 'edit any leadership_listing content',
 'edit any locations_listing content',
 'edit any news_story content',
 'edit any office content',
 'edit any outreach_asset content',
 'edit any page content',
 'edit any person_profile content',
 'edit any press_release content',
 'edit any press_releases_listing content',
 'edit any publication_listing content',
 'edit any regional_health_care_service_des content',
 'edit any story_listing content',
 'edit any support_service content',
 'edit any va_form content',
 'edit any vamc_operating_status_and_alerts content',
 'edit any video media',
 'edit own documentation_page content',
 'edit own event content',
 'edit own event_listing content',
 'edit own full_width_banner_alert content',
 'edit own health_care_local_facility content',
 'edit own health_care_local_health_service content',
 'edit own health_care_region_detail_page content',
 'edit own health_care_region_page content',
 'edit own health_services_listing content',
 'edit own landing_page content',
 'edit own locations_listing content',
 'edit own news_story content',
 'edit own office content',
 'edit own outreach_asset content',
 'edit own page content',
 'edit own person_profile content',
 'edit own press_release content',
 'edit own press_releases_listing content',
 'edit own publication_listing content',
 'edit own regional_health_care_service_des content',
 'edit own story_listing content',
 'edit own support_service content',
 'edit own va_form content',
 'edit own vamc_operating_status_and_alerts content',
 'execute entity:break_lock node',
 'notify of path changes',
 'rebuild tablefield',
 'schedule editorial transition create_new_draft',
 'update any alert block content',
 'update any media',
 'update any promo block content',
 'update media',
 'use editorial transition archived_published',
 'use editorial transition create_new_draft',
 'use editorial transition review',
 'use moderation sidebar',
 'use text format rich_text',
 'use text format rich_text_limited',
 'use workbench access',
 'view all media revisions',
 'view all revisions',
 'view any unpublished content',
 'view event revisions',
 'view event_listing revisions',
 'view full_width_banner_alert revisions',
 'view health_care_local_facility revisions',
 'view health_care_local_health_service revisions',
 'view health_care_region_detail_page revisions',
 'view health_care_region_page revisions',
 'view landing_page revisions',
 'view latest version',
 'view news_story revisions',
 'view node link report',
 'view office revisions',
 'view outreach_asset revisions',
 'view own unpublished content',
 'view page revisions',
 'view person_profile revisions',
 'view press_release revisions',
 'view publication_listing revisions',
 'view regional_health_care_service_des revisions',
 'view sections in toolbar',
 'view support_service revisions',
 'view the administration theme',
 'view unpublished paragraphs',
 'view va_form revisions',
 'view vamc_operating_status_and_alerts revisions',
 'view workbench access information'

Failed asserting that false is true.

/var/aegir/projects/cms/pr2685/tests/phpunit/SecurityRolesPermissionsTest.php:36

3) tests\phpunit\SecurityRolesPermissions::testSecurityRolesPermissions with data set #5 ('content_reviewer', array('access administration pages', 'access alert_blocks entity br... pages', 'access content overview', 'access files overview', 'access image_browser entity b... pages', 'access media entity browser pages', 'access media overview', 'access media_browser entity b... pages', 'access shortcuts', 'access toolbar', 'access user profiles', 'access vamc_operating_statuse... pages', 'administer menu', 'break content lock', 'create alert block content', 'create document media', 'create image media', 'create media', 'create promo block content', 'create video media', 'delete media', 'edit any document media', 'edit any documentation_page content', 'edit any event content', 'edit any event_listing content', 'edit any full_width_banner_al...ontent', 'edit any health_care_local_fa...ontent', 'edit any health_care_local_he...ontent', 'edit any health_care_region_d...ontent', 'edit any health_care_region_p...ontent', 'edit any image media', 'edit any landing_page content', 'edit any leadership_listing content', 'edit any news_story content', 'edit any office content', 'edit any outreach_asset content', 'edit any page content', 'edit any person_profile content', 'edit any press_release content', 'edit any publication_listing content', 'edit any regional_health_care...ontent', 'edit any support_service content', 'edit any va_form content', 'edit any vamc_operating_statu...ontent', 'edit any video media', 'edit own documentation_page content', 'edit own event content', 'edit own event_listing content', 'edit own full_width_banner_al...ontent', 'edit own health_care_local_fa...ontent', 'edit own health_care_local_he...ontent', 'edit own health_care_region_d...ontent', 'edit own health_care_region_p...ontent', 'edit own landing_page content', 'edit own news_story content', 'edit own office content', 'edit own outreach_asset content', 'edit own page content', 'edit own person_profile content', 'edit own press_release content', 'edit own publication_listing content', 'edit own regional_health_care...ontent', 'edit own support_service content', 'edit own va_form content', 'edit own vamc_operating_statu...ontent', 'execute entity:break_lock node', 'notify of path changes', 'rebuild tablefield', 'schedule editorial transition..._draft', 'update any alert block content', 'update any media', 'update any promo block content', 'update media', 'use editorial transition arch...lished', 'use editorial transition crea..._draft', 'use editorial transition review', 'use editorial transition stag...ishing', 'use moderation sidebar', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', 'view all media revisions', 'view all revisions', 'view any unpublished content', 'view event revisions', 'view event_listing revisions', 'view full_width_banner_alert revisions', 'view health_care_local_facili...isions', 'view health_care_local_health...isions', 'view health_care_region_detai...isions', 'view health_care_region_page revisions', 'view landing_page revisions', 'view latest version', 'view news_story revisions', 'view node link report', 'view office revisions', 'view outreach_asset revisions', 'view own unpublished content', 'view page revisions', 'view person_profile revisions', 'view press_release revisions', 'view publication_listing revisions', 'view regional_health_care_ser...isions', 'view sections in toolbar', 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', 'view va_form revisions', 'view vamc_operating_status_an...isions', 'view workbench access information'))
The permissions for the content_reviewer do not match the expected permissions.  Make the expected look like this, to get the test passing: 
 'access administration pages',
 'access alert_blocks entity browser pages',
 'access content overview',
 'access files overview',
 'access image_browser entity browser pages',
 'access media entity browser pages',
 'access media overview',
 'access media_browser entity browser pages',
 'access q_a_browser entity browser pages',
 'access shortcuts',
 'access toolbar',
 'access user profiles',
 'access vamc_operating_statuses entity browser pages',
 'administer menu',
 'break content lock',
 'create alert block content',
 'create document media',
 'create image media',
 'create media',
 'create promo block content',
 'create video media',
 'delete media',
 'edit any document media',
 'edit any documentation_page content',
 'edit any event content',
 'edit any event_listing content',
 'edit any full_width_banner_alert content',
 'edit any health_care_local_facility content',
 'edit any health_care_local_health_service content',
 'edit any health_care_region_detail_page content',
 'edit any health_care_region_page content',
 'edit any image media',
 'edit any landing_page content',
 'edit any leadership_listing content',
 'edit any news_story content',
 'edit any office content',
 'edit any outreach_asset content',
 'edit any page content',
 'edit any person_profile content',
 'edit any press_release content',
 'edit any publication_listing content',
 'edit any regional_health_care_service_des content',
 'edit any support_service content',
 'edit any va_form content',
 'edit any vamc_operating_status_and_alerts content',
 'edit any video media',
 'edit own documentation_page content',
 'edit own event content',
 'edit own event_listing content',
 'edit own full_width_banner_alert content',
 'edit own health_care_local_facility content',
 'edit own health_care_local_health_service content',
 'edit own health_care_region_detail_page content',
 'edit own health_care_region_page content',
 'edit own landing_page content',
 'edit own news_story content',
 'edit own office content',
 'edit own outreach_asset content',
 'edit own page content',
 'edit own person_profile content',
 'edit own press_release content',
 'edit own publication_listing content',
 'edit own regional_health_care_service_des content',
 'edit own support_service content',
 'edit own va_form content',
 'edit own vamc_operating_status_and_alerts content',
 'execute entity:break_lock node',
 'notify of path changes',
 'rebuild tablefield',
 'schedule editorial transition create_new_draft',
 'update any alert block content',
 'update any media',
 'update any promo block content',
 'update media',
 'use editorial transition archived_published',
 'use editorial transition create_new_draft',
 'use editorial transition review',
 'use editorial transition stage_for_publishing',
 'use moderation sidebar',
 'use text format rich_text',
 'use text format rich_text_limited',
 'use workbench access',
 'view all media revisions',
 'view all revisions',
 'view any unpublished content',
 'view event revisions',
 'view event_listing revisions',
 'view full_width_banner_alert revisions',
 'view health_care_local_facility revisions',
 'view health_care_local_health_service revisions',
 'view health_care_region_detail_page revisions',
 'view health_care_region_page revisions',
 'view landing_page revisions',
 'view latest version',
 'view news_story revisions',
 'view node link report',
 'view office revisions',
 'view outreach_asset revisions',
 'view own unpublished content',
 'view page revisions',
 'view person_profile revisions',
 'view press_release revisions',
 'view publication_listing revisions',
 'view regional_health_care_service_des revisions',
 'view sections in toolbar',
 'view support_service revisions',
 'view the administration theme',
 'view unpublished paragraphs',
 'view va_form revisions',
 'view vamc_operating_status_and_alerts revisions',
 'view workbench access information'

Failed asserting that false is true.

/var/aegir/projects/cms/pr2685/tests/phpunit/SecurityRolesPermissionsTest.php:36

4) tests\phpunit\SecurityRolesPermissions::testSecurityRolesPermissions with data set #6 ('content_publisher', array('access administration pages', 'access alert_blocks entity br... pages', 'access content overview', 'access files overview', 'access image_browser entity b... pages', 'access media entity browser pages', 'access media overview', 'access media_browser entity b... pages', 'access shortcuts', 'access toolbar', 'access user profiles', 'access vamc_operating_statuse... pages', 'administer menu', 'break content lock', 'create alert block content', 'create document media', 'create image media', 'create media', 'create promo block content', 'create terms in health_care_s...xonomy', 'create video media', 'delete any alert block content', 'delete any document media', 'delete any event content', 'delete any event_listing content', 'delete any full_width_banner_...ontent', 'delete any health_care_local_...ontent', 'delete any health_care_local_...ontent', 'delete any health_care_region...ontent', 'delete any image media', 'delete any media', 'delete any news_story content', 'delete any office content', 'delete any outreach_asset content', 'delete any person_profile content', 'delete any press_release content', 'delete any promo block content', 'delete any publication_listing content', 'delete any regional_health_ca...ontent', 'delete any support_service content', 'delete any va_form content', 'delete any video media', 'delete media', 'delete own document media', 'delete own documentation_page content', 'delete own event content', 'delete own event_listing content', 'delete own full_width_banner_...ontent', 'delete own health_care_local_...ontent', 'delete own health_care_local_...ontent', 'delete own health_care_region...ontent', 'delete own image media', 'delete own landing_page content', 'delete own news_story content', 'delete own office content', 'delete own outreach_asset content', 'delete own page content', 'delete own person_profile content', 'delete own press_release content', 'delete own publication_listing content', 'delete own regional_health_ca...ontent', 'delete own support_service content', 'delete own va_form content', 'delete own video media', 'delete terms in health_care_s...xonomy', 'edit any document media', 'edit any documentation_page content', 'edit any event content', 'edit any event_listing content', 'edit any full_width_banner_al...ontent', 'edit any health_care_local_fa...ontent', 'edit any health_care_local_he...ontent', 'edit any health_care_region_d...ontent', 'edit any health_care_region_p...ontent', 'edit any health_services_list...ontent', 'edit any image media', 'edit any landing_page content', 'edit any leadership_listing content', 'edit any locations_listing content', 'edit any news_story content', 'edit any office content', 'edit any outreach_asset content', 'edit any page content', 'edit any person_profile content', 'edit any press_release content', 'edit any publication_listing content', 'edit any regional_health_care...ontent', 'edit any story_listing content', 'edit any support_service content', 'edit any va_form content', 'edit any vamc_operating_statu...ontent', 'edit any video media', 'edit own document media', 'edit own documentation_page content', 'edit own event content', 'edit own event_listing content', 'edit own full_width_banner_al...ontent', 'edit own health_care_local_fa...ontent', 'edit own health_care_local_he...ontent', 'edit own health_care_region_d...ontent', 'edit own health_care_region_p...ontent', 'edit own health_services_list...ontent', 'edit own image media', 'edit own landing_page content', 'edit own leadership_listing content', 'edit own locations_listing content', 'edit own news_story content', 'edit own office content', 'edit own outreach_asset content', 'edit own page content', 'edit own person_profile content', 'edit own press_release content', 'edit own press_releases_listi...ontent', 'edit own publication_listing content', 'edit own regional_health_care...ontent', 'edit own story_listing content', 'edit own support_service content', 'edit own va_form content', 'edit own vamc_operating_statu...ontent', 'edit own video media', 'edit terms in health_care_ser...xonomy', 'execute entity:break_lock node', 'execute publish_latest_revisi...n node', 'execute views_bulk_edit all', 'notify of path changes', 'rebuild tablefield', 'revert all revisions', 'revert event revisions', 'revert event_listing revisions', 'revert full_width_banner_aler...isions', 'revert health_care_local_faci...isions', 'revert health_care_local_heal...isions', 'revert health_care_region_det...isions', 'revert health_care_region_pag...isions', 'revert landing_page revisions', 'revert news_story revisions', 'revert office revisions', 'revert outreach_asset revisions', 'revert page revisions', 'revert person_profile revisions', 'revert press_release revisions', 'revert publication_listing revisions', 'revert regional_health_care_s...isions', 'revert support_service revisions', 'revert va_form revisions', 'revert vamc_operating_status_...isions', 'schedule editorial transition archive', 'schedule editorial transition...lished', 'schedule editorial transition..._draft', 'schedule editorial transition publish', 'update any alert block content', 'update any media', 'update any promo block content', 'update media', 'use editorial transition archive', 'use editorial transition arch...lished', 'use editorial transition crea..._draft', 'use editorial transition publish', 'use editorial transition review', 'use editorial transition stag...ishing', 'use moderation sidebar', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', 'va gov deploy content build', 'view all media revisions', 'view all revisions', 'view any unpublished content', 'view event revisions', 'view event_listing revisions', 'view full_width_banner_alert revisions', 'view health_care_local_facili...isions', 'view health_care_local_health...isions', 'view health_care_region_detai...isions', 'view health_care_region_page revisions', 'view landing_page revisions', 'view latest version', 'view news_story revisions', 'view node link report', 'view office revisions', 'view outreach_asset revisions', 'view own unpublished content', 'view page revisions', 'view person_profile revisions', 'view press_release revisions', 'view publication_listing revisions', 'view regional_health_care_ser...isions', 'view sections in toolbar', 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', 'view va_form revisions', 'view vamc_operating_status_an...isions', 'view workbench access information'))
The permissions for the content_publisher do not match the expected permissions.  Make the expected look like this, to get the test passing: 
 'access administration pages',
 'access alert_blocks entity browser pages',
 'access content overview',
 'access files overview',
 'access image_browser entity browser pages',
 'access media entity browser pages',
 'access media overview',
 'access media_browser entity browser pages',
 'access q_a_browser entity browser pages',
 'access shortcuts',
 'access toolbar',
 'access user profiles',
 'access vamc_operating_statuses entity browser pages',
 'administer menu',
 'break content lock',
 'create alert block content',
 'create document media',
 'create image media',
 'create media',
 'create promo block content',
 'create terms in health_care_service_taxonomy',
 'create video media',
 'delete any alert block content',
 'delete any document media',
 'delete any event content',
 'delete any event_listing content',
 'delete any full_width_banner_alert content',
 'delete any health_care_local_facility content',
 'delete any health_care_local_health_service content',
 'delete any health_care_region_detail_page content',
 'delete any image media',
 'delete any media',
 'delete any news_story content',
 'delete any office content',
 'delete any outreach_asset content',
 'delete any person_profile content',
 'delete any press_release content',
 'delete any promo block content',
 'delete any publication_listing content',
 'delete any regional_health_care_service_des content',
 'delete any support_service content',
 'delete any va_form content',
 'delete any video media',
 'delete media',
 'delete own document media',
 'delete own documentation_page content',
 'delete own event content',
 'delete own event_listing content',
 'delete own full_width_banner_alert content',
 'delete own health_care_local_facility content',
 'delete own health_care_local_health_service content',
 'delete own health_care_region_detail_page content',
 'delete own image media',
 'delete own landing_page content',
 'delete own news_story content',
 'delete own office content',
 'delete own outreach_asset content',
 'delete own page content',
 'delete own person_profile content',
 'delete own press_release content',
 'delete own publication_listing content',
 'delete own regional_health_care_service_des content',
 'delete own support_service content',
 'delete own va_form content',
 'delete own video media',
 'delete terms in health_care_service_taxonomy',
 'edit any document media',
 'edit any documentation_page content',
 'edit any event content',
 'edit any event_listing content',
 'edit any full_width_banner_alert content',
 'edit any health_care_local_facility content',
 'edit any health_care_local_health_service content',
 'edit any health_care_region_detail_page content',
 'edit any health_care_region_page content',
 'edit any health_services_listing content',
 'edit any image media',
 'edit any landing_page content',
 'edit any leadership_listing content',
 'edit any locations_listing content',
 'edit any news_story content',
 'edit any office content',
 'edit any outreach_asset content',
 'edit any page content',
 'edit any person_profile content',
 'edit any press_release content',
 'edit any publication_listing content',
 'edit any regional_health_care_service_des content',
 'edit any story_listing content',
 'edit any support_service content',
 'edit any va_form content',
 'edit any vamc_operating_status_and_alerts content',
 'edit any video media',
 'edit own document media',
 'edit own documentation_page content',
 'edit own event content',
 'edit own event_listing content',
 'edit own full_width_banner_alert content',
 'edit own health_care_local_facility content',
 'edit own health_care_local_health_service content',
 'edit own health_care_region_detail_page content',
 'edit own health_care_region_page content',
 'edit own health_services_listing content',
 'edit own image media',
 'edit own landing_page content',
 'edit own leadership_listing content',
 'edit own locations_listing content',
 'edit own news_story content',
 'edit own office content',
 'edit own outreach_asset content',
 'edit own page content',
 'edit own person_profile content',
 'edit own press_release content',
 'edit own press_releases_listing content',
 'edit own publication_listing content',
 'edit own regional_health_care_service_des content',
 'edit own story_listing content',
 'edit own support_service content',
 'edit own va_form content',
 'edit own vamc_operating_status_and_alerts content',
 'edit own video media',
 'edit terms in health_care_service_taxonomy',
 'execute entity:break_lock node',
 'execute publish_latest_revision_action node',
 'execute views_bulk_edit all',
 'notify of path changes',
 'rebuild tablefield',
 'revert all revisions',
 'revert event revisions',
 'revert event_listing revisions',
 'revert full_width_banner_alert revisions',
 'revert health_care_local_facility revisions',
 'revert health_care_local_health_service revisions',
 'revert health_care_region_detail_page revisions',
 'revert health_care_region_page revisions',
 'revert landing_page revisions',
 'revert news_story revisions',
 'revert office revisions',
 'revert outreach_asset revisions',
 'revert page revisions',
 'revert person_profile revisions',
 'revert press_release revisions',
 'revert publication_listing revisions',
 'revert regional_health_care_service_des revisions',
 'revert support_service revisions',
 'revert va_form revisions',
 'revert vamc_operating_status_and_alerts revisions',
 'schedule editorial transition archive',
 'schedule editorial transition archived_published',
 'schedule editorial transition create_new_draft',
 'schedule editorial transition publish',
 'update any alert block content',
 'update any media',
 'update any promo block content',
 'update media',
 'use editorial transition archive',
 'use editorial transition archived_published',
 'use editorial transition create_new_draft',
 'use editorial transition publish',
 'use editorial transition review',
 'use editorial transition stage_for_publishing',
 'use moderation sidebar',
 'use text format rich_text',
 'use text format rich_text_limited',
 'use workbench access',
 'va gov deploy content build',
 'view all media revisions',
 'view all revisions',
 'view any unpublished content',
 'view event revisions',
 'view event_listing revisions',
 'view full_width_banner_alert revisions',
 'view health_care_local_facility revisions',
 'view health_care_local_health_service revisions',
 'view health_care_region_detail_page revisions',
 'view health_care_region_page revisions',
 'view landing_page revisions',
 'view latest version',
 'view news_story revisions',
 'view node link report',
 'view office revisions',
 'view outreach_asset revisions',
 'view own unpublished content',
 'view page revisions',
 'view person_profile revisions',
 'view press_release revisions',
 'view publication_listing revisions',
 'view regional_health_care_service_des revisions',
 'view sections in toolbar',
 'view support_service revisions',
 'view the administration theme',
 'view unpublished paragraphs',
 'view va_form revisions',
 'view vamc_operating_status_and_alerts revisions',
 'view workbench access information'

Failed asserting that false is true.

/var/aegir/projects/cms/pr2685/tests/phpunit/SecurityRolesPermissionsTest.php:36

FAILURES!
Tests: 31, Assertions: 74, Failures: 4.
Aug 17 10:16:40 simplesamlphp ERROR [CL29fc32c3] Error loading session: Database error: SQLSTATE[HY000] [14] unable to open database file
Uncaught PHP Exception Exception: "Database error: SQLSTATE[HY000] [14] unable to open database file" at /var/aegir/projects/cms/pr2685/docroot/vendor/simplesamlphp/simplesamlphp/lib/SimpleSAML/Store/SQL.php line 63
tests\phpunit\CreateMediaTest::testCreateMedia
Operation took 0.148 seconds compared to the benchmark of 2 seconds.
tests\phpunit\CreateTaxonomyTerm::testCreateTaxonomyTerm
Operation took 0.102 seconds compared to the benchmark of 2 seconds.
tests\phpunit\CreateNodePerformance::testCreateNodePerformance
Operation took 0.270 seconds compared to the benchmark of 5 seconds.
tests\phpunit\EditNodePerformance::testEditNodePerformance
Operation took 0.043 seconds compared to the benchmark of 5 seconds for type page.
tests\phpunit\EditNodePerformance::testEditNodePerformance
Operation took 0.046 seconds compared to the benchmark of 5 seconds for type landing_page.
tests\phpunit\LoginPerformance::testLoginPerformance
Operation took 2.309 seconds compared to the benchmark of 3 seconds.
tests\phpunit\ScalabilityCreateNodeTest::testScalabilityCreateNodeTest
Operation took 3.29 and completed 20 iterations.
  • On: devshop.cms.va.gov
  • In: 31.814s

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Test Failed: va/tests/accessibility
composer va:test:accessibility
> phantomjs-prebuilt@2.1.16 install /var/aegir/projects/cms/pr2685/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /var/aegir/projects/cms/pr2685/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1597673835696/phantomjs-2.1.1-linux-x86_64 -> /var/aegir/projects/cms/pr2685/node_modules/phantomjs-prebuilt/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /var/aegir/projects/cms/pr2685/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

> core-js@2.6.9 postinstall /var/aegir/projects/cms/pr2685/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 134 packages from 190 contributors and audited 134 packages in 4.268s
found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

> axe_tests@1.0.0 test /var/aegir/projects/cms/pr2685
> node ./tests/accessibility/aXeAccessibilityCheck.js

!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov 1
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/sections  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/page  = 1
[ { id: 'duplicate-id',
    impact: 'minor',
    tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
    description: 'Ensures every id attribute value is unique',
    help: 'id attribute value must be unique',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/duplicate-id?application=webdriverjs',
    nodes: [ [Object], [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/landing_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/documentation_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/event  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/health_care_local_facility  = 1
[ { id: 'label',
    impact: 'critical',
    tags:
     [ 'cat.forms',
       'wcag2a',
       'wcag332',
       'wcag131',
       'section508',
       'section508.22.n' ],
    description: 'Ensures every form element has a label',
    help: 'Form elements must have labels',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/label?application=webdriverjs',
    nodes:
     [ [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/health_care_region_detail_page  = 1
[ { id: 'duplicate-id',
    impact: 'minor',
    tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
    description: 'Ensures every id attribute value is unique',
    help: 'id attribute value must be unique',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/duplicate-id?application=webdriverjs',
    nodes: [ [Object], [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/health_care_region_page  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/office  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/outreach_asset  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/person_profile  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/press_release  = 1
[ { id: 'aria-allowed-attr',
    impact: 'critical',
    tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
    description: 'Ensures ARIA attributes are allowed for an element\'s role',
    help: 'Elements must only use allowed ARIA attributes',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/aria-allowed-attr?application=webdriverjs',
    nodes: [ [Object] ] } ]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/regional_health_care_service_des  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/news_story  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/node/add/support_service  = 0
[]
!!!  NUMBER OF NEW VIOLATIONS on http://pr2685.ci.cms.va.gov/user  = 1
[ { id: 'color-contrast',
    impact: 'serious',
    tags: [ 'cat.color', 'wcag2aa', 'wcag143' ],
    description:
     'Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds',
    help: 'Elements must have sufficient color contrast',
    helpUrl:
     'https://dequeuniversity.com/rules/axe/3.3/color-contrast?application=webdriverjs',
    nodes: [ [Object] ] } ]
!!!  VIOLATION TYPES FOUND: 6 PROCESS EXITED WITH CODE 1  !!!
> npm install --only=production
> npm test
Mon, 17 Aug 2020 14:17:19 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:45:14
Mon, 17 Aug 2020 14:17:25 GMT axe-webdriverjs deprecated Error must be handled as the first argument of axe.analyze. See: #83 at tests/accessibility/aXeAccessibilityCheck.js:57:42
Failed to inject axe-core into one of the iframes!
Failed to inject axe-core into one of the iframes!
npm ERR! Test failed.  See above for more details.
Script npm test handling the va:test:accessibility event returned with error code 1
  • On: devshop.cms.va.gov
  • In: 01:44

Please sign in to comment.