Skip to content

Commit 971f726

Browse files
authored
Merge pull request #231 from dependabot/dev/brettfo/nuget-lock-files
add test for NuGet lockfiles
2 parents 0b015e1 + b22201d commit 971f726

File tree

3 files changed

+163
-0
lines changed

3 files changed

+163
-0
lines changed

nuget/lock-file/packages.lock.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

nuget/lock-file/project.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.1" />
7+
</ItemGroup>
8+
</Project>

tests/smoke-nuget-lockfile.yaml

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
input:
2+
job:
3+
package-manager: nuget
4+
allowed-updates:
5+
- update-type: all
6+
experiments:
7+
nuget_native_analysis: true
8+
ignore-conditions:
9+
- dependency-name: Newtonsoft.Json.Bson
10+
source: tests/smoke-nuget-lockfile.yaml
11+
version-requirement: '>1.0.2'
12+
source:
13+
provider: github
14+
repo: dependabot/smoke-tests
15+
directory: /nuget/lock-file
16+
commit: ccba02222e66c9752d85607501e1a042cea90792
17+
credentials:
18+
- host: github.com
19+
password: $LOCAL_GITHUB_ACCESS_TOKEN
20+
type: git_source
21+
username: x-access-token
22+
output:
23+
- type: update_dependency_list
24+
expect:
25+
data:
26+
dependencies:
27+
- name: Newtonsoft.Json
28+
requirements: []
29+
version: 10.0.1
30+
- name: Newtonsoft.Json.Bson
31+
requirements:
32+
- file: /nuget/lock-file/project.csproj
33+
groups:
34+
- dependencies
35+
requirement: 1.0.1
36+
source: null
37+
version: 1.0.1
38+
dependency_files:
39+
- /nuget/lock-file/project.csproj
40+
- /nuget/lock-file/packages.lock.json
41+
- type: create_pull_request
42+
expect:
43+
data:
44+
base-commit-sha: ccba02222e66c9752d85607501e1a042cea90792
45+
dependencies:
46+
- name: Newtonsoft.Json.Bson
47+
previous-requirements:
48+
- file: /nuget/lock-file/project.csproj
49+
groups:
50+
- dependencies
51+
requirement: 1.0.1
52+
source: null
53+
previous-version: 1.0.1
54+
requirements:
55+
- file: /nuget/lock-file/project.csproj
56+
groups:
57+
- dependencies
58+
requirement: 1.0.2
59+
source:
60+
source_url: https://github.com/JamesNK/Newtonsoft.Json.Bson
61+
type: nuget_repo
62+
version: 1.0.2
63+
directory: /nuget/lock-file
64+
updated-dependency-files:
65+
- content: |-
66+
<Project Sdk="Microsoft.NET.Sdk">
67+
<PropertyGroup>
68+
<TargetFramework>net8.0</TargetFramework>
69+
</PropertyGroup>
70+
<ItemGroup>
71+
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />
72+
</ItemGroup>
73+
</Project>
74+
content_encoding: utf-8
75+
deleted: false
76+
directory: /nuget/lock-file
77+
name: project.csproj
78+
operation: update
79+
support_file: false
80+
type: file
81+
- content: |-
82+
{
83+
"version": 1,
84+
"dependencies": {
85+
"net8.0": {
86+
"Newtonsoft.Json.Bson": {
87+
"type": "Direct",
88+
"requested": "[1.0.2, )",
89+
"resolved": "1.0.2",
90+
"contentHash": "QYFyxhaABwmq3p/21VrZNYvCg3DaEoN/wUuw5nmfAf0X3HLjgupwhkEWdgfb9nvGAUIv3osmZoD3kKl4jxEmYQ==",
91+
"dependencies": {
92+
"Newtonsoft.Json": "12.0.1"
93+
}
94+
},
95+
"Newtonsoft.Json": {
96+
"type": "Transitive",
97+
"resolved": "12.0.1",
98+
"contentHash": "pBR3wCgYWZGiaZDYP+HHYnalVnPJlpP1q55qvVb+adrDHmFMDc1NAKio61xTwftK3Pw5h7TZJPJEEVMd6ty8rg=="
99+
}
100+
}
101+
}
102+
}
103+
content_encoding: utf-8
104+
deleted: false
105+
directory: /nuget/lock-file
106+
name: packages.lock.json
107+
operation: update
108+
support_file: false
109+
type: file
110+
pr-title: Bump Newtonsoft.Json.Bson from 1.0.1 to 1.0.2 in /nuget/lock-file
111+
pr-body: |
112+
Bumps [Newtonsoft.Json.Bson](https://github.com/JamesNK/Newtonsoft.Json.Bson) from 1.0.1 to 1.0.2.
113+
<details>
114+
<summary>Release notes</summary>
115+
<p><em>Sourced from <a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/releases">Newtonsoft.Json.Bson's releases</a>.</em></p>
116+
<blockquote>
117+
<h2>1.0.2</h2>
118+
<ul>
119+
<li>New feature - Added netstandard2.0 target</li>
120+
<li>New feature - Added NuGet package signing</li>
121+
<li>New feature - Added Authenticode assembly signing</li>
122+
<li>New feature - Added SourceLink support</li>
123+
<li>New feature - Updated to Newtonsoft.Json 12.0.1</li>
124+
<li>Fix - Fixed BsonDataReader when reading multiple content</li>
125+
</ul>
126+
</blockquote>
127+
</details>
128+
<details>
129+
<summary>Commits</summary>
130+
<ul>
131+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/a1db92678e7e72eb733f37079f3a93bfb6215338"><code>a1db926</code></a> Update zip filename in build</li>
132+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/af9c864a303a67591871c5c4da326d9b034c4088"><code>af9c864</code></a> Use package license expression (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/24">#24</a>)</li>
133+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/5d6e2ffe166e5bf5078f228716892e0ede6f3bd7"><code>5d6e2ff</code></a> Update to 1.0.2</li>
134+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/8de6b17cba63fe94839f4aac3eeacd85d4cbf894"><code>8de6b17</code></a> Update to Newtonsoft.Json 12.0.1-beta1 (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/22">#22</a>)</li>
135+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/18d0b588795eeabb641d2df408a0370e009fd648"><code>18d0b58</code></a> Update build to deploy to NuGet (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/21">#21</a>)</li>
136+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/0271d98980940d8ca90e7dee717801fd3168e242"><code>0271d98</code></a> Add code and package signing (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/20">#20</a>)</li>
137+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/82996791d73c1c969d08236300585138fb1bffa6"><code>8299679</code></a> Add single multiple content test (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/19">#19</a>)</li>
138+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/7c7ee2202236143f80f36576413cb39ec09de6f1"><code>7c7ee22</code></a> Add DevOps build badge (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/18">#18</a>)</li>
139+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/09af7443d12a3059ddabbd4e637157aa84ade79a"><code>09af744</code></a> Add .NET Standard 2.0 target (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/17">#17</a>)</li>
140+
<li><a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/commit/c410aa2e40c005e27c97e62f516378ccdf7789a8"><code>c410aa2</code></a> Build NuGet package in CI (<a href="https://redirect.github.com/JamesNK/Newtonsoft.Json.Bson/issues/16">#16</a>)</li>
141+
<li>Additional commits viewable in <a href="https://github.com/JamesNK/Newtonsoft.Json.Bson/compare/1.0.1...1.0.2">compare view</a></li>
142+
</ul>
143+
</details>
144+
<br />
145+
commit-message: |-
146+
Bump Newtonsoft.Json.Bson from 1.0.1 to 1.0.2 in /nuget/lock-file
147+
148+
Bumps [Newtonsoft.Json.Bson](https://github.com/JamesNK/Newtonsoft.Json.Bson) from 1.0.1 to 1.0.2.
149+
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json.Bson/releases)
150+
- [Commits](https://github.com/JamesNK/Newtonsoft.Json.Bson/compare/1.0.1...1.0.2)
151+
- type: mark_as_processed
152+
expect:
153+
data:
154+
base-commit-sha: ccba02222e66c9752d85607501e1a042cea90792

0 commit comments

Comments
 (0)