Skip to content

Commit 0492119

Browse files
committed
Add new location validation tests and email formatting test to blog
1 parent b00646b commit 0492119

File tree

1 file changed

+30
-0
lines changed
  • website/blog/2025-02-07-ValidatingLocationTests

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
slug: validatinglocationtests
3+
title: Validate full addresses and formatted tests
4+
authors: [claytont]
5+
tags: [mtcustomtests, newtest]
6+
---
7+
Added 3 new tests which I think the first two will be game changers. The first 2 are tests for validating locations, in which the user must have street, city, state, postal code, country, business phone, and company name the same as the valid location in the json. If you have 3 different addreses that your company uses, you can put each in there, and they are seen as 3 different addresses so it will only pass the location test if they have all the correct values for 1 location. The 2nd test is the same as the first, but I removed business phone in case your company doesn't have standard for it for all employees. The last test is formatting for user email accounts that should be formatted as all lower case and its first name period last name.
8+
9+
10+
ENTRA.UV.1010.L01 - All location information
11+
12+
* Test-ContosoUsersAllowedLocations.ps1
13+
* Test-ContosoUsersAllowedLocations.Tests.ps1
14+
* Test-ContosoUsersAllowedLocations.md
15+
16+
ENTRA.UV.1010.L02 - All location information minus business phone
17+
18+
* Test-ContosoUsersAllowedLocationsNoBusinessPhones.ps1
19+
* Test-ContosoUsersAllowedLocationsNoBusinessPhones.Tests.ps1
20+
* Test-ContosoUsersAllowedLocationsNoBusinessPhones.md
21+
22+
ENTRA.UF.1003.T03.Email - All lower case first name period last name
23+
24+
* Test-ContosoUsersFormattingFirstLastLowerCase.ps1
25+
* Test-ContosoUsersFormattingFirstLastLowerCase.Tests.ps1
26+
* Test-ContosoUsersFormattingFirstLastLowerCase.md
27+
28+
Are there any other tests you'd like to see sooner than later?
29+
30+
Have a great day!

0 commit comments

Comments
 (0)