frontier icon indicating copy to clipboard operation
frontier copied to clipboard

feat: add e2e test bench

Open mabdh opened this issue 3 years ago • 1 comments

Add utility to do end-to-end test

  • Spin up 2 Postgres and 1 Spice DB in such a way that they are connected
  • All are being done programmatically with dockertest
  • Once all DBs are up, run shield migration and shield server with cobra cli

mabdh avatar Aug 12 '22 10:08 mabdh

Pull Request Test Coverage Report for Build 2888214370

  • 0 of 2 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 49.195%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/serve.go 0 1 0.0%
cmd/server.go 0 1 0.0%
<!-- Total: 0 2
Totals Coverage Status
Change from base Build 2887226770: 0.0%
Covered Lines: 3454
Relevant Lines: 7021

💛 - Coveralls

coveralls avatar Aug 12 '22 10:08 coveralls

Haven't looked at the actual test data. But code wise looks good to me.

rohilsurana avatar Aug 16 '22 05:08 rohilsurana

Testdata in this PR consist of:

  • Creating 1 organization, 1 project
  • Creating 3 groups assigned to the organization
  • Each group will have 3 users (created 9 users) and one of them is admin
    • So a group consist of 1 admin and 2 members

mabdh avatar Aug 16 '22 05:08 mabdh