Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(prometheus-client): builder error (#87)
Browse files Browse the repository at this point in the history
* feat: add promethus http api query client

* feat: add test project

* feat: api query add

* feat: update code and add tests

* docs: add docs

* feat: add convert json value to object

* feat: fix enume and comments

* feat: code styles and other specifications update

* feat: update callerprovider inject

* feat: update jsonelement convert to obj

* feat: update extensions

* feat: update internal to public

* feat: update directory

* feat: test refrence update

* chore: comments and filename update

* chore: remove not exists project id

* chore: update docs and code style

* chore: enums update

* chore: doc code style update

* chore: dosc update

* chore: docs update

* feat: add promethus http api query client

* feat: add test project

* feat: api query add

* feat: update code and add tests

* docs: add docs

* feat: add convert json value to object

* feat: fix enume and comments

* feat: code styles and other specifications update

* feat: update callerprovider inject

* feat: update jsonelement convert to obj

* feat: update extensions

* feat: update internal to public

* feat: update directory

* feat: test refrence update

* chore: comments and filename update

* chore: remove not exists project id

* chore: update docs and code style

* chore: enums update

* chore: doc code style update

* chore: dosc update

* chore: docs update

* chore: name update and remove no used files

* chore: folder name update

* chore: file rename

* chore: class split

* feat: close thorw friendly exception

* chore: code format

* Refactor(MasaException): Refactor MasaException (#82)

* Refactor(MasaException): Refactor MasaException

* refactor(Exception): Support MasaExceptionHandler

* chore:  format code

* chore: format code

* doc: Modify the document (#83)

* feat(Exception): GlobalExceptionFilter supports custom Handler (#84)

* doc: Modify the document

* chore: GlobalExceptionFilter supports custom Handler

* fix(es): Handle the problem that the batch method in version 8.* returns an IsValid error (#85)

* doc(es): Add FAQ (#86)

* feat: build error update

Co-authored-by: 磊磊 <wangzhenlei520@gmail.com>
  • Loading branch information
Qinyouzeng and zhenlei520 authored Jul 19, 2022
1 parent 43415bc commit 8a17fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageReference Include="MSTest.TestAdapter" Version="$(MSTestPackageVersion)" />
<PackageReference Include="MSTest.TestFramework" Version="$(MSTestPackageVersion)" />
<PackageReference Include="coverlet.collector" Version="$(CoverletPackageVersion)" />
<PackageReference Include="Moq" Version="$(MoqPackageVersion)" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ public async Task TestSeriesQueryAsync()
[DataRow(new string[] { "error data" })]
public async Task TestLabelsQueryAsync(IEnumerable<string> matches)
{
var result = await _client.LabelsQueryAsync(new MetaDataQueryRequest { Match = matches });
if (matches != null && matches.Any(s => s.Contains(' ')))
{
var result = await _client.LabelsQueryAsync(new MetaDataQueryRequest { Match = matches });
Assert.AreEqual(result.Status, ResultStatuses.Error);
Assert.IsNotNull(result.Error);
}
else
{
var result = await _client.LabelsQueryAsync(default!);
Assert.IsNotNull(result);
Assert.AreEqual(result.Status, ResultStatuses.Success);
{
var result = await _client.LabelsQueryAsync(default!);
Assert.IsNotNull(result);
Assert.AreEqual(result.Status, ResultStatuses.Success);
if (matches == null || matches.Any(s => s == "up"))
{
Assert.IsTrue(result.Data?.Any());
Expand Down

0 comments on commit 8a17fb6

Please sign in to comment.