Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMaaS: API test cases #9

Open
rohan2794 opened this issue Aug 26, 2020 · 1 comment
Open

DMaaS: API test cases #9

rohan2794 opened this issue Aug 26, 2020 · 1 comment

Comments

@rohan2794
Copy link
Contributor

No description provided.

@bhaskarhc
Copy link
Contributor

To get token from existing authentication package ,

package dmaas

import (
	"testing"

	auth "github.com/mayadata-io/kubera-api-testing/kubera/authentication"

	conn "github.com/mayadata-io/kubera-api-testing/kubera/connection"
)

func TestDmaas(t *testing.T) {
	getConn := conn.Get()
	tokenFetching := auth.TokenFetching{
		Connection: getConn,
	}
	tkn, err := tokenFetching.Fetch()
	//[ tkn.JWT ] - return token

	//[ tkn.AccountID ] - return accountID
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants