Skip to content

Add feature tests for Alert Settings group::respond | User can save new integration

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Test1: User can save http endpoint integration

Create enabled integration

  • Log in as user with permission (I'm not sure who, and what happens if user doesn't have permission, once known a test case for this scenario should be added, too)
  • Navigate to Alert Settings
  • Select create new integration type HTTP Endpoint
  • Fill in integration name
  • Click Active button
  • Click Save
  • Verify an integration is created:
    • Success alert is displayed
    • The integration shows up in integration management list with correct name, enable status, type HTTP
  • Verify webhook URL and authorization key is created in View credentials tab

Cannot create more than 1 integration

  • Log in as free user
  • Try to create 2 http endpoint integrations
  • Verify user cannot add 2nd integration

Create disabled integration

  • Log in as user with permission
  • Navigate to Alert Settings
  • Select create new integration type HTTP Endpoint
  • Fill in integration name
  • Click Save
  • Verify an integration is created:
    • Success alert is displayed
    • The integration shows up in integration management list with correct name, disable status, type HTTP
  • Verify webhook URL and authorization key is created in View credentials tab

Test2: User can save prometheus integration

Create enabled integration

  • Log in as user with permission
  • Navigate to Alert Settings
  • Select create new integration type Prometheus
  • Click Active button
  • Provide URL
  • Click save
  • Verify an integration is created:
    • Success alert is displayed
    • The integration shows up in integration management list with correct name, enabled status, type Prometheus

Create disabled integration

  • Log in as user with permission
  • Navigate to Alert Settings
  • Select create new integration type Prometheus
  • Provide URL
  • Click save
  • Verify an integration is created:
    • Success alert is displayed
    • The integration shows up in integration management list with correct name, disabled status, type Prometheus

Test3: Premium user can setup multiple integrations

  • Log in as premium user
  • create 2 http endpoint integrations
  • Verify both integrations are created:
    • Success alert is displayed
    • The integrations up in integration management list with correct name, status, type
Edited by 🤖 GitLab Bot 🤖