Skip to content

Commit 5b14638

Browse files
committed
chores: have FossologyClient to be a partial class for better overview.
1 parent 0eb6c7e commit 5b14638

10 files changed

+931
-732
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## NEXT
44
* improved error handling.
5+
* supports FOSSology REST API v1.4.3 (FOSSology 4.0.0 built @ 2023/03/09).
56
* new method GetHealth().
7+
* have `FossologyClient` to be a partial class for better overview.
68

79
## 1.1.0 (2020-06-25)
810
* supports FOSSology REST API v1.0.16 (FOSSology 3.8.0 built @ 2020/06/19).

Fossology.Rest.Dotnet.Test/FossologyClientTest.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ---------------------------------------------------------------------------
22
// <copyright file="FossologyClientTest.cs" company="Tethys">
3-
// Copyright (C) 2019 T. Graf
3+
// Copyright (C) 2019-2022 T. Graf
44
// </copyright>
55
//
66
// Licensed under the MIT License.
@@ -27,6 +27,11 @@ namespace Fossology.Rest.Dotnet.Test
2727
using Tethys.Logging;
2828
using Tethys.Logging.Console;
2929

30+
// NOTE:
31+
// If you just run all tests, a number of them will fail.
32+
// This is just because the test will be run in random order ... and if
33+
// for example a folder has not yet been created it will be impossible to delete it.
34+
3035
/// <summary>
3136
/// Unit test class.
3237
/// </summary>
@@ -36,14 +41,14 @@ public class FossologyClientTest
3641
#region PRIVATE PROPERTIES
3742
/// <summary>
3843
/// The Fossology url.
39-
/// Take care: the token depends also on the url!
44+
/// Take care: the token depends also on the url.
4045
/// </summary>
4146
private const string LocalUrl = "http://localhost:8081/repo/api/v1";
4247

4348
/// <summary>
4449
/// The access token.
4550
/// </summary>
46-
private const string Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1OTM2NDc5OTksIm5iZiI6MTU5MzA0MzIwMCwianRpIjoiTWk0eiIsInNjb3BlIjoid3JpdGUifQ.YsZLPym6rRUdBsEtEderJS2Xlj09DOG0J3z0Ygbv8MI";
51+
private const string Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDc0NzUxOTksIm5iZiI6MTY0NzEyOTYwMCwianRpIjoiTWk0eiIsInNjb3BlIjoid3JpdGUifQ.AKflkhB4194sjPAxMrse3kyBAeMdnGjtQzZZGsYRqMI";
4752

4853
/// <summary>
4954
/// The filename of a test package.

0 commit comments

Comments
 (0)