Problem/Motivation

Write a BDD test suite for the menu selection: Cloud service providers → All -> Cloud service providers

  • case #1: Expecting the list of cloud service providers if the logged-in user has both permissions: Drupal and AWS IAM
  • case #2: Expecting “Access denied” if the logged-in user doesn’t have either permissions: Drupal and AWS IAM

https://agaric.coop/blog/how-use-behavior-driven-development-drupal-behat
https://docs.behat.org/en/v2.5/quick_intro.html
https://www.drupal.org/drupalorg/docs/build/bdd-tests

Issue fork cloud-3226130

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yutong.li created an issue. See original summary.

yutong.li’s picture

Issue summary: View changes

yutong.li credited yas.

yutong.li’s picture

yutong.li’s picture

Status: Needs work » Active

yutong.li’s picture

Status: Active » Needs review
yas’s picture

Status: Needs review » Reviewed & tested by the community

@yutong.li

Thank you for adding the test case. It looks good to me. I'll merge the patch to 4.x and close this issue as Fixed.

yas’s picture

Title: Write a BDD test suite for Cloud service providers menu (1) (All -> Cloud service providers) » Add a BDD test suite for Cloud service providers menu (1) (All -> Cloud service providers)

@yutong.li

Thank you for the update. It looks good to me now. I'll merge the patch to 4.x and close this issue as Fixed.

  • yas committed 107f4ef on 4.x authored by yutong.li
    Issue #3226130 by yutong.li, yas, kumikoono: Add a BDD test suite for...

yas’s picture

Status: Reviewed & tested by the community » Fixed
yutong.li’s picture

Status: Fixed » Needs review

kumikoono’s picture

@yutong, Thanks for the update. It looks good to me.

yas’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3227408: Add a BDD test suite for Cloud service providers menu (2) (All → AWS resources)

@yutong.li

Thank you for the update. It looks good to me now. I'll merge the patch to 4.x and close this issue as Fixed.

  • yas committed abf1a96 on 4.x authored by yutong.li
    Issue #3226130 by yutong.li, yas, kumikoono: Add a BDD test suite for...

yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.