Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

TestAddProxyUser failure without error #55

@farshidtz

Description

@farshidtz
=== RUN   TestAddProxyUser
    proxy_test.go:71: Generate private and public keys
    exec.go:19: [exec] openssl ecparam -genkey -name prime256v1 -noout -out ./tmp/private.pem
    exec.go:19: [exec] openssl ec -in ./tmp/private.pem -pubout -out ./tmp/public.pem
    proxy_test.go:74: Add the public key for admin user
    exec.go:19: [exec] sudo snap set edgexfoundry apps.secrets-config.proxy.admin.public-key='-----BEGIN PUBLIC KEY-----
        MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEb+yyLMpi+kBcXx5Wh0rMh55Lzbbz
        9hQMwyqhqZeVxF0IxlATySJjhG2GcgCyzaI/jIEsIit4RoJT1E43PYGXDw==
        -----END PUBLIC KEY-----
        '
    proxy_test.go:80: Generate a JWT token for the admin user
    exec.go:19: [exec] edgexfoundry.secrets-config proxy jwt --algorithm ES256 --private_key ./tmp/private.pem --id 1 --expiration=1h
    proxy_test.go:85: Call an API on behalf of admin user
    proxy_test.go:97: 
        	Error Trace:	/var/snap/checkbox-edgexfoundry/174/tmp/edgex-snap-testing/test/suites/edgexfoundry/proxy_test.go:97
        	Error:      	Not equal: 
        	            	expected: 200
        	            	actual  : 401
        	Test:       	TestAddProxyUser
    exec.go:19: [exec] sudo snap unset edgexfoundry apps
--- FAIL: TestAddProxyUser (2.04s)

The error is probably not captured because of canonical/edgex-snap-hooks#79

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions