This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ServiceNowServiceTests * TicketCreateFlowTests, TicketShowFlowTests, TicketUpdateFlowTests, TicketCloseUtterances * KnowledgeShowTests
- Loading branch information
Hualiang Xie
committed
Oct 31, 2019
1 parent
2761615
commit 3f59b27
Showing
34 changed files
with
1,531 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
skills/csharp/experimental/itsmskill/Content/Knowledge.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketCard", | ||
"id": "KnowledgeCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketCard", | ||
"id": "KnowledgeCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
2 changes: 1 addition & 1 deletion
2
skills/csharp/experimental/itsmskill/Content/TicketUpdate.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketNoCloseCard", | ||
"id": "TicketUpdateCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketNoCloseCard", | ||
"id": "TicketUpdateCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
2 changes: 1 addition & 1 deletion
2
skills/csharp/experimental/itsmskill/Content/TicketUpdateClose.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketCard", | ||
"id": "TicketUpdateCloseCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
2 changes: 1 addition & 1 deletion
2
skills/csharp/experimental/itsmskill/Content/TicketUpdateClose.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "AdaptiveCard", | ||
"id": "TicketCard", | ||
"id": "TicketUpdateCloseCard", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using ITSMSkill.Models; | ||
|
||
namespace ITSMSkill.Tests.API.Fakes | ||
{ | ||
public static class MockData | ||
{ | ||
public const string ServiceNowProvider = "ServiceNow"; | ||
|
||
public const string ServiceNowUrl = "MockServiceNowUrl"; | ||
|
||
public const string Token = "MockToken"; | ||
|
||
public const int LimitSize = 1; | ||
|
||
public const string ServiceNowGetUserId = "MockServiceNowGetUserId"; | ||
|
||
public const int TicketCount = 1; | ||
|
||
public const string CreateTicketTitle = "MockCreateTicketTitle"; | ||
|
||
public const string CreateTicketDescription = "MockCreateTicketDescription"; | ||
|
||
public const string CreateTicketUrgency = "3"; | ||
|
||
public const UrgencyLevel CreateTicketUrgencyLevel = UrgencyLevel.Low; | ||
|
||
public const string CreateTicketState = "1"; | ||
|
||
public const TicketState CreateTicketTicketState = TicketState.New; | ||
|
||
public const string CreateTicketOpenedTime = "2016-12-12 12:12:12"; | ||
|
||
public const string CreateTicketNumber = "INC0000001"; | ||
|
||
public const string CreateTicketId = "MockCreateTicketId"; | ||
|
||
public const string CloseTicketNumber = "INC0000002"; | ||
|
||
public const string CloseTicketId = "MockCloseTicketId"; | ||
|
||
public const string CloseTicketReason = "MockCloseTicketReason"; | ||
|
||
public const string CloseTicketState = "7"; | ||
|
||
public const string CloseTicketCloseCode = "Closed/Resolved by Caller"; | ||
|
||
public const string KnowledgeTitle = "MockKnowledgeTitle"; | ||
|
||
public const string KnowledgeUpdatedTime = "2016-12-12 12:12:12"; | ||
|
||
public const string KnowledgeNumber = "MockKnowledgeNumber"; | ||
|
||
public const string KnowledgeContent = "MockKnowledgeContent"; | ||
|
||
public const int KnowledgeCount = 1; | ||
|
||
public static string KnowledgeUrl { get => $"{ServiceNowUrl}/kb_view.do?sysparm_article={KnowledgeNumber}"; } | ||
} | ||
} |
Oops, something went wrong.