INNER CODE UNIT · Go

TestALBBase

akrylysov/algnhsa · alb_test.go:104

func TestALBBase(t *testing.T) {
	asrt := assert.New(t)

	dump, err := dumpALB([]byte(albTestEvent), Options{})
	asrt.NoError(err)

	asrt.Equal(expectedALBDump, dump)
}

func TestALBBase64BodyRequest(t *testing.T) {
	asrt := assert.New(t)

	event := events.ALBTargetGroupRequest{}
	asrt.NoError(json.Unmarshal([]byte(albTestEvent), &event))
	event.IsBase64Encoded = true
	event.Body = "SGVsbG8gZnJvbSBMYW1iZGEh"
	encodedEvent, err := json.Marshal(event)
	asrt.NoError(err)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…