flip http2 flag for generate auth cert integration test
this commit is enhancing the gen auth cert test by using better
flag option for http2 and not flipping the value
Change-Id: I989606807ba0f286a16c1e6e3f1bfc5dbe6a430d
Signed-off-by: Malik Akbar Hashemi Rafsanjani <malikrafsan@meta.com>
diff --git a/scripts/generate_auth_certificates.py b/scripts/generate_auth_certificates.py
index 7bc9f7e..1ab828c 100755
--- a/scripts/generate_auth_certificates.py
+++ b/scripts/generate_auth_certificates.py
@@ -734,10 +734,10 @@
help="Generate and use an intermediate certificate",
)
parser.add_argument(
- "--no-http2",
- action="store_true",
+ "--http2",
+ action=argparse.BooleanOptionalAction,
default=False,
- help="Disable HTTP2 for testing",
+ help="Use HTTP2 for testing",
)
parser.add_argument("host", help="Host to connect to")
@@ -746,7 +746,7 @@
args.host,
args.username,
args.password,
- not args.no_http2,
+ args.http2,
args.use_intermediate,
)