Skip to content

Bump Auth to 1.3.0 #521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected override void ProcessRecord()
foreach (var innerException in aggregateException.Flatten().InnerExceptions)
{
var errorRecords = innerException.Data;
if (errorRecords.Count < 1)
if (errorRecords.Count > 1)
{
foreach (DictionaryEntry dictionaryEntry in errorRecords)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ protected override void ProcessRecord()
foreach (var innerException in aggregateException.Flatten().InnerExceptions)
{
var errorRecords = innerException.Data;
if (errorRecords.Count < 1)
if (errorRecords.Count > 1)
{
foreach (DictionaryEntry dictionaryEntry in errorRecords)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.2.0</Version>
<Version>1.3.0</Version>
<LangVersion>7.1</LangVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Library</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<metadata>
<version>1.2.0</version>
<version>1.3.0</version>
<id>Microsoft.Graph.Authentication</id>
<description>Microsoft Graph PowerShell authentication module</description>
<authors>Microsoft</authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft
#
# Generated on: 23-Jan-21
# Generated on: 1/27/2021
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = './Microsoft.Graph.Authentication.psm1'

# Version number of this module.
ModuleVersion = '1.2.0'
ModuleVersion = '1.3.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BeforeAll {
$ModuleName = "Microsoft.Graph.Authentication"
$ModulePath = Join-Path $PSScriptRoot "..\$ModuleName.psd1"
Import-Module $ModulePath -Force
}
Describe 'Connect-MgGraph In Delegated Mode' {
It 'ShouldThrowExceptionWhenInvalidTenantIdIsSpecified' {
{ Connect-MgGraph -TenantId "thisdomaindoesnotexist.com" -Scopes 'User.Read.All' -ErrorAction Stop } | Should -Throw -ExpectedMessage "*Tenant 'thisdomaindoesnotexist.com' not found*"
}

It 'ShouldThrowExceptionWhenInvalidScopeIsSpecified' {
{ Connect-MgGraph -Scopes 'User.Read.XYZ' -ErrorAction Stop } | Should -Throw -ExpectedMessage "*The scope 'User.Read.XYZ offline_access profile openid' does not exist*"
}
}
2 changes: 1 addition & 1 deletion src/Financials/Financials/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ directive:
### Versioning

``` yaml
module-version: 1.2.0
module-version: 1.3.0
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion src/Notes/Notes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ directive:
### Versioning

``` yaml
module-version: 1.2.0
module-version: 1.3.0
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
2 changes: 1 addition & 1 deletion tools/GenerateModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ $ModulesToGenerate | ForEach-Object -ThrottleLimit $ModulesToGenerate.Count -Par

try {
# Generate PowerShell modules.
& autorest --module-version:$ModuleVersion --service-name:$ModuleName $ModuleLevelReadMePath --verbose
& autorest --module-version:$ModuleVersion --service-name:$ModuleName $ModuleLevelReadMePath --version:"3.0.6306" --verbose
if ($LASTEXITCODE) {
Write-Error "Failed to generate '$ModuleName' module."
}
Expand Down