dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/dtos/requests/const_test.go (about)

     1  //
     2  // Copyright (C) 2020-2021 IOTech Ltd
     3  //
     4  // SPDX-License-Identifier: Apache-2.0
     5  
     6  package requests
     7  
     8  const (
     9  	ExampleUUID    = "82eb2e26-0f24-48aa-ae4c-de9dac3fb9bc"
    10  	TestDeviceName = "TestDevice"
    11  	TestOriginTime = 1587540776
    12  
    13  	TestDeviceServiceName = "TestDeviceServiceName"
    14  	TestBaseAddress       = "http://0.0.0.0:49991/api/v1/callback"
    15  
    16  	TestDeviceProfileName = "TestDeviceProfileName"
    17  	TestManufacturer      = "TestManufacturer"
    18  	TestDescription       = "TestDescription"
    19  	TestModel             = "TestModel"
    20  
    21  	TestSourceName = "TestSourceName"
    22  
    23  	TestDeviceResourceName = "TestDeviceResourceName"
    24  	TestTag                = "TestTag"
    25  
    26  	TestDeviceCommandName = "TestDeviceCommand"
    27  
    28  	TestReadingValue           = "45"
    29  	TestReadingFloatValue      = "3.14"
    30  	TestBinaryReadingMediaType = "File"
    31  	TestReadingBinaryValue     = "testbinarydata"
    32  
    33  	TestIntervalName     = "TestInterval"
    34  	TestIntervalStart    = "20190102T150405"
    35  	TestIntervalEnd      = "20190802T150405"
    36  	TestIntervalInterval = "30ms"
    37  
    38  	TestIntervalActionName = "TestIntervalAction"
    39  	TestProtocol           = "http"
    40  	TestHost               = "localhost"
    41  	TestPort               = 48089
    42  	TestPath               = "testPath"
    43  	TestParameter          = "testParameters"
    44  	TestHTTPMethod         = "GET"
    45  	TestUser               = "edgexer"
    46  	TestPassword           = "password"
    47  	TestPublisher          = "testPublisher"
    48  	TestTarget             = "testTarget"
    49  	TestTopic              = "testTopic"
    50  	TestContent            = "test content"
    51  
    52  	TestServiceName = "TestService"
    53  	TestActionName  = "stop"
    54  )
    55  
    56  var namesWithReservedChar = []string{
    57  	"name!.~_001",
    58  	"name#.~_001",
    59  	"name$.~_001",
    60  	"name&.~_001",
    61  	"name`.~_001",
    62  	"name'.~_001",
    63  	"name(.~_001",
    64  	"name).~_001",
    65  	"name*.~_001",
    66  	"name,.~_001",
    67  	"name/.~_001",
    68  	"name:.~_001",
    69  	"name;.~_001",
    70  	"name=.~_001",
    71  	"name?.~_001",
    72  	"name@.~_001",
    73  	"name[.~_001",
    74  	"name].~_001",
    75  	"name%.~_001",
    76  	"name .~_001",
    77  }
    78  
    79  var nameWithUnreservedChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_~"