123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //go:build windows
- // +build windows
- package comm
- import "testing"
- var queenginePrivateKey = []byte(`
- -----BEGIN RSA PRIVATE KEY-----
- MIIEpAIBAAKCAQEAoQUDrzLunGFWKqB0SWBIddSex8FJCVngfXdIteAK+VhxR0SF
- s8rG8/LRPcFg51LyvXs79bUpPUdy/AxZB/nLBjdiV8T2tKKio6OKtwMH3vZ4VOAl
- UJnq3k3opq5sc1tbi7IO0ate3YmUrLwAPnPxfxFeTucYI8o+AWxyK/54DC7rl68R
- bL38/CZ75mzBknnA6m6ATCBoN8zWlk78cwA5tOFwRv3osm6ENflQwZN3bn3fhL2c
- VcwgRnwrxIk+Mh6m3zBR2IHRb8mxazV7IauRCF/N4yp1lQ5Qx8lr7awEd5x0V1yu
- 8MmBgibmIi+Kqp/qUCKw+SnGzVCdl4SOh/fNVwIDAQABAoIBABmq4fZ4qP62qXSs
- FT1pIsPdu93d2tWpxRZbAHU1nKo4xf31V1bcuTBEAcTVYaweVeGMlndJhKRnElZJ
- ZZvW3t1D0OJq3GTZFBH/zOn1iripE298N5aMopsDUlXXsiQFaSdwn9oedkXcW53Z
- bjSGaPW3gBAV2IxD/fReJCkNLHfMdjTOlBNuLX+fybda4fR3W0e1K9LyaWcmf1mL
- eX9wiBGDqq+KXvI0Ef4b0LrV8hBB5Qh/2RWokwTBVjQmT+8fTp5iYybpSSWis2/i
- mNbiOrgOZt4b4+nRObQL1/FRLHf48JALZ4IyEHOo0sreGNs76lYYvlIOUxnl7A7T
- DxMbTGECgYEAz6rObj+BVZbg8EaE39vqg1hhPl/nuqXl8mSUCp+SjkeIrmLtlzH0
- N/uVjfnQj8FbZSpBrLnnQwadDmlNmueybt99m8F2WeB1jItzDQ/DeBcrnktGryCK
- cxFj+DOevkGwQQwjQEDhDXRdmBkTDmlICGQt/Z+udsFnzYhdFoYC4vECgYEAxn7b
- Xy0VbHd/AB2/OIyNCpMkuE1BBohSsxX+zARv3NPOnqwxF/mzqIheQFN+qXqCVT5n
- m3jcWDSqCeNFJMM5hmWQUXEvyA8/JEvMtEOTa0uZOG1Ofg0T3fmyeG1/GoPpMpus
- hGIwlEJ9NPNOCl/CV1j/45RgArqaOjgyU6nHpMcCgYBmSsKod8ujd1CRyorFIjSg
- QjaUXPVucS2VeomZugSc5QukqsJRyZ98vAZtCvL6/MmiSXBUPrZ1w5o1cRVzClJQ
- XvImeONtXi1I75/afTtRukgYDwhgV20bRSOzLOoy2XSSdgIfMlYpJHq94wwJ+z4q
- M/6bgb6UbKxPB66i25wsYQKBgQCmvGrz8P/9BAfHhjVZgB790gpXUnWb0il9y60j
- nVqF6dm3SbdXh2YV3K8nY7uTC5itmGUZoRWedmabNbCgJ+mLbocjEmvrpnsIty92
- AQm1aGSFlLQJiFy26oezR28sS8A4xbHN5lkeQRfBwds9NaEfFGCmv71CrZLd8tS7
- mHNegwKBgQCR/dbXkw3jTzQZoVe+Xq4ndBefoxpoRyUR78xtbGo84DZkiD+/0SVp
- FDHTS3P83KWPGB0WxsYDx7oh42vuduQ3Cjg1D34G2QzxhviHVKvlVnsRbhgbG/eK
- rMbuUM6KISochWtXtOxqrYb3n76xzcomOcdYrH33Yzmb7U/lJYG5Pg==
- -----END RSA PRIVATE KEY-----
- `)
- func TestMain(t *testing.T) {
- sk := "rxk1ly9+IPbBMJkcyUS53wYrh1owMDAwMDAwMDAwMDA="
- pk := string(queenginePrivateKey)
- task := NewLiscenseTask(sk, pk, "queengine-client", "queengine", "../data")
- // task.Run(nil)
- task.Active(&ActiveReq{
- ActiveCode: "JhnRb0XwWl+pR6hIUoERhSJKEuoBoccCNShqRRseRhEa136h+r2/dxTuJ5MJD4vTRM32vx+Iq10/UAVuGAUQEuZfVaExRRb6wSw28/AFo5gkh0Os/gqyUj4M7bgULT4x0LGYAaCbGLRyRJ456RasJtk+5rZ7bcYwp5tOPZ920jSPXJg+hWpkjqU5YntjYI+/QzF8YHBYPfNNWqEfcvkJ/y6CwBK9NZx3PQYdHAnYUdG3U5odUSMZJcKKqwGVjAJNJBRA7/OJkqFFT4Mwg4PYzLF6hw2ZRqFNAv8J8FG9+1md+zeLUrwbJiIX865Og5Y71wSc6V9bms5/cqwc2TKTB04bvqigkW1yQWqf/Q7nll1h1fvQrBcUuBoA5lkOLkbksmXrKRbIfl2z3g6FPp918XBI2ImtUbbslaON5HaWDWE1gyQKBEbw8nOC0mgc3psQtO7VkfiHIRy+DCI5RL7ox49C5fHQ9k5fqrvNE+tikYhvc6EEA6IVIuRSKO/Kq8O7aWO7O9zLaHS39PCrGfHtgrmTDqrZQ5hlPhKlvY95iaOK6OgZVUN8F/9b3upvcxHeITLKmSIdV328K3Q0lfu4eeauHJ2B47MtTAyRTTic7rk8v+yhOdVMZfODO46q1kOvDH0MD0QzMACW81kvuPg6asEPnswnyulLuYFqPonuwI8=",
- })
- }
|