Logo: Relish

  1. Sign in

Project: Console

Service Database

  • @dxpcloud
  • @paas
  • @teardown_projects

View data in the Database tab for a data service.

Background
Given
I sign in to WeDeploy as a test user
Scenarios
View data for a data service
Given
I create a project with ID "rho1"
And
I install a "WeDeploy Data" service with id "data1" for the project "rho1"
And
I go to the "Data" tab for "data1"
And
I should see the health status "Healthy"
And
I should see the text "You have no collections."
When
I insert the following data for "Flowers" collection for "data1" service of "rho1" project
name color
rose red
violet blue
chrysanthemum white
orchid pink
And
I insert the following data for "Teas" collection for "data1" service of "rho1" project
type origin
Earl Grey England
matcha Japan
oolong China
Darjeeling India
And
I refresh the page
And
I set Collections to "Flowers"
Then
I should see the following data
name color
rose red
violet blue
chrysanthemum white
orchid pink
And
I set Collections to "Teas"
And
I should see the following data
type origin
Earl Grey England
matcha Japan
oolong China
Darjeeling India
And
I click the JSON view button
And
I should see the following JSON
[
    {
        "type": "Earl Grey",
        "origin": "England",
        "id": "{generated id}"
    },
    {
        "type": "matcha",
        "origin": "Japan",
        "id": "{generated id}"
    },
    {
        "type": "oolong",
        "origin": "China",
        "id": "{generated id}"
    },
    {
        "type": "Darjeeling",
        "origin": "India",
        "id": "{generated id}"
    }
]
View data that spans multiple pages
Given
I create a project with ID "rho2"
And
I install a "WeDeploy Data" service with id "data1" for the project "rho2"
And
I click "Services" in the sidebar
And
I click "data1" in the Services list
And
I should see the health status "Healthy"
When
I insert 50 rows for the Names collection of "data1-rho2"
And
I go to the "Data" tab for "data1"
Then
Collections should be set to "Names"
And
the table footer should display
20 items/page 1-20 of 50 items
And
the table should have 20 rows
And
I click the "right" arrow button
And
the table footer should display
20 items/page 21-40 of 50 items
And
the table should have 20 rows
And
I click the "right" arrow button
And
the table footer should display
20 items/page 41-50 of 50 items
And
the table should have 10 rows
And
I click the "left" arrow button
And
the table footer should display
20 items/page 21-40 of 50 items
And
the table should have 20 rows
And
I select 80 items/page
And
the table footer should display
80 items/page 1-50 of 50 items
And
the table should have 50 rows
  • @teardown_tester
View data for an auth service
Given
I create a project with ID "rho3"
And
I install a "WeDeploy Auth" service with id "auth1" for the project "rho3"
And
I click "Services" in the sidebar
And
I click "auth1" in the Services list
And
I should see the health status "Healthy"
When
I insert the following users for "auth1-rho3" using api
name email password
Joe [email protected] test
Sam [email protected] test
Jim [email protected] test
Abe [email protected] test
Bud [email protected] test
And
I click the "Data" tab
Then
I should see the following data
And
I click the JSON view button
And
I should see the following JSON
[
    {
        "name": "Joe",
        "email": "[email protected]",
        "id": "{generated id}"
    },
    {
        "name": "Sam",
        "email": "[email protected]",
        "id": "{generated id}"
    },
    {
        "name": "Jim",
        "email": "[email protected]",
        "id": "{generated id}"
    },
    {
        "name": "Abe",
        "email": "[email protected]",
        "id": "{generated id}"
    },
    {
        "name": "Bud",
        "email": "[email protected]",
        "id": "{generated id}"
    }
]

Last published 10 months ago by Christie Yoo.