-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #496 from bcgov/ricander
Additional Acceptance Criteria validations for Manage Access and MInor refactoring
- Loading branch information
Showing
37 changed files
with
1,198 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace DataBase.Entities | ||
{ | ||
public partial class DssDbContext : DbContext | ||
{ | ||
private string _ConnectionString = string.Empty; | ||
|
||
public DssDbContext(DbContextOptions<DssDbContext> options, string ConnectionString) : base(options) | ||
{ | ||
_ConnectionString = ConnectionString; | ||
} | ||
|
||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | ||
=> optionsBuilder.UseNpgsql(_ConnectionString); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 0 additions & 119 deletions
119
Test/UITest/DataBase/UnitOfWork/UserIdentityUnitOfWork.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
Test/UITest/SpecFlowProjectBDD/Features/DenyAccessToSystem.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
Feature: DenyAccessToSystem | ||
Link to a feature: https://hous-hpb.atlassian.net/browse/DSS-75 | ||
|
||
@Access | ||
@Access @Headless | ||
Scenario: DenyAccessToSystem | ||
#User Authentication | ||
|
||
Given that I am an authenticated LG, CEU, Provincial Gov or Platform user and the expected result is "<ExpectedResult>" | ||
|
||
When I attempt to access the Data Sharing System as "<UserName>" | ||
#When I attempt to access the Data Sharing System as "<UserName>" with email "<Email>" and Role "<RoleName>" | ||
When I attempt to access the Data Sharing System as "<UserName>" with email "<Email>" and Role "<RoleName>" | ||
|
||
Then I dont have the required access permissions | ||
|
||
Then I should see a specific message indicating that access is restricted | ||
# | ||
# | ||
Examples: | ||
| UserName | Description | ExpectedResult | | ||
| CEUATST | HappyPath | pass | | ||
| UserName | Email | RoleName | Description | ExpectedResult | | ||
| CEUATST | ceuatst@gov.bc.ca | ceu_admin | HappyPath | pass | |
19 changes: 12 additions & 7 deletions
19
Test/UITest/SpecFlowProjectBDD/Features/DenyAccessToSystem.feature.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.