1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-26 13:48:53 +08:00
b1ackd0t 34f293220c
NOISSUE - Refactor e2e Testing Tool (#1905)
* Refactor e2e testing tool.

- Enable creation of things and channels over 100 values
using batched requests.
- Change library of generating random names to a better
one.
- Fix WS sending of messages.

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>

* Refactor e2e test configuration

The e2e test configuration has been refactored to improve readability and maintainability. The following changes have been made:

- Removed the defReaderURL constant as it is no longer used.
- Added usersPort and thingsPort constants for the respective URLs.
- Updated the ThingsURL and UsersURL in the Test function to use the new constants.

These changes make the code more modular and easier to understand.

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

---------

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
2023-10-18 22:45:41 +02:00

21 lines
329 B
Go

/*
Package namegenerator provides a simple way to generate random names.
Example to generate general names:
package main
import (
"fmt"
"github.com/0x6flab/namegenerator"
)
func main() {
generator := namegenerator.NewNameGenerator("")
name := generator.Generate()
fmt.Println(name)
}
*/
package namegenerator